From: flconseil at yahoo dot fr
Operating system: HP-UX
PHP version: 5.1.2
PHP Bug Type: PDO related
Bug description: pdo-pgsql shouldn't use pkg-config when it is not present
Description:
------------
Compiling PHP 5.1.2 on HP-UX 11.11 with pgsql 8.1.1 and OpenSSL support.
I don't have pkg-config on my system. configure gets it right at the
beginning : checking for pkg-config... no
Then, in the pdo-pgsql section, I get :
checking for openssl dependencies... yes
./configure[75167]: pkg-config: not found.
I think that this code in ext/pdo_pgsql/config.m4 should be modified :
AC_MSG_CHECKING([for openssl dependencies])
if grep -q openssl $PGSQL_INCLUDE/libpq-fe.h ; then
AC_MSG_RESULT([yes])
if pkg-config openssl ; then
PDO_PGSQL_CFLAGS="`pkg-config openssl --cflags`"
fi
else
AC_MSG_RESULT([no])
fi
There should be an alternate check for systems without pkg-config. Or
pkg-config should be listed as a pre-requisite, which is not the case, is
it ?
I cannot tell you more on a possible solution as I don't know exactly what
pkg-config is supposed to say in this case.
In my case, after building and installing PHP, it seems to work OK. I
didn't try pdo_pgsql more than loading it and checking in phpinfo that it
is seen as enabled, but I didn't have any other error message during
compile.
Reproduce code:
---------------
configure ... --with-pdo-pgsql=shared,<DIR>
Expected result:
----------------
Correct SSL dependencies even if pkg-config is not installed.
Actual result:
--------------
checking for openssl dependencies... yes
./configure[75167]: pkg-config: not found.
--
Edit bug report at http://bugs.php.net/?id=35981&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=35981&r=trysnapshot44
Try a CVS snapshot (PHP 5.1):
http://bugs.php.net/fix.php?id=35981&r=trysnapshot51
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=35981&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=35981&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=35981&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=35981&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=35981&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=35981&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35981&r=support
Expected behavior: http://bugs.php.net/fix.php?id=35981&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=35981&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=35981&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=35981&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35981&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=35981&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=35981&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35981&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=35981&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=35981&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=35981&r=mysqlcfg