Greetings.
I'm trying to compile mod_auth_pgsql2 for Solaris 10, I have the
blastwave packages installed for libpq, apache2 and apache2_devel
I'm following this how to
http://archives.postgresql.org/pgsql-performance/2007-10/msg00076.php
However, when I run it i get this
sandbox# /opt/csw/apache2/sbin/apxs -i -a -c -l /opt/csw/postgresql/
include -L /opt/csw/postgresql/lib -lpq mod_auth_pgsql.c
/opt/csw/apache2/share/build/libtool --silent --mode=compile cc -
prefer-pic -DSSL_EXPERIMENTAL -DSSL_ENGINE -xO3 -xarch=386 -xspace -
xildoff -I/opt/csw/bdb44/include -I/opt/csw/include -I/opt/csw/bdb44/
include -I/opt/csw/include -DSOLARIS2=8 -D_POSIX_PTHREAD_SEMANTICS -
D_REENTRANT -mt -I/opt/csw/apache2/include -I/opt/csw/apache2/
include -I/opt/csw/apache2/include -I/opt/csw/bdb44/include -I/opt/
csw/include -c -o mod_auth_pgsql.lo mod_auth_pgsql.c && touch
mod_auth_pgsql.slo
"mod_auth_pgsql.c", line 117: cannot find include file: "libpq-fe.h"
"mod_auth_pgsql.c", line 520: undefined symbol: PGresult
"mod_auth_pgsql.c", line 520: undefined symbol: pg_result
"mod_auth_pgsql.c", line 521: undefined symbol: PGconn
"mod_auth_pgsql.c", line 521: undefined symbol: pg_conn
"mod_auth_pgsql.c", line 533: warning: implicit function declaration:
PQsetdbLogin
"mod_auth_pgsql.c", line 536: warning: implicit function declaration:
PQstatus
"mod_auth_pgsql.c", line 536: undefined symbol: CONNECTION_OK
"mod_auth_pgsql.c", line 537: warning: implicit function declaration:
PQreset
"mod_auth_pgsql.c", line 540: warning: implicit function declaration:
PQerrorMessage
"mod_auth_pgsql.c", line 545: warning: implicit function declaration:
PQfinish
"mod_auth_pgsql.c", line 555: warning: implicit function declaration:
PQexec
"mod_auth_pgsql.c", line 565: warning: implicit function declaration:
PQresultStatus
"mod_auth_pgsql.c", line 565: undefined symbol: PGRES_EMPTY_QUERY
"mod_auth_pgsql.c", line 566: warning: implicit function declaration:
PQclear
"mod_auth_pgsql.c", line 571: undefined symbol: PGRES_TUPLES_OK
"mod_auth_pgsql.c", line 579: warning: implicit function declaration:
PQntuples
"mod_auth_pgsql.c", line 580: warning: implicit function declaration:
PQgetvalue
"mod_auth_pgsql.c", line 580: warning: improper pointer/integer
combination: op "="
"mod_auth_pgsql.c", line 841: warning: implicit function declaration:
crypt
"mod_auth_pgsql.c", line 1123: warning: syntax error: empty declaration
cc: acomp failed for mod_auth_pgsql.c
apxs:Error: Command failed with rc=65536
Now the strange thing is this
sandbox# ls -l /opt/csw/postgresql/include/libpq-fe.h
-rw-r--r-- 1 root bin 17983 Feb 16 2007 /opt/csw/
postgresql/include/libpq-fe.h
I'm not that great with compiling and whatnot, so I'm at a bit of a
loss.
Advice ?
Thanks.
----
Jeff MacDonald
Interchange Technologies
613 292 6239
---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?
http://www.postgresql.org/docs/faq