#33675 [NEW]: error in location of pgsql
| From: | bernard dot prevosto at ifremer dot fr | Date: | Wed, 13 Jul 2005 08:14:18 +0000 |
| Subject: | #33675 [NEW]: error in location of pgsql | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-81793@lists.php.net to get a copy of this message | ||
From: bernard dot prevosto at ifremer dot fr
Operating system: solaris 8
PHP version: 4.4.0
PHP Bug Type: Compile Failure
Bug description: error in location of pgsql
Description:
------------
in configure, I put:
--with-pgsql=/home/services/logiciels/compilateurs/php/bases/pgsql
but in Makefile it's replace by:
-L/usr/local/pgsql
and
-I/usr/local/pgsql
Reproduce code:
---------------
The generated Makefile:
CONFIGURE_COMMAND = './configure'
'--prefix=/home/services/logiciels/compilateurs/php'
...
...
'--with-pgsql=/home/services/logiciels/compilateurs/php/bases/pgsql'
...
....
EXTRA_LDFLAGS = -L/usr/ucblib
...
-L/usr/local/pgsql/lib
...
INCLUDES = -I/home/services/bibli/zlib/include
...
-I/usr/local/pgsql/include
Expected result:
----------------
with PHP-3.4.11 it's work fine
the value of location of pgsql is not changed
and the make work fine
generated Makefile whith PHP-3.4.11
CONFIGURE_COMMAND = './configure'
'--prefix=/home/services/logiciels/compilateurs/php'
...
...
'--with-pgsql=/home/services/logiciels/compilateurs/php/bases/pgsql'
...
....
EXTRA_LDFLAGS = -L/usr/ucblib
...
-L/home/services/logiciels/compilateurs/php/bases/pgsql/lib
...
INCLUDES = -I/home/services/bibli/zlib/include
...
-I/home/services/logiciels/compilateurs/php/bases/pgsql/include
Actual result:
--------------
Wy /usr/local/pgsql in the Makefile?????
I have copied my pgsql directory in /usr/local
and make done:
gcc -Iext/pgsql/
-I/home2/beniguet/tmsiric/bpre/anonymous/apache/php-4.4.0/ext/pgsql/
-DPHP_ATOM_INC
-I/home2/beniguet/tmsiric/bpre/anonymous/apache/php-4.4.0/include
-I/home2/beniguet/tmsiric/bpre/anonymous/apache/php-4.4.0/main
-I/home2/beniguet/tmsiric/bpre/anonymous/apache/php-4.4.0
-I/home/services/bibli/zlib/include
-I/home/services/bibli/xmllib/include/libxml2
-I/home/services/bibli/jpeglib/include
-I/home/services/bibli/pnglib/include
-I/home/services/logiciels/gettext/include
-I/home/services/bibli/openldap/include
-I/home2/beniguet/tmsiric/bpre/anonymous/apache/php-4.4.0/ext/mbstring/mbregex
-I/home2/beniguet/tmsiric/bpre/anonymous/apache/php-4.4.0/ext/mbstring/libmbfl
-I/home2/beniguet/tmsiric/bpre/anonymous/apache/php-4.4.0/ext/mbstring/libmbfl/mbfl
-I/home/services/bibli/mysql/include
-I/home/services/logiciels/compilateurs/php/bases/ora920/rdbms/public
-I/home/services/logiciels/compilateurs/php/bases/ora920/rdbms/demo
-I/home/services/bibli/pdflib/include -I/usr/local/pgsql/include
-I/home2/beniguet/tmsiric/bpre/anonymous/apache/php-4.4.0/ext/xml/expat
-I/home/services/bibli/zziplib/include
-I/home2/beniguet/tmsiric/bpre/anonymous/apache/php-4.4.0/TSRM
-I/home2/beniguet/tmsiric/bpre/anonymous/apache/php-4.4.0/Zend
-D_POSIX_PTHREAD_SEMANTICS -g -O2 -c
/home2/beniguet/tmsiric/bpre/anonymous/apache/php-4.4.0/ext/pgsql/pgsql.c
-o ext/pgsql/pgsql.o && echo > ext/pgsql/pgsql.lo
In file included from
/home2/beniguet/tmsiric/bpre/anonymous/apache/php-4.4.0/ext/pgsql/pgsql.c:38:
/home2/beniguet/tmsiric/bpre/anonymous/apache/php-4.4.0/ext/pgsql/php_pgsql.h:50:23:
pg_config.h: No such file or directory
/home2/beniguet/tmsiric/bpre/anonymous/apache/php-4.4.0/ext/pgsql/pgsql.c:
In function `zm_info_pgsql':
/home2/beniguet/tmsiric/bpre/anonymous/apache/php-4.4.0/ext/pgsql/pgsql.c:498:
error: `PG_VERSION' undeclared (first use in this function)
/home2/beniguet/tmsiric/bpre/anonymous/apache/php-4.4.0/ext/pgsql/pgsql.c:498:
error: (Each undeclared identifier is reported only once
/home2/beniguet/tmsiric/bpre/anonymous/apache/php-4.4.0/ext/pgsql/pgsql.c:498:
error: for each function it appears in.)
gmake: *** [ext/pgsql/pgsql.lo] Error 1
--
Edit bug report at http://bugs.php.net/?id=33675&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33675&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33675&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33675&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=33675&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=33675&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=33675&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=33675&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=33675&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=33675&r=support
Expected behavior: http://bugs.php.net/fix.php?id=33675&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=33675&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=33675&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=33675&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33675&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=33675&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=33675&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=33675&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=33675&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=33675&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=33675&r=mysqlcfg