From:             [EMAIL PROTECTED]
Operating system: Debian Linux - Potato
PHP version:      4.0.6
PHP Bug Type:     PostgreSQL related
Bug description:  Apache fails to start, undefined symbol "pg_encoding_to_char"

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')

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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to