apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 55417] New: Cannot find OpenSSL libs on Solaris due to missing socket libs
Date Wed, 14 Aug 2013 20:06:29 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=55417

            Bug ID: 55417
           Summary: Cannot find OpenSSL libs on Solaris due to missing
                    socket libs
           Product: APR
           Version: HEAD
          Hardware: Sun
                OS: Solaris
            Status: NEW
          Severity: normal
          Priority: P2
         Component: APR-util
          Assignee: bugs@apr.apache.org
          Reporter: skunk@iSKUNK.ORG

I am building APR-util 1.5.1 as a dependency of Subversion 1.8.1. In the course
of configuring the library, I see this:

[...]
configure: checking for openssl in /nfs/freeport/arch/sunos_x86_64
checking openssl/x509.h usability... yes
checking openssl/x509.h presence... yes
checking for openssl/x509.h... yes
checking for BN_init in -lcrypto... yes
checking for SSL_accept in -lssl... no
checking for openssl/x509.h... (cached) yes
checking for BN_init in -lcrypto... (cached) yes
checking for SSL_accept in -lssl... (cached) no
checking whether EVP_PKEY_CTX_new is declared... yes
configure: error: Crypto was requested but no crypto library was enabled


Excerpt from config.log for that -lssl check:

configure:4960: checking for SSL_accept in -lssl
configure:4985: cc -o conftest -Xa -v -xstrconst -i -mt -xtarget=opteron
-xarch=amd64 -xbuiltin -xO5 -D__EXTENSIONS__ -D_REENTRANT  -DSOLARIS2=10
-D_POSIX_PTHREAD_SEMANTICS -I/nfs/freeport/arch/sunos_x86_64/include
-L/nfs/freeport/arch/sunos_x86_64/lib  conftest.c -lssl -lcrypto -lrt  >&5
"conftest.c", line 32: warning: statement not reached
Undefined                       first referenced
 symbol                             in file
socket                             
/nfs/freeport/arch/sunos_x86_64/lib/libcrypto.a(rand_egd.o)
connect                            
/nfs/freeport/arch/sunos_x86_64/lib/libcrypto.a(rand_egd.o)
shutdown                           
/nfs/freeport/arch/sunos_x86_64/lib/libcrypto.a(bss_sock.o)
ld: fatal: Symbol referencing errors. No output written to conftest
configure:4985: $? = 1


These functions are defined in the Solaris socket libraries, usually specified
as "-lsocket -lnsl". And in fact, the compiled OpenSSL libraries that I'm using
here have pkg-config files that include the line

    Libs.private: -lsocket -lnsl -ldl

So it seems that unless APR-util's configure script gains specific knowledge of
this Solaris requirement, it should be using pkg-config to pick up OpenSSL so
that these system-specific dependencies are accounted for.

As a workaround, specifying LIBS="-lsocket -lnsl" in the environment before
configuring allows OpenSSL to be found and the build to proceed.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


Mime
View raw message