Hello,
This might be a simple gotcha, but I can't find it. I'm trying to build php-4.0.5 with pgsql support but make keeps failing. I have postgresql-7.1 installed and running (both postgresql-7.1 and postgresql-base-7.1 tarballs). I'm building php for use with apache-2.0.16-beta.
PHP configure line:
CFLAGS="-O6 -mpentium" ./configure --with-apxs2=/usr/local/httpd/bin/apxs --with-openssl --enable-ftp --with-pgsql=shared
I have tried --with-pgsql=/usr/local/pgsql but it made no difference. Besides, /usr/local/pgsql is supposed to be the default. This path is nonetheless the $(PREFIX) of my postgresql install.
Error message:
make[3]: Entering directory /usr/home/users/pasti/tmp/php-4.0.5/ext/pgsql'
notice_handler':
/bin/sh /usr/home/users/pasti/tmp/php-4.0.5/libtool --silent --mode=compile gcc -I. -I/usr/home/users/pasti/tmp/php-4.0.5/ext/pgsql -I/usr/home/users/pasti/tmp/php-4.0.5/main -I/usr/home/users/pasti/tmp/php-4.0.5 -I/usr/local/httpd/include -I/usr/home/users/pasti/tmp/php-4.0.5/Zend -I/usr/home/users/pasti/tmp/php-4.0.5/ext/mysql/libmysql -I/usr/home/users/pasti/tmp/php-4.0.5/ext/xml/expat/xmltok -I/usr/home/users/pasti/tmp/php-4.0.5/ext/xml/expat/xmlparse -I/usr/home/users/pasti/tmp/php-4.0.5/TSRM -I/usr/local/pgsql/include -D_REENTRANT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -I../TSRM -DTHREAD=1 -O6 -mpentium -pthread -c pgsql.c && touch pgsql.slo
pgsql.c: In function
pgsql.c:158: warning: passing arg 1 of php_log_err' discards qualifiers from pointer target type
rollback_transactions':
pgsql.c: In function
pgsql.c:167: pgsql_globals' undeclared (first use in this function)
/usr/home/users/pasti/tmp/php-4.0.5/ext/pgsql'
pgsql.c:167: (Each undeclared identifier is reported only once
pgsql.c:167: for each function it appears in.)
make[3]: *** [pgsql.slo] Error 1
make[3]: Leaving directory
make[2]: [all-recursive] Error 1
make[2]: Leaving directory /usr/home/users/pasti/tmp/php-4.0.5/ext/pgsql'
/usr/home/users/pasti/tmp/php-4.0.5/ext'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
make: [all-recursive] Error 1
Could you help me out with this? I've tried to overcome this error for several hours now, reading all the docs I can get my hands on.. no luck.
Thanks in advance,
Mikko