curl-library
Problem to statically link to openssl-0.9.8e on HP-UX
Date: Fri, 20 Jul 2007 12:26:01 -0400
Hello All,
I statically linked curl-16.7.1 library with openssl-0.9.8e on a several
UNIX/Linux OS, including HP-UX, Solaris, AIX, and Linux SuSe. The built
libraries are fully functional on 6 out of the 8 UNIX machines. On 2 out
of 3 HP-UX machines (HP-UX11.00, HP-UX11.23 IPF) libcurl has openssl
symbols undefined. Interestingly, libcurl was successfully linked to
openssl on HP-UX11.11 (RISC):
Faulty HP-UX11.23:
/usr/local/ssl/lib> nm libcrypto.a | grep ENGINE_load_builtin
[8] | 0| 224|FUNC |GLOB |0|
.text|ENGINE_load_builtin_engines
[14] | 0| 0|FUNC |GLOB |0|
UNDEF|ENGINE_load_builtin_engines
/usr/local/curl-ssl/lib> nm libcurl.so.4.0 | grep ENGINE_load_builtin
[1326] | 0| 0|FUNC |GLOB |0|
UNDEF|ENGINE_load_builtin_engines
./configure --prefix=/usr/local/curl-ssl CC=aCC --with-ssl
CFLAGS=-D_REENTRANT
Faulty HP-UX11.00:
/usr/local/ssl/lib> nm libcrypto.a | grep ENGINE_load_builtin
ENGINE_load_builtin_engines| 0|extern|entry |$CODE$
ENGINE_load_builtin_engines| |undef |code |
/home/sambuild/curl-7.16.1_ssl/lib/.libs> nm libcurl.sl.4.0 | grep
ENGINE_load_builtin
ENGINE_load_builtin_engines| |undef |code |
ENGINE_load_builtin_engines| 216648|uext |stub |
./configure CC=aCC --prefix=/usr/local/curl-ssl
--with-ssl=/usr/local/ssl CPPFLAGS=-I/usr/include LD=aCC CFLAGS=+Z
Working HP-UX11.11:
/home/sambuild> cd /usr/local/ssl/lib
/usr/local/ssl/lib> nm libcrypto.a | grep ENGINE_load_builtin
ENGINE_load_builtin_engines| 0|extern|entry |$CODE$
ENGINE_load_builtin_engines| |undef |code |
/usr/local/curl/lib> nm libcurl.sl.4.0 | grep ENGINE_load_builtin
ENGINE_load_builtin_engines| 916232|uext |stub |
ENGINE_load_builtin_engines| 1345312|extern|entry |
ENGINE_load_builtin_engines| 1345312|extern|code |$CODE$
./configure --with-ssl --prefix=/usr/local/curl-ssl
What is wrong? Am I missing some compiler/linker flags ?
Thanks,
Alla
Received on 2007-07-20