On 2009.02.19 at 09:48:20 +0100, m...@abp.pl wrote: > Hello, > > I try to build static postgresql 8.3.6 with static openssl 0.9.8i. > > at config.log: > configure:7695: checking for SSL_library_init in -lssleay32 > configure:7725: gcc -o conftest.exe -O2 -Wall -Wmissing-prototypes > -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels > -fno-strict-aliasing -fwrapv -I./src/include/port/win32 -DEXEC_BACKEND > -I/local/ssl/include/ -Wl,--allow-multiple-definition -L/local/ssl/lib/ > conftest.c -lssleay32 -lwsock32 -lwst -lws2_32 -lmswsock -leay32 -lz -lm > >&5 > C:/msys/1.0/local/ssl/lib//libeay32.a(bss_sock.o)(.text+0xca):bss_sock.c: > undefined reference to `shutd...@8'
Probkem is that library searching in gcc is order-dependent. If some object file contained in library requires some external function, it is searched only in libraries, which are specified in the command line AFTER library where this object file resides. So, changing library order to -lssleay32 -leay32 -lwsock32 -lwst -lws2_de -lz -lm might help. But I cannot tell without some experiment how to achieve this result using PostgreSQL configure script. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org