|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-11-29 04:12 UTC] bruno at cameleons dot net
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
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 12:00:01 2025 UTC |
Hi, It doesn't work. I put below some extracts of my compile. ./configure \ --prefix=/usr \ --with-layout=GNU \ --with-apxs2=/usr/sbin/apxs \ --with-config-file-path=/etc/httpd \ --with-exec-dir=/usr/bin \ --with-ibm-db2=shared /bin/sh /var/tmp/php4-STABLE-200303070830/libtool --silent --preserve-dup-deps --mode=compile gcc -I/home/db2inst1/sqllib/include -Iext/odbc/ -I/var/tmp/php4-STABLE-200303070830/ext/odbc/ -DPHP_ATOM_INC -I/var/tmp/php4-STABLE-200303070830/include -I/var/tmp/php4-STABLE-200303070830/main -I/var/tmp/php4-STABLE-200303070830 -I/usr/include/httpd -I/var/tmp/php4-STABLE-200303070830/Zend -I/var/tmp/php4-STABLE-200303070830/ext/xml/expat -D_REENTRANT -D_SINGLE_LISTEN_UNSERIALIZED_ACCEPT -I/var/tmp/php4-STABLE-200303070830/TSRM -g -O2 -prefer-pic -c /var/tmp/php4-STABLE-200303070830/ext/odbc/php_odbc.c -o ext/odbc/php_odbc.lo /var/tmp/php4-STABLE-200303070830/ext/odbc/php_odbc.c: In function `safe_odbc_disconnect': /var/tmp/php4-STABLE-200303070830/ext/odbc/php_odbc.c:199: warning: passing arg 1 of `SQLDisconnect' makes integer from pointer without a cast /var/tmp/php4-STABLE-200303070830/ext/odbc/php_odbc.c:202: warning: passing arg 1 of `SQLTransact' makes integer from pointer without a cast /var/tmp/php4-STABLE-200303070830/ext/odbc/php_odbc.c:202: warning: passing arg 2 of `SQLTransact' makes integer from pointer without a cast /var/tmp/php4-STABLE-200303070830/ext/odbc/php_odbc.c:203: warning: passing arg 1 of `SQLDisconnect' makes integer from pointer without a cast /var/tmp/php4-STABLE-200303070830/ext/odbc/php_odbc.c: In function `_close_odbc_conn': /var/tmp/php4-STABLE-200303070830/ext/odbc/php_odbc.c:229: warning: passing arg 1 of `safe_odbc_disconnect' makes pointer from integer without a cast /var/tmp/php4-STABLE-200303070830/ext/odbc/php_odbc.c: In function `_close_odbc_pconn': /var/tmp/php4-STABLE-200303070830/ext/odbc/php_odbc.c:257: warning: passing arg 1 of `safe_odbc_disconnect' makes pointer from integer without a cast /var/tmp/php4-STABLE-200303070830/ext/odbc/php_odbc.c: In function `zif_odbc_data_source': /var/tmp/php4-STABLE-200303070830/ext/odbc/php_odbc.c:1230: warning: passing arg 2 of `odbc_sql_error' makes integer from pointer without a cast /var/tmp/php4-STABLE-200303070830/ext/odbc/php_odbc.c: In function `odbc_do_connect': /var/tmp/php4-STABLE-200303070830/ext/odbc/php_odbc.c:2223: warning: passing arg 1 of `spprintf' from incompatible pointer type /bin/sh /var/tmp/php4-STABLE-200303070830/libtool --silent --preserve-dup-deps --mode=link gcc -DPHP_ATOM_INC -I/var/tmp/php4-STABLE-200303070830/include -I/var/tmp/php4-STABLE-200303070830/main -I/var/tmp/php4-STABLE-200303070830 -I/usr/include/httpd -I/var/tmp/php4-STABLE-200303070830/Zend -I/var/tmp/php4-STABLE-200303070830/ext/xml/expat -D_REENTRANT -D_SINGLE_LISTEN_UNSERIALIZED_ACCEPT -I/var/tmp/php4-STABLE-200303070830/TSRM -g -O2 -o ext/odbc/odbc.la -export-dynamic -avoid-version -prefer-pic -module -rpath /var/tmp/php4-STABLE-200303070830/modules -avoid-version -module ext/odbc/php_odbc.lo /bin/sh /var/tmp/php4-STABLE-200303070830/libtool --silent --preserve-dup-deps --mode=install cp ext/odbc/odbc.la /var/tmp/php4-STABLE-200303070830/modules PATH="$PATH:/sbin" ldconfig -n /var/tmp/php4-STABLE-200303070830/modules [root@intranet php4-STABLE-200303070830]# ldd modules/odbc.so libc.so.6 => /lib/libc.so.6 (0x40012000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) Bruno