Menu

#32 can`t make - undefined symbol MD5_Update MD5_Init MD5_Final

closed
nobody
None
5
2015-02-20
2010-05-28
Zilon X
No

Solaris 10 8/07 SPARC

gcc -g -O2 -DSOLARIS -fPIC -O2 -L/usr/local/lib -R/usr/local/lib -I . -I ../include -ggdb -Wall -Wextra -pedantic -fno-strict-aliasing -o ss5 SS5Main.o SS5Core.o SS5Server.o SS5Utils.o SS5Thread.o SS5Debug.o SS5GSSApi.o SS5Modules.o ../common/SS5OpenLdap.o ../common/SS5Radius.o -lpthread -lsocket -lnsl -lssl -ldl -lldap -lpam
Undefined first referenced
symbol in file
MD5_Update ../common/SS5Radius.o (symbol belongs to implicit dependency /usr/local/ssl/lib/libcrypto.so.0.9.8)
MD5_Init ../common/SS5Radius.o (symbol belongs to implicit dependency /usr/local/ssl/lib/libcrypto.so.0.9.8)
MD5_Final ../common/SS5Radius.o (symbol belongs to implicit dependency /usr/local/ssl/lib/libcrypto.so.0.9.8)
ld: fatal: Symbol referencing errors. No output written to ss5
collect2: ld returned 1 exit status
make[1]: *** [ss5] Error 1
make[1]: Leaving directory `/export/devel/socks/temp/ss5-3.8.1/src'
make: *** [src] Error 2

__________________________________________________________
__________________________________________________________

-bash-3.00# gcc --version
gcc (GCC) 3.4.6
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

-bash-3.00# openssl version
OpenSSL 0.9.8f 11 Oct 2007
-bash-3.00#
-bash-3.00#
-bash-3.00# make --version
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for sparc-sun-solaris2.10
-bash-3.00#
-bash-3.00#
-bash-3.00# ./configure
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a BSD-compatible install... ./install-sh -c
checking for main in -ldl... yes
checking for main in -lldap... yes
checking for main in -lpam... yes
checking for main in -lpam_misc... no
checking for main in -lpthread... yes
checking for main in -lssl... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/xpg4/bin/grep
checking for egrep... /usr/xpg4/bin/grep -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking stdlib.h usability... yes
checking stdlib.h presence... yes
checking for stdlib.h... yes
checking string.h usability... yes
checking string.h presence... yes
checking for string.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking unistd.h usability... yes
checking unistd.h presence... yes
checking for unistd.h... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for pid_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking whether gcc needs -traditional... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for sys/socket.h... (cached) yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking for strftime... yes
checking for bzero... yes
checking for gethostbyname... no
checking for gettimeofday... yes
checking for inet_ntoa... no
checking for memset... yes
checking for select... yes
checking for socket... no
checking for strdup... yes
checking for strtol... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating modules/Makefile
config.status: creating modules/mod_authen/Makefile
config.status: creating modules/mod_author/Makefile
config.status: creating modules/mod_balance/Makefile
config.status: creating modules/mod_bandwidth/Makefile
config.status: creating modules/mod_dump/Makefile
config.status: creating modules/mod_filter/Makefile
config.status: creating modules/mod_log/Makefile
config.status: creating modules/mod_proxy/Makefile
config.status: creating modules/mod_socks4/Makefile
config.status: creating modules/mod_socks5/Makefile
config.status: creating modules/mod_statistics/Makefile
config.status: creating common/Makefile
config.status: creating src/Makefile
config.status: creating include/config.h
-bash-3.00#
-bash-3.00#
-bash-3.00#
-bash-3.00#
-bash-3.00#
-bash-3.00#
-bash-3.00# make
make[1]: Entering directory `/export/devel/socks/temp/ss5-3.8.1/common'
gcc -g -O2 -DSOLARIS -fPIC -O2 -L/usr/local/lib -R/usr/local/lib -I . -I ../include -fPIC -c -o SS5OpenLdap.o SS5OpenLdap.c
gcc -g -O2 -DSOLARIS -fPIC -O2 -L/usr/local/lib -R/usr/local/lib -I . -I ../include -fPIC -c -o SS5Radius.o SS5Radius.c
make[1]: Leaving directory `/export/devel/socks/temp/ss5-3.8.1/common'
make[1]: Entering directory `/export/devel/socks/temp/ss5-3.8.1/modules'
make[2]: Entering directory `/export/devel/socks/temp/ss5-3.8.1/modules/mod_socks4'
gcc -g -O2 -DSOLARIS -fPIC -O2 -L/usr/local/lib -R/usr/local/lib -I . -I ../../include -shared -fPIC -c -o SS5Mod_socks4.o SS5Mod_socks4.c
gcc -g -O2 -DSOLARIS -fPIC -O2 -L/usr/local/lib -R/usr/local/lib -I . -I ../../include -shared -fPIC -o mod_socks4.so SS5Mod_socks4.o ../../common/SS5OpenLdap.o -lpthread
make[2]: Leaving directory `/export/devel/socks/temp/ss5-3.8.1/modules/mod_socks4'
make[2]: Entering directory `/export/devel/socks/temp/ss5-3.8.1/modules/mod_socks5'
gcc -g -O2 -DSOLARIS -fPIC -O2 -L/usr/local/lib -R/usr/local/lib -I . -I ../../include -shared -fPIC -c -o SS5Mod_socks5.o SS5Mod_socks5.c
gcc -g -O2 -DSOLARIS -fPIC -O2 -L/usr/local/lib -R/usr/local/lib -I . -I ../../include -shared -fPIC -o mod_socks5.so SS5Mod_socks5.o ../../common/SS5OpenLdap.o -lpthread
make[2]: Leaving directory `/export/devel/socks/temp/ss5-3.8.1/modules/mod_socks5'
make[2]: Entering directory `/export/devel/socks/temp/ss5-3.8.1/modules/mod_authen'
gcc -g -O2 -DSOLARIS -fPIC -O2 -L/usr/local/lib -R/usr/local/lib -I . -I ../../include -shared -fPIC -c -o SS5Mod_authentication.o SS5Mod_authentication.c
gcc -g -O2 -DSOLARIS -fPIC -O2 -L/usr/local/lib -R/usr/local/lib -I . -I ../../include -shared -fPIC -c -o SS5Basic.o SS5Basic.c
gcc -g -O2 -DSOLARIS -fPIC -O2 -L/usr/local/lib -R/usr/local/lib -I . -I ../../include -shared -fPIC -c -o SS5ExternalProgram.o SS5ExternalProgram.c
gcc -g -O2 -DSOLARIS -fPIC -O2 -L/usr/local/lib -R/usr/local/lib -I . -I ../../include -shared -fPIC -c -o SS5Pam.o SS5Pam.c
SS5Pam.c: In function `S5PamCheck':
SS5Pam.c:50: warning: initialization from incompatible pointer type
gcc -g -O2 -DSOLARIS -fPIC -O2 -L/usr/local/lib -R/usr/local/lib -I . -I ../../include -shared -fPIC -c -o SS5Supa.o SS5Supa.c
gcc -g -O2 -DSOLARIS -fPIC -O2 -L/usr/local/lib -R/usr/local/lib -I . -I ../../include -shared -fPIC -o mod_authentication.so SS5Mod_authentication.o SS5Basic.o SS5ExternalProgram.o SS5Pam.o ../../common/SS5Radius.o SS5Supa.o -lpthread
make[2]: Leaving directory `/export/devel/socks/temp/ss5-3.8.1/modules/mod_authen'
make[2]: Entering directory `/export/devel/socks/temp/ss5-3.8.1/modules/mod_author'
gcc -g -O2 -DSOLARIS -fPIC -O2 -L/usr/local/lib -R/usr/local/lib -I . -I ../../include -shared -fPIC -c -o SS5Mod_authorization.o SS5Mod_authorization.c
gcc -g -O2 -DSOLARIS -fPIC -O2 -L/usr/local/lib -R/usr/local/lib -I . -I ../../include -shared -fPIC -o mod_authorization.so SS5Mod_authorization.o ../../common/SS5OpenLdap.o -lpthread
make[2]: Leaving directory `/export/devel/socks/temp/ss5-3.8.1/modules/mod_author'
make[2]: Entering directory `/export/devel/socks/temp/ss5-3.8.1/modules/mod_proxy'
gcc -g -O2 -DSOLARIS -fPIC -O2 -L/usr/local/lib -R/usr/local/lib -I . -I ../../include -shared -fPIC -c -o SS5Mod_proxy.o SS5Mod_proxy.c
gcc -g -O2 -DSOLARIS -fPIC -O2 -L/usr/local/lib -R/usr/local/lib -I . -I ../../include -shared -fPIC -o mod_proxy.so SS5Mod_proxy.o -lpthread
make[2]: Leaving directory `/export/devel/socks/temp/ss5-3.8.1/modules/mod_proxy'
make[2]: Entering directory `/export/devel/socks/temp/ss5-3.8.1/modules/mod_log'
gcc -g -O2 -DSOLARIS -fPIC -O2 -L/usr/local/lib -R/usr/local/lib -I . -I ../../include -shared -fPIC -c -o SS5Mod_log.o SS5Mod_log.c
gcc -g -O2 -DSOLARIS -fPIC -O2 -L/usr/local/lib -R/usr/local/lib -I . -I ../../include -shared -fPIC -o mod_log.so SS5Mod_log.o -lpthread
make[2]: Leaving directory `/export/devel/socks/temp/ss5-3.8.1/modules/mod_log'
make[2]: Entering directory `/export/devel/socks/temp/ss5-3.8.1/modules/mod_balance'
gcc -g -O2 -DSOLARIS -fPIC -O2 -L/usr/local/lib -R/usr/local/lib -I . -I ../../include -shared -fPIC -c -o SS5Mod_balance.o SS5Mod_balance.c
gcc -g -O2 -DSOLARIS -fPIC -O2 -L/usr/local/lib -R/usr/local/lib -I . -I ../../include -shared -fPIC -o mod_balance.so SS5Mod_balance.o -lpthread
gcc -g -O2 -DSOLARIS -fPIC -O2 -L/usr/local/lib -R/usr/local/lib -I . -I ../../include -shared -fPIC -c -o balamgr.o balamgr.c
gcc -o balamgr.cgi balamgr.o -lpthread -lsocket -lnsl -lssl -ldl -lldap -lpam
make[2]: Leaving directory `/export/devel/socks/temp/ss5-3.8.1/modules/mod_balance'
make[2]: Entering directory `/export/devel/socks/temp/ss5-3.8.1/modules/mod_filter'
gcc -g -O2 -DSOLARIS -fPIC -O2 -L/usr/local/lib -R/usr/local/lib -I . -I ../../include -shared -fPIC -c -o SS5Mod_filter.o SS5Mod_filter.c
gcc -g -O2 -DSOLARIS -fPIC -O2 -L/usr/local/lib -R/usr/local/lib -I . -I ../../include -shared -fPIC -o mod_filter.so SS5Mod_filter.o -lpthread
make[2]: Leaving directory `/export/devel/socks/temp/ss5-3.8.1/modules/mod_filter'
make[2]: Entering directory `/export/devel/socks/temp/ss5-3.8.1/modules/mod_statistics'
gcc -g -O2 -DSOLARIS -fPIC -O2 -L/usr/local/lib -R/usr/local/lib -I . -I ../../include -shared -fPIC -c -o SS5Mod_statistics.o SS5Mod_statistics.c
gcc -g -O2 -DSOLARIS -fPIC -O2 -L/usr/local/lib -R/usr/local/lib -I . -I ../../include -shared -fPIC -o mod_statistics.so SS5Mod_statistics.o -lpthread
gcc -g -O2 -DSOLARIS -fPIC -O2 -L/usr/local/lib -R/usr/local/lib -I . -I ../../include -shared -fPIC -c -o statmgr.o statmgr.c
gcc -o statmgr.cgi statmgr.o -lpthread -lsocket -lnsl -lssl -ldl -lldap -lpam
make[2]: Leaving directory `/export/devel/socks/temp/ss5-3.8.1/modules/mod_statistics'
make[2]: Entering directory `/export/devel/socks/temp/ss5-3.8.1/modules/mod_bandwidth'
gcc -g -O2 -DSOLARIS -fPIC -O2 -L/usr/local/lib -R/usr/local/lib -I . -I ../../include -shared -fPIC -c -o SS5Mod_bandwidth.o SS5Mod_bandwidth.c
gcc -g -O2 -DSOLARIS -fPIC -O2 -L/usr/local/lib -R/usr/local/lib -I . -I ../../include -shared -fPIC -o mod_bandwidth.so SS5Mod_bandwidth.o -lpthread
make[2]: Leaving directory `/export/devel/socks/temp/ss5-3.8.1/modules/mod_bandwidth'
make[2]: Entering directory `/export/devel/socks/temp/ss5-3.8.1/modules/mod_dump'
gcc -g -O2 -DSOLARIS -fPIC -O2 -L/usr/local/lib -R/usr/local/lib -I . -I ../../include -shared -fPIC -c -o SS5Mod_dump.o SS5Mod_dump.c
gcc -g -O2 -DSOLARIS -fPIC -O2 -L/usr/local/lib -R/usr/local/lib -I . -I ../../include -shared -fPIC -o mod_dump.so SS5Mod_dump.o -lpthread
make[2]: Leaving directory `/export/devel/socks/temp/ss5-3.8.1/modules/mod_dump'
make[1]: Leaving directory `/export/devel/socks/temp/ss5-3.8.1/modules'
make[1]: Entering directory `/export/devel/socks/temp/ss5-3.8.1/src'
gcc -g -O2 -DSOLARIS -fPIC -O2 -L/usr/local/lib -R/usr/local/lib -I . -I ../include -c -o SS5Main.o SS5Main.c
SS5Main.c: In function `main':
SS5Main.c:27: warning: return type of 'main' is not `int'
gcc -g -O2 -DSOLARIS -fPIC -O2 -L/usr/local/lib -R/usr/local/lib -I . -I ../include -c -o SS5Core.o SS5Core.c
gcc -g -O2 -DSOLARIS -fPIC -O2 -L/usr/local/lib -R/usr/local/lib -I . -I ../include -c -o SS5Server.o SS5Server.c
gcc -g -O2 -DSOLARIS -fPIC -O2 -L/usr/local/lib -R/usr/local/lib -I . -I ../include -c -o SS5Utils.o SS5Utils.c
gcc -g -O2 -DSOLARIS -fPIC -O2 -L/usr/local/lib -R/usr/local/lib -I . -I ../include -c -o SS5Thread.o SS5Thread.c
gcc -g -O2 -DSOLARIS -fPIC -O2 -L/usr/local/lib -R/usr/local/lib -I . -I ../include -c -o SS5Debug.o SS5Debug.c
gcc -g -O2 -DSOLARIS -fPIC -O2 -L/usr/local/lib -R/usr/local/lib -I . -I ../include -c -o SS5GSSApi.o SS5GSSApi.c
gcc -g -O2 -DSOLARIS -fPIC -O2 -L/usr/local/lib -R/usr/local/lib -I . -I ../include -c -o SS5Modules.o SS5Modules.c
gcc -g -O2 -DSOLARIS -fPIC -O2 -L/usr/local/lib -R/usr/local/lib -I . -I ../include -o ss5 SS5Main.o SS5Core.o SS5Server.o SS5Utils.o SS5Thread.o SS5Debug.o SS5GSSApi.o SS5Modules.o ../common/SS5OpenLdap.o ../common/SS5Radius.o -lpthread -lsocket -lnsl -lssl -ldl -lldap -lpam
Undefined first referenced
symbol in file
MD5_Update ../common/SS5Radius.o (symbol belongs to implicit dependency /usr/local/ssl/lib/libcrypto.so.0.9.8)
MD5_Init ../common/SS5Radius.o (symbol belongs to implicit dependency /usr/local/ssl/lib/libcrypto.so.0.9.8)
MD5_Final ../common/SS5Radius.o (symbol belongs to implicit dependency /usr/local/ssl/lib/libcrypto.so.0.9.8)
ld: fatal: Symbol referencing errors. No output written to ss5
collect2: ld returned 1 exit status
make[1]: *** [ss5] Error 1
make[1]: Leaving directory `/export/devel/socks/temp/ss5-3.8.1/src'
make: *** [src] Error 2
-bash-3.00#
-bash-3.00#
-bash-3.00#

Discussion

  • lepus

    lepus - 2010-06-30

    Try setting setting environment variable as follows, before running "configure":

    export EXTRA_LIBS='-lcrypto'

     
  • Matteo Ricchetti

    • status: open --> pending
     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending --> closed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.