php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71582 ext/pgsql/pgsql.c:3762: undefined reference to `lo_lseek64'
Submitted: 2016-02-13 11:58 UTC Modified: 2016-02-28 04:22 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:-1 (-50.0%)
From: cefull at gmail dot com Assigned:
Status: No Feedback Package: Compile Failure
PHP Version: 5.6.18 OS: CentOS7
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2016-02-13 11:58 UTC] cefull at gmail dot com
Description:
------------
When I compile php-5.6.18 from source code, I encountered this

In function `zif_pg_lo_seek':
/usr/local/src/php-5.6.18/ext/pgsql/pgsql.c:3762: undefined reference to `lo_lseek64'
ext/pgsql/.libs/pgsql.o: In function `zif_pg_lo_tell':
/usr/local/src/php-5.6.18/ext/pgsql/pgsql.c:3794: undefined reference to `lo_tell64'
ext/pgsql/.libs/pgsql.o: In function `zif_pg_lo_truncate':
/usr/local/src/php-5.6.18/ext/pgsql/pgsql.c:3824: undefined reference to `lo_truncate64'
collect2: error: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

I'm using postgresql-9.4.5 (also compile from source code).


Expected result:
----------------
compile complete

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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-02-20 15:15 UTC] ab@php.net
-Status: Open +Status: Feedback
 [2016-02-20 15:15 UTC] ab@php.net
Hi,

sounds like some configure issue. These symbols are available since Postgres 9.3. Is there any older installation in the default paths, it will take precedence. What does the relevant configure part tell?

Thanks.
 [2016-02-28 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 [2017-04-28 15:00 UTC] pwsdotru at gmail dot com
Had same errors when configure PHP with options

--with-pgsql=/usr/pgsql-9.4 --with-pdo-pgsql

Fixed when enter directory for each options

--with-pgsql=/usr/pgsql-9.4 --with-pdo-pgsql=/usr/pgsql-9.4
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 08 18:01:34 2024 UTC