php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35911 HAVE_PG_CONFIG_H set incorrectly
Submitted: 2006-01-05 22:06 UTC Modified: 2006-01-05 22:53 UTC
From: mberg at synacor dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 5.1.1, 4.4.1 OS: Red Hat Linux 7.2 (ish)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mberg at synacor dot com
New email:
PHP Version: OS:

 

 [2006-01-05 22:06 UTC] 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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-05 22:08 UTC] tony2001@php.net
and the result of this is... ?
 [2006-01-05 22:23 UTC] mberg at synacor dot com
It tries to include pg_config.h and the compile fails.
 [2006-01-05 22:26 UTC] tony2001@php.net
Are you sure your PG installation is not broken?
Which version is that?
 [2006-01-05 22:46 UTC] 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:53 UTC] sniper@php.net
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.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 29 15:00:02 2025 UTC