I am trying to install the nspostgres driver (nspostgres-4.0beta1). The system is Linux 9.0; aolserver 3.5.0.
Here is the output: # make POSTGRES=/usr/local/pgsql gcc -pipe -O -D__NO_STRING_INLINES -D__NO_MATH_INLINES -Wall -Wconversion -Wno- implicit-int -fPIC -I/usr/local2/aolserver/include -I/usr/local2/include -DNO_CONST - DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DTCL_THREADS=1 -DUSE_THREAD_ALLOC=1 - D_REENTRANT=1 -D_THREAD_SAFE=1 -DHAVE_READDIR_R=1 -D_LARGEFILE64_SOURCE=1 - DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_STAT64=1 -DHAVE_TYPE_OFF64_T=1 - DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 - DHAVE_STRTOLL=1 -DHAVE_STRTOULL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 - DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 - DTIME_WITH_SYS_TIME=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 - DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 - DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_LANGINFO=1 -DPEEK_XCLOSEIM=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_TIMEGM=1 -DHAVE_POLL=1 - DHAVE_DRAND48=1 -DHAVE_RANDOM=1 -DHAVE_CMMSG=1 -DUSE_PROCTHREAD=1 -c -o nspostgres.o nspostgres.c In file included from nspostgres.c:32: nspostgres.h:48:22: libpq-fe.h: No such file or directory In file included from nspostgres.c:32: nspostgres.h:169: parse error before "PGconn" nspostgres.h:169: warning: no semicolon at end of struct or union nspostgres.h:171: parse error before '*' token nspostgres.h:171: warning: data definition has no type or storage class nspostgres.h:176: parse error before '}' token nspostgres.h:176: warning: data definition has no type or storage class nspostgres.c: In function `Ns_PgOpenDb': nspostgres.c:109: `nsConn' undeclared (first use in this function) nspostgres.c:109: (Each undeclared identifier is reported only once nspostgres.c:109: for each function it appears in.) nspostgres.c:110: `PGconn' undeclared (first use in this function) nspostgres.c:110: `pgConn' undeclared (first use in this function) nspostgres.c:134: warning: implicit declaration of function `PQsetdbLogin' nspostgres.c:142: warning: implicit declaration of function `PQstatus' nspostgres.c:142: `CONNECTION_OK' undeclared (first use in this function) nspostgres.c:164: warning: implicit declaration of function `PQerrorMessage' nspostgres.c:165: warning: implicit declaration of function `PQfinish' nspostgres.c: In function `Ns_PgCloseDb': nspostgres.c:178: `nsConn' undeclared (first use in this function) nspostgres.c: In function `Ns_PgSetErrorstate': nspostgres.c:209: `nsConn' undeclared (first use in this function) nspostgres.c:214: warning: implicit declaration of function `PQresultStatus' nspostgres.c:215: `PGRES_EMPTY_QUERY' undeclared (first use in this function) nspostgres.c:216: `PGRES_COMMAND_OK' undeclared (first use in this function) nspostgres.c:217: `PGRES_TUPLES_OK' undeclared (first use in this function) nspostgres.c:218: `PGRES_COPY_OUT' undeclared (first use in this function) nspostgres.c:219: `PGRES_COPY_IN' undeclared (first use in this function) nspostgres.c:220: `PGRES_NONFATAL_ERROR' undeclared (first use in this function) nspostgres.c:221: warning: implicit declaration of function `PQresultErrorMessage' nspostgres.c:221: warning: passing arg 2 of `Ns_DStringNAppend' makes pointer from integer without a cast nspostgres.c:224: `PGRES_FATAL_ERROR' undeclared (first use in this function) nspostgres.c:225: warning: passing arg 2 of `Ns_DStringNAppend' makes pointer from integer without a cast nspostgres.c:228: `PGRES_BAD_RESPONSE' undeclared (first use in this function) nspostgres.c:230: warning: passing arg 2 of `Ns_DStringNAppend' makes pointer from integer without a cast nspostgres.c: In function `set_transaction_state': nspostgres.c:244: `nsConn' undeclared (first use in this function) nspostgres.c: In function `Ns_PgExec': nspostgres.c:274: `nsConn' undeclared (first use in this function) nspostgres.c:290: warning: implicit declaration of function `PQclear' nspostgres.c:308: warning: implicit declaration of function `PQexec' nspostgres.c:320: `CONNECTION_BAD' undeclared (first use in this function) nspostgres.c:330: `PGRES_NONFATAL_ERROR' undeclared (first use in this function) nspostgres.c:397: `PGRES_TUPLES_OK' undeclared (first use in this function) nspostgres.c:401: `PGRES_COPY_IN' undeclared (first use in this function) nspostgres.c:402: `PGRES_COPY_OUT' undeclared (first use in this function) nspostgres.c:405: `PGRES_COMMAND_OK' undeclared (first use in this function) nspostgres.c:407: warning: implicit declaration of function `PQcmdTuples' nspostgres.c:407: warning: passing arg 1 of `sscanf' makes pointer from integer without a cast nspostgres.c: In function `Ns_PgResetHandle': nspostgres.c:422: `nsConn' undeclared (first use in this function) nspostgres.c:435: `PGRES_COMMAND_OK' undeclared (first use in this function) nspostgres.c: In function `Ns_PgGetRow': nspostgres.c:505: `nsConn' undeclared (first use in this function) nspostgres.c:533: warning: implicit declaration of function `PQgetvalue' nspostgres.c: In function `Ns_PgFlush': nspostgres.c:550: `nsConn' undeclared (first use in this function) nspostgres.c: In function `PgCmd': nspostgres.c:1523: `pgconn' undeclared (first use in this function) nspostgres.c:1529: parse error before ')' token nspostgres.c:1600: warning: implicit declaration of function `PQdb' nspostgres.c:1602: warning: implicit declaration of function `PQhost' nspostgres.c:1604: warning: implicit declaration of function `PQoptions' nspostgres.c:1606: warning: implicit declaration of function `PQport' nspostgres.c:1613: `CONNECTION_OK' undeclared (first use in this function) nspostgres.c: In function `Ns_PgBindRow': nspostgres.c:1674: `nsConn' undeclared (first use in this function) nspostgres.c:1690: `PGRES_TUPLES_OK' undeclared (first use in this function) nspostgres.c:1692: warning: implicit declaration of function `PQnfields' nspostgres.c:1693: warning: implicit declaration of function `PQntuples' nspostgres.c:1697: warning: implicit declaration of function `PQfname' make: *** [nspostgres.o] Error 1 When I locate libpq-fe.h, I get: # locate libpq-fe.h /usr/local/src/postgresql-7.3.4/src/interfaces/libpq/libpq-fe.h /usr/local/src/postgresql-7.3.4/src/test/regress/tmp_check/install/usr/local/pgsql/ include/libpq-fe.h /usr/local/pgsql/include/libpq-fe.h Where do I go from here? Thorpe -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.
