#35911 [Opn->Csd]: HAVE_PG_CONFIG_H set incorrectly
| From: | sniper@php.net | Date: | Thu, 05 Jan 2006 21:53:39 +0000 |
| Subject: | #35911 [Opn->Csd]: HAVE_PG_CONFIG_H set incorrectly | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-91579@lists.php.net to get a copy of this message | ||
ID: 35911
Updated by: sniper@php.net
Reported By: mberg at synacor dot com
-Status: Open
+Status: Closed
Bug Type: Compile Failure
Operating System: Red Hat Linux 7.2 (ish)
-PHP Version: 4.4.1
+PHP Version: 5.1.1, 4.4.1
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2006-01-05 22:46:32] mberg at synacor dot com
My install is fine. It's version 7.1. The file pg_config.h didn't
exist until 7.2 (though many of the same variables exist in the file
config.h).
------------------------------------------------------------------------
[2006-01-05 22:26:51] tony2001@php.net
Are you sure your PG installation is not broken?
Which version is that?
------------------------------------------------------------------------
[2006-01-05 22:23:28] mberg at synacor dot com
It tries to include pg_config.h and the compile fails.
------------------------------------------------------------------------
[2006-01-05 22:08:18] tony2001@php.net
and the result of this is... ?
------------------------------------------------------------------------
[2006-01-05 22:06:43] mberg at synacor dot com
Description:
------------
config.m4 incorrectly assumes that the existence of pg_config binary
implies existence of pg_config.h:
if test -n "$PG_CONFIG"; then
AC_MSG_RESULT([$PG_CONFIG])
PGSQL_INCLUDE=
$PG_CONFIG --includedir
PGSQL_LIBDIR=$PG_CONFIG --libdir
AC_DEFINE(HAVE_PG_CONFIG_H,1,[Whether to have pg_config.h])
Removing the AC_DEFINE corrects the issue.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35911&edit=1