Hello list,

 

I’ve been attempting to compile libpqxx using Msys / Mingw for the last few days successfully compiled an older version about 6 months ago.  I’ve tried libpqxx-2.6.6, 2.6.5 and 2.6.4 without success.

 

LDFLAGS is set to -lws2_32, I’ve also tried setting LDFLAGS to “-lpgport -lwsock32 -lm  -lws2_32 –lshfolder”

 

I”ve used both current and previous versions of MinGW / Msys and PostgreSQL 8.1.4 and 8.08 without success, the problem is libpqxx “fails to find “PQexec” I’ve inspected config.log and found the following:

 

configure:21096: gcc -o conftest.exe -g -O2  -lws2_32 conftest.c -lpq -Lc:/devel/psql/lib -lpq  >&5

c:/devel/psql/lib/libpq.a(fe-protocol2.o)(.text+0x1878):fe-protocol2.c: undefined reference to [EMAIL PROTECTED]'

c:/devel/psql/lib/libpq.a(fe-protocol3.o)(.text+0xbc):fe-protocol3.c: undefined reference to [EMAIL PROTECTED]'

c:/devel/psql/lib/libpq.a(fe-protocol3.o)(.text+0x19db):fe-protocol3.c: undefined reference to [EMAIL PROTECTED]'

c:/devel/psql/lib/libpq.a(fe-misc.o)(.text+0x1ff):fe-misc.c: undefined reference to [EMAIL PROTECTED]'

c:/devel/psql/lib/libpq.a(fe-misc.o)(.text+0x26e):fe-misc.c: undefined reference to [EMAIL PROTECTED]'

c:/devel/psql/lib/libpq.a(fe-misc.o)(.text+0x40a):fe-misc.c: undefined reference to [EMAIL PROTECTED]'

c:/devel/psql/lib/libpq.a(fe-misc.o)(.text+0x497):fe-misc.c: undefined reference to [EMAIL PROTECTED]'

c:/devel/psql/lib/libpq.a(fe-misc.o)(.text+0x8d7):fe-misc.c: undefined reference to [EMAIL PROTECTED]'

c:/devel/psql/lib/libpq.a(fe-misc.o)(.text+0x8e5):fe-misc.c: undefined reference to [EMAIL PROTECTED]'

c:/devel/psql/lib/libpq.a(fe-misc.o)(.text+0x92e):fe-misc.c: undefined reference to [EMAIL PROTECTED]'

c:/devel/psql/lib/libpq.a(fe-misc.o)(.text+0xacd):fe-misc.c: undefined reference to [EMAIL PROTECTED]'

c:/devel/psql/lib/libpq.a(fe-misc.o)(.text+0xb33):fe-misc.c: undefined reference to [EMAIL PROTECTED]'

c:/devel/psql/lib/libpq.a(fe-misc.o)(.text+0xb41):fe-misc.c: undefined reference to [EMAIL PROTECTED]'

c:/devel/psql/lib/libpq.a(fe-misc.o)(.text+0xb82):fe-misc.c: undefined reference to [EMAIL PROTECTED]'

c:/devel/psql/lib/libpq.a(fe-misc.o)(.text+0xbf6):fe-misc.c: undefined reference to [EMAIL PROTECTED]'

c:/devel/psql/lib/libpq.a(fe-misc.o)(.text+0xc02):fe-misc.c: undefined reference to [EMAIL PROTECTED]'

c:/devel/psql/lib/libpq.a(fe-misc.o)(.text+0xc2f):fe-misc.c: undefined reference to [EMAIL PROTECTED]'

c:/devel/psql/lib/libpq.a(fe-misc.o)(.text+0xe04):fe-misc.c: undefined reference to [EMAIL PROTECTED]'

c:/devel/psql/lib/libpq.a(fe-misc.o)(.text+0xe30):fe-misc.c: undefined reference to [EMAIL PROTECTED]'

c:/devel/psql/lib/libpq.a(fe-misc.o)(.text+0xf47):fe-misc.c: undefined reference to [EMAIL PROTECTED]'

 

 

pg_config is in my path

 

pg_config info:

 

BINDIR = c:/devel/psql/bin

DOCDIR = c:/devel/psql/doc/POSTGR~1

INCLUDEDIR = c:/devel/psql/include

PKGINCLUDEDIR = c:/devel/psql/include/POSTGR~1

INCLUDEDIR-SERVER = c:/devel/psql/include/POSTGR~1/server

LIBDIR = c:/devel/psql/lib

PKGLIBDIR = c:/devel/psql/lib/POSTGR~1

LOCALEDIR =

MANDIR = c:/devel/psql/man

SHAREDIR = c:/devel/psql/share/POSTGR~1

SYSCONFDIR =

PGXS = c:/devel/psql/lib/POSTGR~1/pgxs/src/MAKEFI~1/pgxs.mk

CONFIGURE = '--disable-shared' '--enable-static' '--without-openssl' '--without-zlib' '--prefix=/c/devel/psql'

CC = gcc

CPPFLAGS = -I./src/include/port/win32 -DEXEC_BACKEND -I../../../src/include/port/win32

CFLAGS = -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing

CFLAGS_SL =

LDFLAGS = -Wl,--allow-multiple-definition

LDFLAGS_SL =

LIBS = -lpgport -lwsock32 -lm  -lws2_32 -lshfolder

VERSION = PostgreSQL 8.1.4

 

 

 

GCC info: Reading specs from c:/mingw/bin/../lib/gcc/mingw32/3.4.2/specs

Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry --disable-shared --enable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x --enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-synchronization --enable-libstdcxx-debug

Thread model: win32

gcc version 3.4.2 (mingw-special)

 

 

_______________________________________________
Libpqxx-general mailing list
[email protected]
http://gborg.postgresql.org/mailman/listinfo/libpqxx-general

Reply via email to