On Monday 05 November 2007, Dr. Stephen Henson wrote:
8<------
> That looks like the application isn't being linked with the correct version
> of OpenSSL. Those undefined functions were macros in previous versions of
> OpenSSL but became real functions later.
>
> So if you compile against new headers you don't get the macros but if you
> link against and older library you don't get the functions.
>
> Steve.
> --
> Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
> OpenSSL project core developer and freelance consultant.
> Funding needed! Details on homepage.
> Homepage: http://www.drh-consultancy.demon.co.uk


Indeed you are right, there was a copy of OpenSSL 0.9.7 on my system.  I got 
rid of it, however I still have almost identical problems, and still believe 
that the build of OpenSSL 0.9.8g has somehow missed something out....

From the latest apache build, 
Undefined                       first referenced
 symbol                             in file
BIO_set_flags                       
modules/ssl/.libs/mod_ssl.a(ssl_engine_io.o)  (symbol belongs to implicit 
dependency /usr/local/openssl/lib/libcrypto.so.0.9.8)
BIO_set_callback                    
modules/ssl/.libs/mod_ssl.a(ssl_engine_io.o)  (symbol belongs to implicit 
dependency /usr/local/openssl/lib/libcrypto.so.0.9.8)
BIO_clear_flags                     
modules/ssl/.libs/mod_ssl.a(ssl_engine_io.o)  (symbol belongs to implicit 
dependency /usr/local/openssl/lib/libcrypto.so.0.9.8)
BIO_set_callback_arg                
modules/ssl/.libs/mod_ssl.a(ssl_engine_io.o)  (symbol belongs to implicit 
dependency /usr/local/openssl/lib/libcrypto.so.0.9.8)
BIO_get_callback_arg                
modules/ssl/.libs/mod_ssl.a(ssl_engine_io.o)  (symbol belongs to implicit 
dependency /usr/local/openssl/lib/libcrypto.so.0.9.8)
X509_STORE_CTX_set_depth            
modules/ssl/.libs/mod_ssl.a(ssl_engine_kernel.o)  (symbol belongs to implicit 
dependency /usr/local/openssl/lib/libcrypto.so.0.9.8)
ld: fatal: Symbol referencing errors. No output written to .libs/httpd
make[1]: *** [httpd] Error 1
make[1]: Leaving directory `/home/Build/Web/WWW/Apache/httpd-2.0.61'
make: *** [all-recursive] Error 1


and from OpenLDAP:
(cd .libs && rm -f libldap.la && ln -s ../libldap.la libldap.la)
cc -g -I../../include        -I../../include   -I/opt/sfw/include 
-I/usr/sfw/include   -I/opt/sfw/include -I/usr/sfw/include  -c -o 
apitest.o apitest.c
/bin/sh ../..//libtool --mode=link 
cc -static -g  -L/opt/sfw/lib -L/usr/sfw/lib -L/usr/local/openssl/lib 
-R/opt/sfw/lib -R/usr/sfw/lib -R/usr/local/openssl/lib   -o 
apitest apitest.o 
libldap.la ../../libraries/liblber/liblber.la 
../../libraries/liblutil/liblutil.a -lsasl  -lssl -lcrypto   -lresolv -lgen 
-lnsl -lsocket
cc -g -o apitest 
apitest.o  -L/opt/sfw/lib -L/usr/sfw/lib -L/usr/local/openssl/lib 
./.libs/libldap.a 
/home/Build/System/OpenLDAP/openldap-2.3.38/libraries/liblber/.libs/liblber.a 
../../libraries/liblber/.libs/liblber.a ../../libraries/liblutil/liblutil.a 
-lsasl -lssl -lcrypto -lresolv -lgen -lnsl -lsocket -R/opt/sfw/lib 
-R/usr/sfw/lib -R/usr/local/openssl/lib
Undefined                       first referenced
 symbol                             in file
BIO_set_flags                       ./.libs/libldap.a(tls.o)  (symbol belongs 
to implicit dependency /usr/local/openssl/lib/libcrypto.so.0.9.8)
BIO_clear_flags                     ./.libs/libldap.a(tls.o)  (symbol belongs 
to implicit dependency /usr/local/openssl/lib/libcrypto.so.0.9.8)
ld: fatal: Symbol referencing errors. No output written to apitest
make[2]: *** [apitest] Error 1
make[2]: Leaving directory 
`/home/Build/System/OpenLDAP/openldap-2.3.38/libraries/libldap'
make[1]: *** [all-common] Error 1
make[1]: Leaving directory 
`/home/Build/System/OpenLDAP/openldap-2.3.38/libraries'
make: *** [all-common] Error 1


regards
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to