[OPEN-ILS-DEV] libdbi-driver problem

Dan Scott denials at gmail.com
Fri Mar 23 14:57:29 EDT 2007


Hi Rene:

It sounds like you need the pgsql-devel package (the headers and
libraries required for building PostgreSQL applications).

Dan Scott

On 23/03/07, Rene Paquin <rpaquin at wlu.ca> wrote:
> Slowly plugging along here. Debian etch system.   In trying to compile
> the source I have realized that i need to install the libdbi and
> libdbi-drivers.  The libdbi install was fine.  the libdbi-drivers
> install is causing me problems.  I am using this command:
>
>  ./configure --with-pgsql-dir=/usr/include/postgresql/ --disable-docs
> --with-pgsql --enable-libdbi && make all install
>
> to build and install and it chugs along nicely until this point....  and
> then it stops in error.  Thanks again for the help.
>
> /bin/sh ../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
> -I../.. -I../.. -I../../include -I/usr/local/include
> -I/usr/include/postgresql//include    -O20 -ffast-math -D_REENTRANT
> -fsigned-char -MT dbd_pgsql.lo -MD -MP -MF .deps/dbd_pgsql.Tpo -c -o
> dbd_pgsql.lo dbd_pgsql.c
>  gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../include
> -I/usr/local/include -I/usr/include/postgresql//include -O20 -ffast-math
> -D_REENTRANT -fsigned-char -MT dbd_pgsql.lo -MD -MP -MF
> .deps/dbd_pgsql.Tpo -c dbd_pgsql.c  -fPIC -DPIC -o .libs/dbd_pgsql.o
> dbd_pgsql.c:56:22: error: libpq-fe.h: No such file or directory
> dbd_pgsql.c: In function '_dbd_real_connect':
> dbd_pgsql.c:142: error: 'PGconn' undeclared (first use in this function)
> dbd_pgsql.c:142: error: (Each undeclared identifier is reported only
> once
> dbd_pgsql.c:142: error: for each function it appears in.)
> dbd_pgsql.c:142: error: 'pgconn' undeclared (first use in this function)
> dbd_pgsql.c:183: error: 'CONNECTION_BAD' undeclared (first use in this
> function)
> dbd_pgsql.c: In function 'dbd_disconnect':
> dbd_pgsql.c:210: error: 'PGconn' undeclared (first use in this function)
> dbd_pgsql.c:210: error: expected expression before ')' token
> dbd_pgsql.c: In function 'dbd_free_query':
> dbd_pgsql.c:230: error: 'PGresult' undeclared (first use in this
> function)
> dbd_pgsql.c:230: error: expected expression before ')' token
> dbd_pgsql.c: In function 'dbd_get_socket':
> dbd_pgsql.c:242: error: 'PGconn' undeclared (first use in this function)
> dbd_pgsql.c:242: error: 'pgconn' undeclared (first use in this function)
> dbd_pgsql.c:242: error: expected expression before ')' token
> dbd_pgsql.c: In function 'dbd_get_encoding':
> dbd_pgsql.c:255: error: 'PGconn' undeclared (first use in this function)
> dbd_pgsql.c:255: error: 'pgconn' undeclared (first use in this function)
> dbd_pgsql.c:255: error: expected expression before ')' token
> dbd_pgsql.c: In function 'dbd_quote_binary':
> dbd_pgsql.c:422: warning: assignment makes pointer from integer without
> a cast
> dbd_pgsql.c: In function 'dbd_query':
> dbd_pgsql.c:450: error: 'PGresult' undeclared (first use in this
> function)
> dbd_pgsql.c:450: error: 'res' undeclared (first use in this function)
> dbd_pgsql.c:453: error: 'PGconn' undeclared (first use in this function)
> dbd_pgsql.c:453: error: expected expression before ')' token
> dbd_pgsql.c:455: error: 'PGRES_COMMAND_OK' undeclared (first use in this
> function)
> dbd_pgsql.c:455: error: 'PGRES_TUPLES_OK' undeclared (first use in this
> function)
> dbd_pgsql.c:460: warning: passing argument 1 of 'atoll' makes pointer
> from integer without a cast
> dbd_pgsql.c:461: error: expected expression before ')' token
> dbd_pgsql.c: In function 'dbd_select_db':
> dbd_pgsql.c:478: error: 'PGconn' undeclared (first use in this function)
> dbd_pgsql.c:478: error: expected expression before ')' token
> dbd_pgsql.c: In function 'dbd_geterror':
> dbd_pgsql.c:494: error: 'PGconn' undeclared (first use in this function)
> dbd_pgsql.c:494: error: expected expression before ')' token
> dbd_pgsql.c:494: error: expected expression before ')' token
> dbd_pgsql.c:494: error: expected expression before ')' token
> dbd_pgsql.c:494: error: expected expression before ')' token
> dbd_pgsql.c:494: error: expected expression before ')' token
> dbd_pgsql.c:494: warning: passing argument 1 of 'strlen' makes pointer
> from integer without a cast
> dbd_pgsql.c:494: error: expected expression before ')' token
> dbd_pgsql.c:494: warning: passing argument 2 of 'memcpy' makes pointer
> from integer without a cast
> dbd_pgsql.c:494: error: expected expression before ')' token
> dbd_pgsql.c:494: warning: passing argument 1 of '__strdup' makes pointer
> from integer without a cast
> dbd_pgsql.c: In function 'dbd_get_seq_last':
> dbd_pgsql.c:511: error: 'PGresult' undeclared (first use in this
> function)
> dbd_pgsql.c:511: error: expected expression before ')' token
> dbd_pgsql.c:511: warning: assignment makes pointer from integer without
> a cast
> dbd_pgsql.c: In function 'dbd_get_seq_next':
> dbd_pgsql.c:533: error: 'PGresult' undeclared (first use in this
> function)
> dbd_pgsql.c:533: error: expected expression before ')' token
> dbd_pgsql.c:533: warning: assignment makes pointer from integer without
> a cast
> dbd_pgsql.c: In function 'dbd_ping':
> dbd_pgsql.c:544: error: 'PGconn' undeclared (first use in this function)
> dbd_pgsql.c:544: error: 'pgsql' undeclared (first use in this function)
> dbd_pgsql.c:544: error: expected expression before ')' token
> dbd_pgsql.c:545: error: 'PGresult' undeclared (first use in this
> function)
> dbd_pgsql.c:545: error: 'res' undeclared (first use in this function)
> dbd_pgsql.c:552: error: 'CONNECTION_OK' undeclared (first use in this
> function)
> dbd_pgsql.c: In function '_get_field_info':
> dbd_pgsql.c:651: error: 'PGresult' undeclared (first use in this
> function)
> dbd_pgsql.c:651: error: expected expression before ')' token
> dbd_pgsql.c:652: error: expected expression before ')' token
> dbd_pgsql.c:652: warning: assignment makes pointer from integer without
> a cast
> dbd_pgsql.c: In function '_get_row_data':
> dbd_pgsql.c:670: error: 'PGresult' undeclared (first use in this
> function)
> dbd_pgsql.c:670: error: expected expression before ')' token
> dbd_pgsql.c:670: warning: assignment makes pointer from integer without
> a cast
> dbd_pgsql.c:676: error: expected expression before ')' token
> dbd_pgsql.c:709: error: expected expression before ')' token
> dbd_pgsql.c:714: warning: assignment makes pointer from integer without
> a cast
> make[3]: *** [dbd_pgsql.lo] Error 1
> make[3]: Leaving directory
> `/root/Desktop/libdbi-drivers-0.8.2-1/drivers/pgsql'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory
> `/root/Desktop/libdbi-drivers-0.8.2-1/drivers'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/root/Desktop/libdbi-drivers-0.8.2-1'
> make: *** [all] Error 2
>
>
> ================================
> Rene Paquin, MCSE
> Library Network Administrator
> Wilfrid Laurier University
> Waterloo, Ontario, Canada
> (519)884-0710 x3795
> rpaquin at wlu.ca
> **********************************************
>
>


More information about the Open-ils-dev mailing list