php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57917 PHP Startup: Unable to load dynamic library ibm_db2.so
Submitted: 2007-11-19 01:40 UTC Modified: 2007-11-20 10:52 UTC
From: ericlussier75 at gmail dot com Assigned:
Status: Closed Package: ibm_db2 (PECL)
PHP Version: 5.2.5 OS: SLES 9
Private report: No CVE-ID: None
 [2007-11-19 01:40 UTC] ericlussier75 at gmail dot com
Description:
------------
Hi,

I have performance problems with this SLES 9 Apache2 distribution. I decided to compile from the latest sources. By the way, the Apache2 and PHP softwares from the Linux distribution are still installed and working. I'm running both http servers at the same time, but listening on different ports.

Here is a summary of the softwares i'm compiling:

httpd-2.0.61 (Latest) installed successfully
openssl-0.9.8g (Latest) installed successfully
php-5.2.5 (Latest) installed successfully
ibm_db2-1.6.3.tgz (Latest)

I tried to compile ibm_db2 module statically with php but it did not work. So i compiled it separatly.

The module will not load at php startup.

I think it's because the configure command is trying to link to libraries of the SLES 9 distribution instead of my compiled softwares located under /opt/apache2/apps/*.

Can someone help me on this?

Thanks.


Reproduce code:
---------------
IBM_DB2 COMPILATION
stha21319:/opt/apache2/source/php-5.2.5/ext/ibm_db2-1.6.3 # /opt/apache2/apps/php/bin/phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
stha21319:/opt/apache2/source/php-5.2.5/ext/ibm_db2-1.6.3 # CC="gcc -B/opt/apache2/source/php-5.2.5/ext/ibm_db2-1.6.3 \
-B/opt/apache2/apps/php/include/php \
-B/opt/apache2/apps/php/include/php/main \
-B/opt/apache2/apps/php/include/php/include \
-B/opt/apache2/apps/php/include/php/Zend \
-B/opt/apache2/apps/php/include/php/regex \
-B/opt/apache2/apps/php/include/php/ext \
-B/opt/apache2/apps/php/include/php/TSRM" \
./configure \
--prefix=/opt/apache2/apps/php \
--with-libdir==/opt/apache2/apps/php/lib/php \
--with-IBM_DB2=/opt/IBM/db2/V8.1
checking for egrep... grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for gcc... gcc -B/opt/apache2/source/php-5.2.5/ext/ibm_db2-1.6.3 -B/opt/apache2/apps/php/include/php -B/opt/apache2/apps/php/include/php/main -B/opt/apache2/apps/php/include/php/include -B/opt/apache2/apps/php/include/php/Zend -B/opt/apache2/apps/php/include/php/regex -B/opt/apache2/apps/php/include/php/ext -B/opt/apache2/apps/php/include/php/TSRM
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc -B/opt/apache2/source/php-5.2.5/ext/ibm_db2-1.6.3 -B/opt/apache2/apps/php/include/php -B/opt/apache2/apps/php/include/php/main -B/opt/apache2/apps/php/include/php/include -B/opt/apache2/apps/php/include/php/Zend -B/opt/apache2/apps/php/include/php/regex -B/opt/apache2/apps/php/include/php/ext -B/opt/apache2/apps/php/include/php/TSRM accepts -g... yes
checking for gcc -B/opt/apache2/source/php-5.2.5/ext/ibm_db2-1.6.3 -B/opt/apache2/apps/php/include/php -B/opt/apache2/apps/php/include/php/main -B/opt/apache2/apps/php/include/php/include -B/opt/apache2/apps/php/include/php/Zend -B/opt/apache2/apps/php/include/php/regex -B/opt/apache2/apps/php/include/php/ext -B/opt/apache2/apps/php/include/php/TSRM option to accept ANSI C... none needed
checking whether gcc -B/opt/apache2/source/php-5.2.5/ext/ibm_db2-1.6.3 -B/opt/apache2/apps/php/include/php -B/opt/apache2/apps/php/include/php/main -B/opt/apache2/apps/php/include/php/include -B/opt/apache2/apps/php/include/php/Zend -B/opt/apache2/apps/php/include/php/regex -B/opt/apache2/apps/php/include/php/ext -B/opt/apache2/apps/php/include/php/TSRM and cc understand -c and -o together... yes
checking for system library directory... =/opt/apache2/apps/php/lib/php
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM
checking for PHP extension directory... /usr/lib/php/extensions
checking for PHP installed headers prefix... Usage: /usr/bin/php-config [--prefix|--includes|--ldflags|--libs|--extension-dir|--version]
checking for re2c... no
configure: WARNING: You will need re2c 0.12.0 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for IBM_DB2 support... yes, shared
checking Looking for DB2 CLI libraries... checking      in /opt/IBM/db2/V8.1/lib64... 
checking      in /opt/IBM/db2/V8.1/lib32... 
checking      in /opt/IBM/db2/V8.1/lib... found
checking for DB2 CLI include files in default path... checking in /opt/IBM/db2/V8.1... found in /opt/IBM/db2/V8.1
checking for ld used by gcc -B/opt/apache2/source/php-5.2.5/ext/ibm_db2-1.6.3 -B/opt/apache2/apps/php/include/php -B/opt/apache2/apps/php/include/php/main -B/opt/apache2/apps/php/include/php/include -B/opt/apache2/apps/php/include/php/Zend -B/opt/apache2/apps/php/include/php/regex -B/opt/apache2/apps/php/include/php/ext -B/opt/apache2/apps/php/include/php/TSRM... /usr/i586-suse-linux/bin/ld
checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes
checking for /usr/i586-suse-linux/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -B/opt/apache2/source/php-5.2.5/ext/ibm_db2-1.6.3 -B/opt/apache2/apps/php/include/php -B/opt/apache2/apps/php/include/php/main -B/opt/apache2/apps/php/include/php/include -B/opt/apache2/apps/php/include/php/Zend -B/opt/apache2/apps/php/include/php/regex -B/opt/apache2/apps/php/include/php/ext -B/opt/apache2/apps/php/include/php/TSRM -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc -B/opt/apache2/source/php-5.2.5/ext/ibm_db2-1.6.3 -B/opt/apache2/apps/php/include/php -B/opt/apache2/apps/php/include/php/main -B/opt/apache2/apps/php/include/php/include -B/opt/apache2/apps/php/include/php/Zend -B/opt/apache2/apps/php/include/php/regex -B/opt/apache2/apps/php/include/php/ext -B/opt/apache2/apps/php/include/php/TSRM object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc -B/opt/apache2/source/php-5.2.5/ext/ibm_db2-1.6.3 -B/opt/apache2/apps/php/include/php -B/opt/apache2/apps/php/include/php/main -B/opt/apache2/apps/php/include/php/include -B/opt/apache2/apps/php/include/php/Zend -B/opt/apache2/apps/php/include/php/regex -B/opt/apache2/apps/php/include/php/ext -B/opt/apache2/apps/php/include/php/TSRM static flag  works... yes
checking if gcc -B/opt/apache2/source/php-5.2.5/ext/ibm_db2-1.6.3 -B/opt/apache2/apps/php/include/php -B/opt/apache2/apps/php/include/php/main -B/opt/apache2/apps/php/include/php/include -B/opt/apache2/apps/php/include/php/Zend -B/opt/apache2/apps/php/include/php/regex -B/opt/apache2/apps/php/include/php/ext -B/opt/apache2/apps/php/include/php/TSRM supports -fno-rtti -fno-exceptions... no
checking for gcc -B/opt/apache2/source/php-5.2.5/ext/ibm_db2-1.6.3 -B/opt/apache2/apps/php/include/php -B/opt/apache2/apps/php/include/php/main -B/opt/apache2/apps/php/include/php/include -B/opt/apache2/apps/php/include/php/Zend -B/opt/apache2/apps/php/include/php/regex -B/opt/apache2/apps/php/include/php/ext -B/opt/apache2/apps/php/include/php/TSRM option to produce PIC... -fPIC
checking if gcc -B/opt/apache2/source/php-5.2.5/ext/ibm_db2-1.6.3 -B/opt/apache2/apps/php/include/php -B/opt/apache2/apps/php/include/php/main -B/opt/apache2/apps/php/include/php/include -B/opt/apache2/apps/php/include/php/Zend -B/opt/apache2/apps/php/include/php/regex -B/opt/apache2/apps/php/include/php/ext -B/opt/apache2/apps/php/include/php/TSRM PIC flag -fPIC works... yes
checking if gcc -B/opt/apache2/source/php-5.2.5/ext/ibm_db2-1.6.3 -B/opt/apache2/apps/php/include/php -B/opt/apache2/apps/php/include/php/main -B/opt/apache2/apps/php/include/php/include -B/opt/apache2/apps/php/include/php/Zend -B/opt/apache2/apps/php/include/php/regex -B/opt/apache2/apps/php/include/php/ext -B/opt/apache2/apps/php/include/php/TSRM supports -c -o file.o... yes
checking whether the gcc -B/opt/apache2/source/php-5.2.5/ext/ibm_db2-1.6.3 -B/opt/apache2/apps/php/include/php -B/opt/apache2/apps/php/include/php/main -B/opt/apache2/apps/php/include/php/include -B/opt/apache2/apps/php/include/php/Zend -B/opt/apache2/apps/php/include/php/regex -B/opt/apache2/apps/php/include/php/ext -B/opt/apache2/apps/php/include/php/TSRM linker (/usr/i586-suse-linux/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
 
creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged
stha21319:/opt/apache2/source/php-5.2.5/ext/ibm_db2-1.6.3 # make

...

stha21319:/opt/apache2/source/php-5.2.5/ext/ibm_db2-1.6.3 # cp modules/ibm_db2.so /opt/apache2/apps/php/lib/php/extensions
stha21319:/opt/apache2/apps/php/bin # /opt/apache2/apps/php/bin/php -m
PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/apache2/apps/php/lib/php/extensions/ibm_db2.so' - /opt/apache2/apps/php/lib/php/extensions/ibm_db2.so: undefined symbol: OnUpdateInt in Unknown on line 0
[PHP Modules]
ctype
date
dom
filter
hash
iconv
json
libxml
openssl
pcre
PDO
pdo_sqlite
posix
Reflection
session
SimpleXML
SPL
SQLite
standard
tokenizer
xml
xmlreader
xmlwriter
 
[Zend Modules]
 
stha21319:/opt/apache2/apps/php/bin #


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-11-20 08:30 UTC] ericlussier75 at gmail dot com
Edit
 [2007-11-20 08:32 UTC] ericlussier75 at gmail dot com
Modified PHP version in the bug header
 [2007-11-20 10:18 UTC] ericlussier75 at gmail dot com
Problem solved:

I reinstalled php with version 5.2.1, but i don't beleive that's what solved it. Before running the configure script, i prepended a few paths to the PATH variable to indicate the softwares i wanted to use. And i modified a few things in the configure call. Here's the Code:


stha21319:/opt/apache2/source/php-5.2.1/ext/ibm_db2-1.6.3 # PATH=/opt/apache2/apps/bison/bin:/opt/apache2/apps/byacc/bin:/opt/apache2/apps/flex/bin:/opt/apache2/apps/httpd2/bin:/opt/apache2/apps/httpd2/sbin:/opt/apache2/apps/libxml2/bin:/opt/apache2/apps/openssl/bin:/opt/apache2/apps/re2c/bin:/opt/apache2/apps/php/bin:$PATH
stha21319:/opt/apache2/source/php-5.2.1/ext/ibm_db2-1.6.3 # export PATH
stha21319:/opt/apache2/source/php-5.2.1/ext/ibm_db2-1.6.3 # CC="gcc \
> -DPHP_ATOM_INC \
> -B/opt/apache2/source/php-5.2.1/sapi/cli \
> -B/opt/apache2/source/php-5.2.1/include \
> -B/opt/apache2/source/php-5.2.1/main \
> -B/opt/apache2/source/php-5.2.1 \
> -B/opt/apache2/apps/libxml2/include/libxml2 \
> -B/opt/apache2/apps/openssl/include \
> -B/opt/apache2/source/php-5.2.1/ext/date/lib \
> -B/opt/apache2/source/php-5.2.1/TSRM \
> -B/opt/apache2/source/php-5.2.1/Zend \
> -B/opt/apache2/apps/php/include/php \
> -B/opt/apache2/apps/php \
> -B/opt/apache2/apps/php/bin \
> -B/opt/apache2/source/php-5.2.1/ext/ibm_db2-1.6.3 \
> -B/opt/apache2/apps/php/include/php \
> -B/opt/apache2/apps/php/include/php/main \
> -B/opt/apache2/apps/php/include/php/include \
> -B/opt/apache2/apps/php/include/php/Zend \
> -B/opt/apache2/apps/php/include/php/regex \
> -B/opt/apache2/apps/php/include/php/ext \
> -B/opt/apache2/apps/php/include/php/TSRM \
> -I/usr/include" \
> ./configure \
> --prefix=/opt/apache2/apps/php \
> --with-libdir=/opt/apache2/apps/php/lib \
> --with-IBM_DB2=/opt/IBM/db2/V8.1
checking for egrep... grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for gcc... gcc -DPHP_ATOM_INC -B/opt/apache2/source/php-5.2.1/sapi/cli -B/opt/apache2/source/php-5.2.1/include -B/opt/apache2/source/php-5.2.1/main -B/opt/apache2/source/php-5.2.1 -B/opt/apache2/apps/libxml2/include/libxml2 -B/opt/apache2/apps/openssl/include -B/opt/apache2/source/php-5.2.1/ext/date/lib -B/opt/apache2/source/php-5.2.1/TSRM -B/opt/apache2/source/php-5.2.1/Zend -B/opt/apache2/apps/php/include/php -B/opt/apache2/apps/php -B/opt/apache2/apps/php/bin -B/opt/apache2/source/php-5.2.1/ext/ibm_db2-1.6.3 -B/opt/apache2/apps/php/include/php -B/opt/apache2/apps/php/include/php/main -B/opt/apache2/apps/php/include/php/include -B/opt/apache2/apps/php/include/php/Zend -B/opt/apache2/apps/php/include/php/regex -B/opt/apache2/apps/php/include/php/ext -B/opt/apache2/apps/php/include/php/TSRM -I/usr/include
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc -DPHP_ATOM_INC -B/opt/apache2/source/php-5.2.1/sapi/cli -B/opt/apache2/source/php-5.2.1/include -B/opt/apache2/source/php-5.2.1/main -B/opt/apache2/source/php-5.2.1 -B/opt/apache2/apps/libxml2/include/libxml2 -B/opt/apache2/apps/openssl/include -B/opt/apache2/source/php-5.2.1/ext/date/lib -B/opt/apache2/source/php-5.2.1/TSRM -B/opt/apache2/source/php-5.2.1/Zend -B/opt/apache2/apps/php/include/php -B/opt/apache2/apps/php -B/opt/apache2/apps/php/bin -B/opt/apache2/source/php-5.2.1/ext/ibm_db2-1.6.3 -B/opt/apache2/apps/php/include/php -B/opt/apache2/apps/php/include/php/main -B/opt/apache2/apps/php/include/php/include -B/opt/apache2/apps/php/include/php/Zend -B/opt/apache2/apps/php/include/php/regex -B/opt/apache2/apps/php/include/php/ext -B/opt/apache2/apps/php/include/php/TSRM -I/usr/include accepts -g... yes
checking for gcc -DPHP_ATOM_INC -B/opt/apache2/source/php-5.2.1/sapi/cli -B/opt/apache2/source/php-5.2.1/include -B/opt/apache2/source/php-5.2.1/main -B/opt/apache2/source/php-5.2.1 -B/opt/apache2/apps/libxml2/include/libxml2 -B/opt/apache2/apps/openssl/include -B/opt/apache2/source/php-5.2.1/ext/date/lib -B/opt/apache2/source/php-5.2.1/TSRM -B/opt/apache2/source/php-5.2.1/Zend -B/opt/apache2/apps/php/include/php -B/opt/apache2/apps/php -B/opt/apache2/apps/php/bin -B/opt/apache2/source/php-5.2.1/ext/ibm_db2-1.6.3 -B/opt/apache2/apps/php/include/php -B/opt/apache2/apps/php/include/php/main -B/opt/apache2/apps/php/include/php/include -B/opt/apache2/apps/php/include/php/Zend -B/opt/apache2/apps/php/include/php/regex -B/opt/apache2/apps/php/include/php/ext -B/opt/apache2/apps/php/include/php/TSRM -I/usr/include option to accept ANSI C... none needed
checking whether gcc -DPHP_ATOM_INC -B/opt/apache2/source/php-5.2.1/sapi/cli -B/opt/apache2/source/php-5.2.1/include -B/opt/apache2/source/php-5.2.1/main -B/opt/apache2/source/php-5.2.1 -B/opt/apache2/apps/libxml2/include/libxml2 -B/opt/apache2/apps/openssl/include -B/opt/apache2/source/php-5.2.1/ext/date/lib -B/opt/apache2/source/php-5.2.1/TSRM -B/opt/apache2/source/php-5.2.1/Zend -B/opt/apache2/apps/php/include/php -B/opt/apache2/apps/php -B/opt/apache2/apps/php/bin -B/opt/apache2/source/php-5.2.1/ext/ibm_db2-1.6.3 -B/opt/apache2/apps/php/include/php -B/opt/apache2/apps/php/include/php/main -B/opt/apache2/apps/php/include/php/include -B/opt/apache2/apps/php/include/php/Zend -B/opt/apache2/apps/php/include/php/regex -B/opt/apache2/apps/php/include/php/ext -B/opt/apache2/apps/php/include/php/TSRM -I/usr/include and cc understand -c and -o together... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for PHP prefix... /opt/apache2/apps/php
checking for PHP includes... -I/opt/apache2/apps/php/include/php -I/opt/apache2/apps/php/include/php/main -I/opt/apache2/apps/php/include/php/TSRM -I/opt/apache2/apps/php/include/php/Zend -I/opt/apache2/apps/php/include/php/ext -I/opt/apache2/apps/php/include/php/ext/date/lib
checking for PHP extension directory... /opt/apache2/apps/php/lib/php/extensions/no-debug-non-zts-20060613
checking for PHP installed headers prefix... /opt/apache2/apps/php/include/php
checking for re2c... re2c
checking for re2c version... 0.12.3 (ok)
checking for gawk... gawk
checking for IBM_DB2 support... yes, shared
checking Looking for DB2 CLI libraries... checking      in /opt/IBM/db2/V8.1/lib64... 
checking      in /opt/IBM/db2/V8.1/lib32... 
checking      in /opt/IBM/db2/V8.1/lib... found
checking for DB2 CLI include files in default path... checking in /opt/IBM/db2/V8.1... found in /opt/IBM/db2/V8.1
checking for ld used by gcc -DPHP_ATOM_INC -B/opt/apache2/source/php-5.2.1/sapi/cli -B/opt/apache2/source/php-5.2.1/include -B/opt/apache2/source/php-5.2.1/main -B/opt/apache2/source/php-5.2.1 -B/opt/apache2/apps/libxml2/include/libxml2 -B/opt/apache2/apps/openssl/include -B/opt/apache2/source/php-5.2.1/ext/date/lib -B/opt/apache2/source/php-5.2.1/TSRM -B/opt/apache2/source/php-5.2.1/Zend -B/opt/apache2/apps/php/include/php -B/opt/apache2/apps/php -B/opt/apache2/apps/php/bin -B/opt/apache2/source/php-5.2.1/ext/ibm_db2-1.6.3 -B/opt/apache2/apps/php/include/php -B/opt/apache2/apps/php/include/php/main -B/opt/apache2/apps/php/include/php/include -B/opt/apache2/apps/php/include/php/Zend -B/opt/apache2/apps/php/include/php/regex -B/opt/apache2/apps/php/include/php/ext -B/opt/apache2/apps/php/include/php/TSRM -I/usr/include... /usr/i586-suse-linux/bin/ld
checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes
checking for /usr/i586-suse-linux/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -DPHP_ATOM_INC -B/opt/apache2/source/php-5.2.1/sapi/cli -B/opt/apache2/source/php-5.2.1/include -B/opt/apache2/source/php-5.2.1/main -B/opt/apache2/source/php-5.2.1 -B/opt/apache2/apps/libxml2/include/libxml2 -B/opt/apache2/apps/openssl/include -B/opt/apache2/source/php-5.2.1/ext/date/lib -B/opt/apache2/source/php-5.2.1/TSRM -B/opt/apache2/source/php-5.2.1/Zend -B/opt/apache2/apps/php/include/php -B/opt/apache2/apps/php -B/opt/apache2/apps/php/bin -B/opt/apache2/source/php-5.2.1/ext/ibm_db2-1.6.3 -B/opt/apache2/apps/php/include/php -B/opt/apache2/apps/php/include/php/main -B/opt/apache2/apps/php/include/php/include -B/opt/apache2/apps/php/include/php/Zend -B/opt/apache2/apps/php/include/php/regex -B/opt/apache2/apps/php/include/php/ext -B/opt/apache2/apps/php/include/php/TSRM -I/usr/include -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc -DPHP_ATOM_INC -B/opt/apache2/source/php-5.2.1/sapi/cli -B/opt/apache2/source/php-5.2.1/include -B/opt/apache2/source/php-5.2.1/main -B/opt/apache2/source/php-5.2.1 -B/opt/apache2/apps/libxml2/include/libxml2 -B/opt/apache2/apps/openssl/include -B/opt/apache2/source/php-5.2.1/ext/date/lib -B/opt/apache2/source/php-5.2.1/TSRM -B/opt/apache2/source/php-5.2.1/Zend -B/opt/apache2/apps/php/include/php -B/opt/apache2/apps/php -B/opt/apache2/apps/php/bin -B/opt/apache2/source/php-5.2.1/ext/ibm_db2-1.6.3 -B/opt/apache2/apps/php/include/php -B/opt/apache2/apps/php/include/php/main -B/opt/apache2/apps/php/include/php/include -B/opt/apache2/apps/php/include/php/Zend -B/opt/apache2/apps/php/include/php/regex -B/opt/apache2/apps/php/include/php/ext -B/opt/apache2/apps/php/include/php/TSRM -I/usr/include object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc -DPHP_ATOM_INC -B/opt/apache2/source/php-5.2.1/sapi/cli -B/opt/apache2/source/php-5.2.1/include -B/opt/apache2/source/php-5.2.1/main -B/opt/apache2/source/php-5.2.1 -B/opt/apache2/apps/libxml2/include/libxml2 -B/opt/apache2/apps/openssl/include -B/opt/apache2/source/php-5.2.1/ext/date/lib -B/opt/apache2/source/php-5.2.1/TSRM -B/opt/apache2/source/php-5.2.1/Zend -B/opt/apache2/apps/php/include/php -B/opt/apache2/apps/php -B/opt/apache2/apps/php/bin -B/opt/apache2/source/php-5.2.1/ext/ibm_db2-1.6.3 -B/opt/apache2/apps/php/include/php -B/opt/apache2/apps/php/include/php/main -B/opt/apache2/apps/php/include/php/include -B/opt/apache2/apps/php/include/php/Zend -B/opt/apache2/apps/php/include/php/regex -B/opt/apache2/apps/php/include/php/ext -B/opt/apache2/apps/php/include/php/TSRM -I/usr/include static flag  works... yes
checking if gcc -DPHP_ATOM_INC -B/opt/apache2/source/php-5.2.1/sapi/cli -B/opt/apache2/source/php-5.2.1/include -B/opt/apache2/source/php-5.2.1/main -B/opt/apache2/source/php-5.2.1 -B/opt/apache2/apps/libxml2/include/libxml2 -B/opt/apache2/apps/openssl/include -B/opt/apache2/source/php-5.2.1/ext/date/lib -B/opt/apache2/source/php-5.2.1/TSRM -B/opt/apache2/source/php-5.2.1/Zend -B/opt/apache2/apps/php/include/php -B/opt/apache2/apps/php -B/opt/apache2/apps/php/bin -B/opt/apache2/source/php-5.2.1/ext/ibm_db2-1.6.3 -B/opt/apache2/apps/php/include/php -B/opt/apache2/apps/php/include/php/main -B/opt/apache2/apps/php/include/php/include -B/opt/apache2/apps/php/include/php/Zend -B/opt/apache2/apps/php/include/php/regex -B/opt/apache2/apps/php/include/php/ext -B/opt/apache2/apps/php/include/php/TSRM -I/usr/include supports -fno-rtti -fno-exceptions... no
checking for gcc -DPHP_ATOM_INC -B/opt/apache2/source/php-5.2.1/sapi/cli -B/opt/apache2/source/php-5.2.1/include -B/opt/apache2/source/php-5.2.1/main -B/opt/apache2/source/php-5.2.1 -B/opt/apache2/apps/libxml2/include/libxml2 -B/opt/apache2/apps/openssl/include -B/opt/apache2/source/php-5.2.1/ext/date/lib -B/opt/apache2/source/php-5.2.1/TSRM -B/opt/apache2/source/php-5.2.1/Zend -B/opt/apache2/apps/php/include/php -B/opt/apache2/apps/php -B/opt/apache2/apps/php/bin -B/opt/apache2/source/php-5.2.1/ext/ibm_db2-1.6.3 -B/opt/apache2/apps/php/include/php -B/opt/apache2/apps/php/include/php/main -B/opt/apache2/apps/php/include/php/include -B/opt/apache2/apps/php/include/php/Zend -B/opt/apache2/apps/php/include/php/regex -B/opt/apache2/apps/php/include/php/ext -B/opt/apache2/apps/php/include/php/TSRM -I/usr/include option to produce PIC... -fPIC
checking if gcc -DPHP_ATOM_INC -B/opt/apache2/source/php-5.2.1/sapi/cli -B/opt/apache2/source/php-5.2.1/include -B/opt/apache2/source/php-5.2.1/main -B/opt/apache2/source/php-5.2.1 -B/opt/apache2/apps/libxml2/include/libxml2 -B/opt/apache2/apps/openssl/include -B/opt/apache2/source/php-5.2.1/ext/date/lib -B/opt/apache2/source/php-5.2.1/TSRM -B/opt/apache2/source/php-5.2.1/Zend -B/opt/apache2/apps/php/include/php -B/opt/apache2/apps/php -B/opt/apache2/apps/php/bin -B/opt/apache2/source/php-5.2.1/ext/ibm_db2-1.6.3 -B/opt/apache2/apps/php/include/php -B/opt/apache2/apps/php/include/php/main -B/opt/apache2/apps/php/include/php/include -B/opt/apache2/apps/php/include/php/Zend -B/opt/apache2/apps/php/include/php/regex -B/opt/apache2/apps/php/include/php/ext -B/opt/apache2/apps/php/include/php/TSRM -I/usr/include PIC flag -fPIC works... yes
checking if gcc -DPHP_ATOM_INC -B/opt/apache2/source/php-5.2.1/sapi/cli -B/opt/apache2/source/php-5.2.1/include -B/opt/apache2/source/php-5.2.1/main -B/opt/apache2/source/php-5.2.1 -B/opt/apache2/apps/libxml2/include/libxml2 -B/opt/apache2/apps/openssl/include -B/opt/apache2/source/php-5.2.1/ext/date/lib -B/opt/apache2/source/php-5.2.1/TSRM -B/opt/apache2/source/php-5.2.1/Zend -B/opt/apache2/apps/php/include/php -B/opt/apache2/apps/php -B/opt/apache2/apps/php/bin -B/opt/apache2/source/php-5.2.1/ext/ibm_db2-1.6.3 -B/opt/apache2/apps/php/include/php -B/opt/apache2/apps/php/include/php/main -B/opt/apache2/apps/php/include/php/include -B/opt/apache2/apps/php/include/php/Zend -B/opt/apache2/apps/php/include/php/regex -B/opt/apache2/apps/php/include/php/ext -B/opt/apache2/apps/php/include/php/TSRM -I/usr/include supports -c -o file.o... yes
checking whether the gcc -DPHP_ATOM_INC -B/opt/apache2/source/php-5.2.1/sapi/cli -B/opt/apache2/source/php-5.2.1/include -B/opt/apache2/source/php-5.2.1/main -B/opt/apache2/source/php-5.2.1 -B/opt/apache2/apps/libxml2/include/libxml2 -B/opt/apache2/apps/openssl/include -B/opt/apache2/source/php-5.2.1/ext/date/lib -B/opt/apache2/source/php-5.2.1/TSRM -B/opt/apache2/source/php-5.2.1/Zend -B/opt/apache2/apps/php/include/php -B/opt/apache2/apps/php -B/opt/apache2/apps/php/bin -B/opt/apache2/source/php-5.2.1/ext/ibm_db2-1.6.3 -B/opt/apache2/apps/php/include/php -B/opt/apache2/apps/php/include/php/main -B/opt/apache2/apps/php/include/php/include -B/opt/apache2/apps/php/include/php/Zend -B/opt/apache2/apps/php/include/php/regex -B/opt/apache2/apps/php/include/php/ext -B/opt/apache2/apps/php/include/php/TSRM -I/usr/include linker (/usr/i586-suse-linux/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
 
creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/i586-suse-linux/bin/ld
checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/i586-suse-linux/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/i586-suse-linux/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
configure: creating ./config.status
config.status: creating config.h
stha21319:/opt/apache2/source/php-5.2.1/ext/ibm_db2-1.6.3 # make

...
 
stha21319:/opt/apache2/source/php-5.2.1/ext/ibm_db2-1.6.3 # make install

...

stha21319:/opt/apache2/source/php-5.2.1/ext/ibm_db2-1.6.3 # cd /opt/apache2/apps/php/bin
stha21319:/opt/apache2/apps/php/bin # ./php -m
[PHP Modules]
ctype
date
dom
filter
hash
ibm_db2
iconv
json
libxml
openssl
pcre
PDO
pdo_sqlite
posix
Reflection
session
SimpleXML
SPL
SQLite
standard
tokenizer
xml
xmlreader
xmlwriter
 
[Zend Modules]
 
stha21319:/opt/apache2/apps/php/bin #


I would have to test again with php-5.2.5 to see if it works, but maybe later.

Thanks anyway.

Eric Lussier
ING Canada
 [2007-11-20 10:52 UTC] ericlussier75 at gmail dot com
Hi,

I confirm that it also works fine with php-5.2.5:

stha21319:/opt/apache2/apps/php/bin # ./php -v
PHP 5.2.5 (cli) (built: Nov 20 2007 10:28:00) 
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
stha21319:/opt/apache2/apps/php/bin # ./php -m 
[PHP Modules]
ctype
date
dom
filter
hash
ibm_db2
iconv
json
libxml
openssl
pcre
PDO
pdo_sqlite
posix
Reflection
session
SimpleXML
SPL
SQLite
standard
tokenizer
xml
xmlreader
xmlwriter
 
[Zend Modules]
 
stha21319:/opt/apache2/apps/php/bin #


Eric Lussier
ING Canada
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 11:01:29 2024 UTC