compiled openssl library not useabel

M

mfe_

Guest
Code:
Greetings,

I compiled OpenSSL version 1.0.1e 11 Feb 2013 with ./config --prefix=/usr and build it with make.

When compiling curl / zarafa or other software ./configure never finds a working openssl installation.

I could locate
Code:
ls /usr/lib/libss
libss.a              libssp.a             libssp.so
libssl.a             libssp.la            libssp.so.0
libssl.so.0.9.7      libssp_nonshared.a   libssp.so.0.0.0
libssl.so.0.9.8      libssp_nonshared.la

Also openssl.pc tells:

Code:
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: OpenSSL
Description: Secure Sockets Layer and cryptography libraries and tools
Version: 1.0.1e
Requires:
Libs: -L${libdir} -lssl -lcrypto
Libs.private: -ldl
Cflags: -I${includedir}

When trying to compile a test program like:

Code:
# more headers
 #define HAVE_LIBCRYPT 1
 /* end confdefs.h.  */


 /* Override any GCC internal prototype to avoid an error.
    Use char because int might match the return type of a GCC
    builtin and then its argument prototype would still apply.  */
 #ifdef __cplusplus
 extern "C"
 #endif
 char SSL_accept ();
 int
 main ()
 {
 return SSL_accept ();
   ;
   return 0;
 }

I get the error:
Code:
gcc ssl_accept.c -o ssl_accept -lssl -lcrypto
/usr/lib/gcc/sparc-unknown-linux-gnu/4.6.0/../../../libcrypto.a(dso_dlfcn.o)(.text+0xc): In function `dlfcn_globallookup':
: undefined reference to `dlopen'
/usr/lib/gcc/sparc-unknown-linux-gnu/4.6.0/../../../libcrypto.a(dso_dlfcn.o)(.text+0x20): In function `dlfcn_globallookup':
: undefined reference to `dlsym'
/usr/lib/gcc/sparc-unknown-linux-gnu/4.6.0/../../../libcrypto.a(dso_dlfcn.o)(.text+0x2c): In function `dlfcn_globallookup':
: undefined reference to `dlclose'
/usr/lib/gcc/sparc-unknown-linux-gnu/4.6.0/../../../libcrypto.a(dso_dlfcn.o)(.text+0x334): In function `dlfcn_bind_func':
: undefined reference to `dlsym'
/usr/lib/gcc/sparc-unknown-linux-gnu/4.6.0/../../../libcrypto.a(dso_dlfcn.o)(.text+0x390): In function `dlfcn_bind_func':
: undefined reference to `dlerror'
/usr/lib/gcc/sparc-unknown-linux-gnu/4.6.0/../../../libcrypto.a(dso_dlfcn.o)(.text+0x458): In function `dlfcn_bind_var':
: undefined reference to `dlsym'
/usr/lib/gcc/sparc-unknown-linux-gnu/4.6.0/../../../libcrypto.a(dso_dlfcn.o)(.text+0x4b4): In function `dlfcn_bind_var':
: undefined reference to `dlerror'
/usr/lib/gcc/sparc-unknown-linux-gnu/4.6.0/../../../libcrypto.a(dso_dlfcn.o)(.text+0x55c): In function `dlfcn_load':
: undefined reference to `dlopen'
/usr/lib/gcc/sparc-unknown-linux-gnu/4.6.0/../../../libcrypto.a(dso_dlfcn.o)(.text+0x5c0): In function `dlfcn_load':
: undefined reference to `dlclose'
/usr/lib/gcc/sparc-unknown-linux-gnu/4.6.0/../../../libcrypto.a(dso_dlfcn.o)(.text+0x5e8): In function `dlfcn_load':
: undefined reference to `dlerror'
/usr/lib/gcc/sparc-unknown-linux-gnu/4.6.0/../../../libcrypto.a(dso_dlfcn.o)(.text+0x64c): In function `dlfcn_pathbyaddr':
: undefined reference to `dladdr'
/usr/lib/gcc/sparc-unknown-linux-gnu/4.6.0/../../../libcrypto.a(dso_dlfcn.o)(.text+0x6a4): In function `dlfcn_pathbyaddr':
: undefined reference to `dlerror'
/usr/lib/gcc/sparc-unknown-linux-gnu/4.6.0/../../../libcrypto.a(dso_dlfcn.o)(.text+0x704): In function `dlfcn_unload':
: undefined reference to `dlclose'
collect2: ld returned 1 exit status

So does anyone know how I can fix this? I think, it seems that openssl depends on libcrypto.a. openssl needs an function of libcryto.a which is not defined.

I try to fix this now by recompiling libcrypto.a

Has someone input for this issue?
 

Staff online

Members online


Top