From: Mariano M. P. <mar...@gm...> - 2008-06-23 04:05:36
|
First of all, thanks both of you for taking the time to read this long mail and reply me as fast as you did. I could even have time to present myself. Second, sorry for my English, I am Argentinian. JonY: I can't believe it, but that work!!!! It have perfectly run configure now. I now I am newbie with C and MinWG, but would you mine to explain me the reasons of that? I mean, just if you have some time. The problem is that now it fails in the make. This is the output of make: $ make make all-recursive make[1]: Entering directory `/c/mariano/opendbx-1.3.10' Making all in backends make[2]: Entering directory `/c/mariano/opendbx-1.3.10/backends' Making all in pgsql make[3]: Entering directory `/c/mariano/opendbx-1.3.10/backends/pgsql' /bin/sh ../../libtool --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H - I. -I../.. -I../../lib -Ic:/PostgreSQL/8.3/include/ -g -O2 -MT libpgsqlbackend _la-pgsqlbackend.lo -MD -MP -MF .deps/libpgsqlbackend_la-pgsqlbackend.Tpo -c -o libpgsqlbackend_la-pgsqlbackend.lo `test -f 'pgsqlbackend.c' || echo './'`pgsqlb ackend.c gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../lib -Ic:/PostgreSQL/8.3/incl ude/ -g -O2 -MT libpgsqlbackend_la-pgsqlbackend.lo -MD -MP -MF .deps/libpgsqlbac kend_la-pgsqlbackend.Tpo -c pgsqlbackend.c -DDLL_EXPORT -DPIC -o .libs/libpgsql backend_la-pgsqlbackend.o gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../lib -Ic:/PostgreSQL/8.3/incl ude/ -g -O2 -MT libpgsqlbackend_la-pgsqlbackend.lo -MD -MP -MF .deps/libpgsqlbac kend_la-pgsqlbackend.Tpo -c pgsqlbackend.c -o libpgsqlbackend_la-pgsqlbackend.o >/dev/null 2>&1 mv -f .deps/libpgsqlbackend_la-pgsqlbackend.Tpo .deps/libpgsqlbackend_la-pgsqlba ckend.Plo /bin/sh ../../libtool --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H - I. -I../.. -I../../lib -Ic:/PostgreSQL/8.3/include/ -g -O2 -MT libpgsqlbackend _la-pgsql_basic.lo -MD -MP -MF .deps/libpgsqlbackend_la-pgsql_basic.Tpo -c -o li bpgsqlbackend_la-pgsql_basic.lo `test -f 'pgsql_basic.c' || echo './'`pgsql_basi c.c gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../lib -Ic:/PostgreSQL/8.3/incl ude/ -g -O2 -MT libpgsqlbackend_la-pgsql_basic.lo -MD -MP -MF .deps/libpgsqlback end_la-pgsql_basic.Tpo -c pgsql_basic.c -DDLL_EXPORT -DPIC -o .libs/libpgsqlbac kend_la-pgsql_basic.o pgsql_basic.c:17:24: sys/select.h: No such file or directory pgsql_basic.c: In function `pgsql_odbx_result': pgsql_basic.c:318: error: `fd_set' undeclared (first use in this function) pgsql_basic.c:318: error: (Each undeclared identifier is reported only once pgsql_basic.c:318: error: for each function it appears in.) pgsql_basic.c:318: error: syntax error before "fds" pgsql_basic.c:326: warning: implicit declaration of function `FD_ZERO' pgsql_basic.c:326: error: `fds' undeclared (first use in this function) pgsql_basic.c:327: warning: implicit declaration of function `FD_SET' pgsql_basic.c:329: warning: implicit declaration of function `select' make[3]: *** [libpgsqlbackend_la-pgsql_basic.lo] Error 1 make[3]: Leaving directory `/c/mariano/opendbx-1.3.10/backends/pgsql' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/c/mariano/opendbx-1.3.10/backends' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/c/mariano/opendbx-1.3.10' make: *** [all] Error 2 If I see pgsql_basic.c (part of openDBX library), function pgsql_odbx_result I see: int fd; fd_set fds; if( ( fd = PQsocket( (PGconn*) handle->generic ) ) == -1 ) { conn->errtype = -1; return -ODBX_ERR_BACKEND; } FD_ZERO( &fds ); FD_SET( fd, &fds ); Any ideas? again, very thanks! mariano On Mon, Jun 23, 2008 at 12:58 AM, Vincent Torri <vt...@un...> wrote: > > > On Mon, 23 Jun 2008, JonY wrote: > >> > >> checking libpq-fe.h usability... yes > >> checking libpq-fe.h presence... yes > >> checking for libpq-fe.h... yes > >> checking limits.h usability... yes > >> checking limits.h presence... yes > >> checking for limits.h... yes > >> checking for PQconnectdb in -lpq... no > >> configure: error: postgresql library (libpq) not found > >> > >> And in config.log I can see: > >> > >> > >> configure:28655: checking for PQconnectdb in -lpq > >> configure:28690: gcc -std=gnu99 -o > >> conftest.exe -g -O2 -I/c/PostgreSQL/8.3/include -L/c/PostgreSQL/8.3/lib > >> conftest.c -lpq >&5 > >> c:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: > >> cannot > >> find -lpq > >> collect2: ld returned 1 exit status > >> > >> I don't know exactly how the PostgreSQL library must be named, but "ld" > >> doesn't find what it's looking for. > >> > >> The strange thing is that if I look in c:\PostgreSQL\8.3\lib\ I do have > >> libpq.lib > > > > Try renaming it to "libpq.a". > > according to the doc (http://sourceware.org/binutils/docs/ld/WIN32.html), > when using -lfoo, if you have a .lib, it searches foo.lib and not > libfoo.lib. So you can also try to rename libpq.lib to pq.lib > > Vincent Torri > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > MinGW-users mailing list > Min...@li... > > You may change your MinGW Account Options or unsubscribe at: > https://lists.sourceforge.net/lists/listinfo/mingw-users > |