php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48868 fails to compile with postgres 8.3.7
Submitted: 2009-07-09 13:02 UTC Modified: 2009-07-29 01:00 UTC
Votes:4
Avg. Score:4.8 ± 0.4
Reproduced:3 of 3 (100.0%)
Same Version:3 (100.0%)
Same OS:0 (0.0%)
From: martti at aplcomp dot fi Assigned: mbeccati (profile)
Status: No Feedback Package: PostgreSQL related
PHP Version: 5.3.0 OS: Ubuntu 9.04 , x64
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2009-07-09 13:02 UTC] martti at aplcomp dot fi
Description:
------------
"make"  produces fatal error when configured to use
--with-pgsql



Reproduce code:
---------------
ext/pgsql/.libs/pgsql.o: In function `zif_pg_lo_import':
/data/APLCOMP/temp/php-5.3.0/ext/pgsql/pgsql.c:3381: undefined reference to `lo_import_with_oid'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

Expected result:
----------------
compiled php.so

Actual result:
--------------
fatal error

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-07-21 07:29 UTC] mbeccati@php.net
It looks like there's something wrong on your system. For somewhat reason the configure script did pass the test for lo_import_with_oid (added in 8.4), but when compiling and linking an old version of libpq is used.

Could you please identify what versions of the headers and libpq are installed on your system?

E.g.
locate libpq-fe.h
locate libpq.so

It also would be useful to know if they were installed from a Ubuntu package or compiled by you.
 [2009-07-29 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2009-08-15 11:41 UTC] z6x0a57 at gmail dot com
Version 5.3.0:

ext/pgsql/.libs/pgsql.o: In function `zif_pg_lo_import':
/path/ext/pgsql/pgsql.c:3381: undefined reference to `lo_import_with_oid'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

Version 5.2.10:

Build complete.
Don't forget to run 'make test'.
 [2009-08-15 11:42 UTC] z6x0a57 at gmail dot com
Version 5.3.0:

ext/pgsql/.libs/pgsql.o: In function `zif_pg_lo_import':
/path/ext/pgsql/pgsql.c:3381: undefined reference to `lo_import_with_oid'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

Version 5.2.10:

Build complete.
Don't forget to run 'make test'.
 [2009-10-26 01:09 UTC] hungry dot rahly at gmail dot com
I've only found this to be a problem on multi architectured platforms.  Because some of the PHP build system is based on file testing and not feature testing, it looks for files in some places without verifying if they work.  For example, by compiling with ./configure --libdir=/usr/lib64 will still for some reason test for /usr/lib/libmysqlclient.so and thereby add -L/usr/lib to the library path and if you have a different version of the postgres librarys in there, it'll try to use them.  The really weird thing, is that it correctly compiles it for the configure test script, but fails when trying to do the actual build.  I've had to manually edit the Makefile and replace /usr/lib's with /usr/lib64's
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 09:01:30 2024 UTC