php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4712 referenced symbol error when compiling with pgsql
Submitted: 2000-05-30 23:46 UTC Modified: 2000-08-29 18:26 UTC
From: joed at itsa dot ucsf dot edu Assigned:
Status: Closed Package: Installation problem
PHP Version: 4.0.0 Release OS: Solaris 8
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: joed at itsa dot ucsf dot edu
New email:
PHP Version: OS:

 

 [2000-05-30 23:46 UTC] joed at itsa dot ucsf dot edu
Hi,
    I'm trying to use this with Postgres7.0  My configure is
./configure --with-pgsql=/usr/local/pgsql \
  --without-mysql \
  --with-apxs=/usr/local/apache/bin/apxs

I've defined CFLAGS and LD_LIBRARY_PATH as follows:

CFLAGS=-R/usr/local/pgsql/lib -I/usr/local/pgsql/include
LD_LIBRARY_PATH=/usr/local/pgsql/lib

The "make" and "make install" run without any problems, but I can't start apache.  I've checked to ensure /usr/local/apache/libexec/libphp4.so is there, and with the correct permissions, but I still get this error


pubaffairs# ./apachectl start
Syntax error on line 207 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server: ld.so.1: /usr/local/apache/bin/httpd: fatal: relocation error: file /usr/local/apache/libexec/libphp4.so: symbol PQfinish: referenced symbol not found
./apachectl start: httpd could not be started


P.S.  I tried compiling php3.0.16 and got the same error.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-17 03:20 UTC] sniper@php.net
Have you tried more recent version of php4 if the problem persists?

--Jani
 [2000-08-29 18:26 UTC] sniper@php.net
Try to  define LD_LIBRARY_PATH=/usr/local/pgsql/lib before trying to start
apache. Reopen if problem still persists when using PHP4.0.2.

--Jani
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Oct 11 06:00:01 2026 UTC