ID: 20715
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
-Status: Open
+Status: Feedback
Bug Type: ODBC related
Operating System: Linux 2.4.19
PHP Version: 4.3.0RC2
New Comment:
Interestingly enough there have been no changes to the config.m4 with
regards to the ibm-db2 section between those two versions. Does this
happen only with the db2 option selected?
Previous Comments:
------------------------------------------------------------------------
[2002-11-29 04:12:49] [EMAIL PROTECTED]
hi,
I need to compile IBM DB2 support on PHP with Apache 2. With the 4.2.3,
i've the problem with file_exists function and relative path. So, i
downloaded the 4.3.0RC2 version. Everything compile fine but the ODBC
module don't work. Apache send this message:
/usr/sbin/httpd: relocation error: /usr/lib/php4/odbc.so: undefined
symbol: SQLAllocEnv
When i do a ldd command on odbc.so:
libc.so.6 => /lib/libc.so.6 (0x40011000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
on the 4.2.3 version, the same command do this result:
libdb2.so.1 => /usr/IBMdb2/V7.1/lib/libdb2.so.1 (0x4001b000)
libc.so.6 => /lib/libc.so.6 (0x40843000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x4096a000)
libdl.so.2 => /lib/libdl.so.2 (0x40997000)
libpthread.so.0 => /lib/libpthread.so.0 (0x4099a000)
libstdc++-libc6.1-1.so.2 => /usr/lib/libstdc++-libc6.1-1.so.2
(0x409af000)
libm.so.6 => /lib/libm.so.6 (0x409f1000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
Here's my configure:
CFLAGS="-O2 -march=i686 -funroll-loops -D_REENTRANT -fPIC"; export
CFLAGS
LIBS="-lttf -lfreetype -lpng -ljpeg -lz -lnsl"; export LIBS
EXTENSION_DIR=/usr/lib/php4; export EXTENSION_DIR
IMAP_SHARED_LIBADD=-lc-client ; export IMAP_SHARED_LIBADD
./buildconf
./configure \
--prefix=/usr \
--with-layout=GNU \
--with-apxs2=/usr/sbin/apxs \
--with-config-file-path=/etc/httpd \
--with-exec-dir=/usr/bin \
--with-openssl \
--with-zlib \
--with-bz2 \
--with-gd \
--with-ttf \
--with-png \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
--with-freetype-dir=/usr \
--with-expat-dir=/usr \
--with-gmp \
--with-xml \
--with-imap=shared \
--with-imap-ssl \
--with-mysql=shared,/usr \
--with-mysql-sock=/var/lib/mysql/mysql.sock \
--with-ldap=shared \
--with-pspell \
--disable-debug \
--disable-posix \
--disable-rpath \
--enable-safe-mode \
--enable-magic-quotes \
--enable-bcmath \
--enable-dio \
--enable-gd-native-ttf \
--enable-sysvsem \
--enable-sysvshm \
--enable-wddx \
--enable-pic \
--enable-inline-optimization \
--enable-memory-limit \
--enable-cli \
--enable-force-cgi-redirect \
--with-pear=/usr/share/pear \
--enable-discard-path \
--enable-track-vars \
--enable-ftp \
--with-pdflib=/usr \
--with-ibm-db2=shared,/usr/IBMdb2/V7.1 \
--with-oci8=shared,/usr/oracle/product/9.0.1
Thanks for help
Bruno Meneuvrier
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20715&edit=1