From:             [EMAIL PROTECTED]
Operating system: Linux 2.4.19
PHP version:      4.3.0RC2
PHP Bug Type:     *Compile Issues
Bug description:  IBM-DB2 don't compile

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 bug report at http://bugs.php.net/?id=20715&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=20715&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=20715&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=20715&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=20715&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=20715&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=20715&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=20715&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=20715&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=20715&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=20715&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20715&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=20715&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=20715&r=isapi

Reply via email to