Hi folks,
System is RedHat 7.2 with kernel 2.4.9-34, glibc 2.2.4.
Trying to build PHP 4.4.4 with Postgres 8.1.4 and am having some issues. As
I will need to build this on a fairly wide variety of platforms, I am
reducing my build and maintenance complexity by only wanting to use the
Postgres client library as a static lib.
My configure line for this test:
make distclean; ./configure \
--prefix=$HOME/php_test \
--with-xsl=/tools/libxslt \
--with-openssl=/tools/openssl \
--with-libxml-dir=/tools/libxml2 \
--without-xmlrpc \
--without-zlib \
--without-bz2 \
--with-mysql \
--with-pgsql=$HOME/postgresql-8.1.4/src/interfaces/libpq \
--without-sqlite \
--enable-force-cgi-redirect \
--disable-cli \
--disable-pear \
--disable-ipv6 \
--with-apxs=/tools/apache/bin/apxs
If I use the Postgres client shared lib, the configure process works fine -
all of the various PQ... functions are detected. If I use only the static
lib, then Postgres reports being detected, but none of the PQ.. functions are
found. I tried extracting the code from the configure process that performs
these detections and found that the only thing blocking the search for the
PQ... functions from completing when using a static lib was that -lcrypt was
not in the LIBS variable. Earlier in the configure script, there is a
detection for crypt, which fails... but if I manually run the same test for
crypt, it works!
So, my questions are:
1. Why does the detection for crypt fail in configure but work at the
commandline?
2. Why would there be a difference between detecting PQ functions in the
postgres client static lib vs the shared lib?
Thanks for any advice!
[Index of Archives]
[PHP Users]
[PHP Home]
[PHP on Windows]
[Kernel Newbies]
[PHP Classes]
[Postgresql]
[PHP Books]
[PHP Databases]
[PHP SOAP]