ID:               48868
 Comment by:       hungry dot rahly at gmail dot com
 Reported By:      martti at aplcomp dot fi
 Status:           No Feedback
 Bug Type:         PostgreSQL related
 Operating System: Ubuntu 9.04 , x64
 PHP Version:      5.3.0
 Assigned To:      mbeccati
 New Comment:

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


Previous Comments:
------------------------------------------------------------------------

[2009-08-15 11:42:35] 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:41:59] 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-07-29 01:00:00] 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-07-21 07:29:23] mbecc...@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-09 13:02:52] 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


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=48868&edit=1

Reply via email to