php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17358 Apache doesn't starts PHP with DB2/ODBC support
Submitted: 2002-05-22 09:16 UTC Modified: 2002-06-24 04:24 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: thorsten at webmedia-concepts dot de Assigned:
Status: Closed Package: ODBC related
PHP Version: 4.2.1 OS: SuSE Linux 8.0
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: thorsten at webmedia-concepts dot de
New email:
PHP Version: OS:

 

 [2002-05-22 09:16 UTC] thorsten at webmedia-concepts dot de
My configure script:

./configure --with-apxs=/usr/local/apache/current/bin/apxs --with-mysql=/usr/local/mysql/ --with-ibm-db2=/home/db2inst1/sqllib/ --with-gd --with-dom --with-db --with-openssl-include=/usr/local/openssl --with-zlib-dir=/usr/include/  --with-jpeg-dir=/usr/local/lib/ --with-png-dir=/usr/local/lib/ --with-tiff-dir=/usr/local/lib/ --with-ttf-dir=/usr/local/lib/ --with-java=/usr/lib/java/ --with-mcrypt --enable-ftp --enable-calendar --enable-versioning --enable-track-vars=yes --enable-sysvshm=yes --enable-sysvshm=yes --with-config-file-path=/etc --enable-magic-quotes --enable-trans-sid

When compiling PHP, I got several compile warnings:

Making all in odbc
make[2]: Entering directory `/usr/local/src/lamp/php-4.2.1/ext/odbc'
make[3]: Entering directory `/usr/local/src/lamp/php-4.2.1/ext/odbc'
/bin/sh /usr/local/src/lamp/php-4.2.1/libtool --silent --mode=compile gcc  -I. -I/usr/local/src/lamp/php-4.2.1/ext/odbc -I/usr/local/src/lamp/php-4.2.1/main -I/usr/local/src/lamp/php-4.2.1 -I/usr/local/apache/1.3.24/include -I/usr/local/src/lamp/php-4.2.1/Zend -I/usr/include/libxml2 -I/usr/local/include -I/usr/local/mysql//include -I/home/db2inst1/sqllib//include -I/usr/local/src/lamp/php-4.2.1/ext/xml/expat  -DLINUX=22 -DMOD_SSL=208108 -DUSE_HSREGEX -DEAPI -I/usr/local/src/lamp/php-4.2.1/TSRM -g -O2 -prefer-pic  -c php_odbc.c
In file included from /home/db2inst1/sqllib/include/sqlcli1.h:42,
                 from php_odbc.h:178,
                 from php_odbc.c:37:
/home/db2inst1/sqllib/include/sqlcli.h:718: warning: `ODBCVER' redefined
php_odbc.h:27: warning: this is the location of the previous definition
php_odbc.c: In function `safe_odbc_disconnect':
php_odbc.c:200: warning: passing arg 1 of `SQLDisconnect' makes integer from pointer without a cast
php_odbc.c:203: warning: passing arg 1 of `SQLTransact' makes integer from pointer without a cast
php_odbc.c:203: warning: passing arg 2 of `SQLTransact' makes integer from pointer without a cast
php_odbc.c:204: warning: passing arg 1 of `SQLDisconnect' makes integer from pointer without a cast
php_odbc.c: In function `_close_odbc_conn':
php_odbc.c:215: warning: passing arg 1 of `safe_odbc_disconnect' makes pointer from integer without a cast
php_odbc.c: In function `_close_odbc_pconn':
php_odbc.c:227: warning: passing arg 1 of `safe_odbc_disconnect' makes pointer from integer without a cast
php_odbc.c: In function `odbc_do_connect':
php_odbc.c:2154: warning: passing arg 1 of `safe_odbc_disconnect' makes pointer from integer without a cast
/bin/sh /usr/local/src/lamp/php-4.2.1/libtool --silent --mode=link gcc  -I. -I/usr/local/src/lamp/php-4.2.1/ext/odbc -I/usr/local/src/lamp/php-4.2.1/main -I/usr/local/src/lamp/php-4.2.1 -I/usr/local/apache/1.3.24/include -I/usr/local/src/lamp/php-4.2.1/Zend -I/usr/include/libxml2 -I/usr/local/include -I/usr/local/mysql//include -I/home/db2inst1/sqllib//include -I/usr/local/src/lamp/php-4.2.1/ext/xml/expat  -DLINUX=22 -DMOD_SSL=208108 -DUSE_HSREGEX -DEAPI -I/usr/local/src/lamp/php-4.2.1/TSRM -g -O2 -prefer-pic   -o libodbc.la  php_odbc.lo
make[3]: Leaving directory `/usr/local/src/lamp/php-4.2.1/ext/odbc'
make[2]: Leaving directory `/usr/local/src/lamp/php-4.2.1/ext/odbc'

-> no errors

Starting Apache 1.3.24:

Syntax error on line 240 of /usr/local/apache/1.3.24/conf/httpd.conf:
Cannot load /usr/local/apache/current/libexec/libphp4.so into server: /usr/local/apache/current/libexec/libphp4.so: undefined symbol: SQLParamData
./apachectl startssl: httpd could not be started

Without DB2 support, everything works fine!

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-22 15:16 UTC] kalowsky@php.net
Looks like your path to the ODBC includes and libraries is not being found.  
 [2002-05-26 17:22 UTC] thorsten at webmedia-concepts dot de
After three days of testing, the problem still exists. The path to the includes and libaries are okay, I used the same configuration on SuSE Linux 7.1, there were no errors during the compiling of PHP...
 [2002-05-27 02:23 UTC] thorsten at webmedia-concepts dot de
Okay, a new config:

./configure --with-apxs=/usr/local/apache/current/bin/apxs --with-mysql=/usr/local/mysql/ --with-ibm-db2=/home/db2inst1/sqllib --with-gd --with-dom --with-db --with-unixODBC=/usr/local/include/ --with-openssl-include=/usr/local/openssl --with-zlib-dir=/usr/include/  --with-jpeg-dir=/usr/local/lib/ --with-png-dir=/usr/local/lib/ --with-tiff-dir=/usr/local/lib/ --with-ttf-dir=/usr/local/lib/ --with-java=/usr/lib/java/ --with-mcrypt --enable-ftp --enable-calendar --enable-versioning --enable-track-vars=yes --enable-sysvshm=yes --enable-sysvshm=yes --with-config-file-path=/etc --enable-magic-quotes --enable-trans-sid

but the same errors during compiling:

Making all in odbc
make[2]: Entering directory `/usr/local/src/lamp/php-4.2.1/ext/odbc'
make[3]: Entering directory `/usr/local/src/lamp/php-4.2.1/ext/odbc'
/bin/sh /usr/local/src/lamp/php-4.2.1/libtool --silent --mode=compile gcc  -I. -I/usr/local/src/lamp/php-4.2.1/ext/odbc -I/usr/local/src/lamp/php-4.2.1/main -I/usr/local/src/lamp/php-4.2.1 -I/usr/local/apache/1.3.24/include -I/usr/local/src/lamp/php-4.2.1/Zend -I/usr/include/libxml2 -I/usr/local/include -I/usr/local/mysql//include -I/home/db2inst1/sqllib/include -I/usr/local/src/lamp/php-4.2.1/ext/xml/expat  -DLINUX=22 -DMOD_SSL=208108 -DUSE_HSREGEX -DEAPI -I/usr/local/src/lamp/php-4.2.1/TSRM -g -O2 -prefer-pic  -c php_odbc.c
In file included from /home/db2inst1/sqllib/include/sqlcli1.h:42,
                 from php_odbc.h:178,
                 from php_odbc.c:37:
/home/db2inst1/sqllib/include/sqlcli.h:718: warning: `ODBCVER' redefined
php_odbc.h:27: warning: this is the location of the previous definition
php_odbc.c: In function `safe_odbc_disconnect':
php_odbc.c:200: warning: passing arg 1 of `SQLDisconnect' makes integer from pointer without a cast
php_odbc.c:203: warning: passing arg 1 of `SQLTransact' makes integer from pointer without a cast
php_odbc.c:203: warning: passing arg 2 of `SQLTransact' makes integer from pointer without a cast
php_odbc.c:204: warning: passing arg 1 of `SQLDisconnect' makes integer from pointer without a cast
php_odbc.c: In function `_close_odbc_conn':
php_odbc.c:215: warning: passing arg 1 of `safe_odbc_disconnect' makes pointer from integer without a cast
php_odbc.c: In function `_close_odbc_pconn':
php_odbc.c:227: warning: passing arg 1 of `safe_odbc_disconnect' makes pointer from integer without a cast
php_odbc.c: In function `odbc_do_connect':
php_odbc.c:2154: warning: passing arg 1 of `safe_odbc_disconnect' makes pointer from integer without a cast
/bin/sh /usr/local/src/lamp/php-4.2.1/libtool --silent --mode=link gcc  -I. -I/usr/local/src/lamp/php-4.2.1/ext/odbc -I/usr/local/src/lamp/php-4.2.1/main -I/usr/local/src/lamp/php-4.2.1 -I/usr/local/apache/1.3.24/include -I/usr/local/src/lamp/php-4.2.1/Zend -I/usr/include/libxml2 -I/usr/local/include -I/usr/local/mysql//include -I/home/db2inst1/sqllib/include -I/usr/local/src/lamp/php-4.2.1/ext/xml/expat  -DLINUX=22 -DMOD_SSL=208108 -DUSE_HSREGEX -DEAPI -I/usr/local/src/lamp/php-4.2.1/TSRM -g -O2 -prefer-pic   -o libodbc.la  php_odbc.lo
make[3]: Leaving directory `/usr/local/src/lamp/php-4.2.1/ext/odbc'
make[2]: Leaving directory `/usr/local/src/lamp/php-4.2.1/ext/odbc'
 [2002-06-23 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2002-06-24 04:24 UTC] sniper@php.net
This should be fixed in this snapshot:

http://snaps.php.net/php4-latest.tar.gz

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 11:01:34 2025 UTC