|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #315 Apache_1.3b6 & pgsql DSO won't link right
Submitted: 1998-04-26 18:21 UTC Modified: 1998-05-23 18:02 UTC
From: bb851 at lafn dot org Assigned:
Status: Closed Package: PostgreSQL related
PHP Version: 3.0 Release Candidate 4 OS: Redhat Linux 5.0
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: bb851 at lafn dot org
New email:
PHP Version: OS:


 [1998-04-26 18:21 UTC] bb851 at lafn dot org
System Redhat 5 linux with Apache_1.3b6 and PostgreSQL 6.3.1

  When trying to make a DSO module you need to specify the 
static version of libpq to the final link phase in the 
php3 Makefile. If not the PGxyz symbols are not resolved 
because it will bind to the dynamic library and the module 
will not load.
   I also had a problem with PGsetdb. It is now (in 
pgsql-6.3+) a #define pointing to the new function 
PGsetdbLogin. This should be taken care of in libpq-fe.h, 
but I needed to edit pgsql.c to get it to fully link.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1998-05-23 18:02 UTC] zeev
The link problem should be fixed now (compiles clean
with PostgreSQL 6.3).

The makefiles for PHP 3.0 aren't designed to build a DSO
module out of the box.  if you want one, you actually
have to edit it and link in the static copies.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sat Jan 22 18:03:35 2022 UTC