hi. three related questions... 1) How does one compile with libz.a? 2) How does one compile with a specific zlib? 3) How does one compile a fully static openssl?
i will gladly test and post confirmation of solutions. thx. Regarding #1 ... INSTALL says the following: no-zlib Don't try to build with support for zlib compression and decompression. <--- this is the default but it does not say so here. zlib Build with support for zlib compression/decompression. zlib-dynamic Like "zlib", but has OpenSSL load the zlib library dynamically when needed. This is only supported on systems where loading of shared libraries is supported. This is the default choice. <--- not really, it should say: default when zlib is specified ok, so that documentation ambiguity bug aside, 'zlib' seems to be what i want and i do this whose output seems to be good: ./config no-sse2 shared enable-camellia zlib no-zlib-dynamic [default] EX_LIBS = -lz but i get this dynamic loading of zlib instead: ldd /tmp/openssl-0.9.8h/apps/openssl: libssl.so.0.9.8 => /tmp/openssl-0.9.8h/libssl.so.0.9.8 (0x280c2000) libcrypto.so.0.9.8 => /tmp/openssl-0.9.8h/libcrypto.so.0.9.8 (0x280fd000) libz.so.2 => /usr/lib/libz.so.2 (0x2822b000) libc_r.so.4 => /usr/lib/libc_r.so.4 (0x28238000) openssl version info platform: BSD-x86-elf [FreeBSD RELENG_4 latest] compiler: gcc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -pthread -D_THREAD_SAFE -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIOS -O3 -fomit-frame-pointer -Wall -DOPENSSL_BN_ASM_PART_WORDS -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM Regarding #2 ... i have two zlibs: 1.1.4 /usr/lib 1.2.3 /usr/local/lib and no idea how to select one or the other at compile time. such that say, the dynamic openssl will use one or the other without the use of LD_LIBRARY_PATH, rpath? or that say, the static openssl was definitely compiled against the selected one. Regarding #3 ... i am lost here :-) ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]