|
|||||||||||
|
Re: [PORTS] Windows static link
From: Israel Brewster <israel(at)frontierflying.com>
Date: Mon Feb 11 2008 - 13:47:04 EST On Feb 7, 2008, at 3:09 PM, Israel Brewster wrote: > Ok, now that I got everything working on the Mac side of things, I Ok, I managed to figure out how to compile PostgreSQL from source, and did so using the --disable-shared and --without-zlib flags to configure. This produced a libpq.a file that was somewhat larger than the one produced by my previous attempts, which seems promesing to me. However, make (or skiiping make and just doing make install, as the instructions I found said) failed with the following output: gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline - Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing pg_ctl.o win32ver.o -L../../../src/port -lpgport -L../../../src/ interfaces/libpq -lpq -L../../../src/port -Wl,--allow-multiple- definition -lpgport -lm -lws2_32 -lshfolder -o pg_ctl.exe ../../../src/interfaces/libpq/libpq.a(fe-connect.o)(.text+0x6dc):fe- connect.c: undefined reference to `DeleteSecurityContext@4' ../../../src/interfaces/libpq/libpq.a(fe-connect.o)(.text+0x704):fe- connect.c: undefined reference to `FreeCredentialsHandle@4' ../../../src/interfaces/libpq/libpq.a(fe-auth.o)(.text+0x195):fe- auth.c: undefined reference to `InitializeSecurityContextA@48' ../../../src/interfaces/libpq/libpq.a(fe-auth.o)(.text+0x21b):fe- auth.c: undefined reference to `FreeContextBuffer@4' ../../../src/interfaces/libpq/libpq.a(fe-auth.o)(.text+0x293):fe- auth.c: undefined reference to `FreeContextBuffer@4'../../../src/interfaces/libpq/libpq.a(fe-auth.o)(.text+0x326):fe- auth.c: undefined reference to `AcquireCredentialsHandleA@36' collect2: ld returned 1 exit status make[3]: *** [pg_ctl] Error 1 make[2]: *** [install] Error 2 make[1]: *** [install] Error 2 make: *** [install] Error 2 Also, though libpq.a was generated, when attempting to build an application that uses it I get numerous errors similar to the ones I got when building libpq, such as: D:\msys\1.0\local\pgsql\lib/libpq.a(fe-connect.o)(.text+0x3dc):fe- connect.c: undefined reference to 'WSAStartup@8' referencing various .0 and .c files and symbols. How can I make this work? Thanks! Israel Brewster Computer Support Technician Frontier Flying Service Inc. 5245 Airport Industrial Rd Fairbanks, AK 99709 (907) 450-7250 x293 > ---------------------------(end of broadcast)---------------------------TIP 5: don't forget to increase your free space map settings Received on Mon Feb 11 13:47:43 2008 This archive was generated by hypermail 2.1.8 : Wed Jun 18 2008 - 23:39:13 EDT |
||||||||||
|
|||||||||||