php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13160 Apache fails to start, undefined symbol "pg_encoding_to_char"
Submitted: 2001-09-05 21:17 UTC Modified: 2001-12-05 18:55 UTC
From: brian at sunset-cliffs dot org Assigned:
Status: Closed Package: PostgreSQL related
PHP Version: 4.0.6 OS: Debian Linux - Potato
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: brian at sunset-cliffs dot org
New email:
PHP Version: OS:

 

 [2001-09-05 21:17 UTC] brian at sunset-cliffs dot org
This looks to be similar/related to http://www.php.net/bugs.php?id=5417

Doing an 'apachectl configtest' with PHP 4.06/Apache 1.3.20/PostgreSQL 7.1.3, I get the following error message.
"Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/local/apache/libexec/libphp4.so: undefined symbol: pg_encoding_to_char"

I "fixed" it by recompiling PostgreSQL 7.1.3 without '--enable-multibyte', then removing config.cache in PHP and recompiling.

./configure for PHP
-------------------
./configure \
--prefix=/usr/local/apache-1.3.20 \
--with-apxs=/usr/local/apache-1.3.20/bin/apxs \
--with-config-file-path=/usr/local/apache-1.3.20/conf \
--with-gd \
--with-pgsql=/usr/local/pgsql \
--with-mm=/usr/local/lib \
--with-zlib \
--with-zlib-dir=/usr/lib \
--with-xml \
--with-gdbm \
--with-gettext \
--with-openssl=/usr \
--with-ldap=/usr \
--enable--sysvsem \
--enable-sysvshm \
--enable-force-cgi-redirect \
--enable-calendar \
--enable-inline-optimization \
--enable-trans-sid \
--enable-track-vars


./configure for Apache
----------------------
EAPI_MM=/usr/local/src/apache/mm-1.1.3 \
SSL_BASE=/usr/local \
./configure \
--prefix=/usr/local/apache-1.3.20 \
--enable-module=ssl \
--enable-module=most \
--enable-shared=max \
--enable-rule=EAPI \
--enable-rule=SHARED_CORE \
--enable-rule=SHARED_CHAIN \
--enable-module=so


./configure for PostgreSQL
--------------------------
./configure --prefix=/usr/local/pgsql \
--enable-multibyte \
--with-openssl=/usr/local/ --enable-syslog


(Note: remove '--enable-multibyte' in the above ./configure to eliminate the 'bug')

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-05 18:55 UTC] yohgaki@php.net
This should be fixed in CVS and 4.1.0RC.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 15:01:31 2025 UTC