php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #63280 Unable to install ibm db2 extension
Submitted: 2012-10-15 05:58 UTC Modified: 2014-07-08 09:14 UTC
From: ajeenaa dot shanmugan at gmail dot com Assigned: rahulpriyadarshi (profile)
Status: Not a bug Package: ibm_db2 (PECL)
PHP Version: Irrelevant OS: Linux - Redhat
Private report: No CVE-ID: None
 [2012-10-15 05:58 UTC] ajeenaa dot shanmugan at gmail dot com
Description:
------------
[root@linux ~]# find / -name phpize
/opt/lamp/bin/phpize

[root@linux ~]#export PATH=$PATH: /opt/lamp/bin/phpize
[root@linux ~]#cd ibm_db2
               
[root@linux ibm_db2]#phpize

Output :               grep: /opt/lampp/include/php/main/php.h: No such file or directory
                       grep: /opt/lampp/include/php/Zend/zend_modules.h: No such file or directory
                       grep: /opt/lampp/include/php/Zend/zend_extensions.h: No such file or directory
                       Configuring for:
                       PHP Api Version:
                       Zend Module Api No:
                       Zend Extension Api No:

[root@linux ibm_db2]# ./configure --with-IBM_DB2=/opt/ibm/db2/V9.7


Output


checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
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 cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
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/lampp
checking for PHP includes... -I/opt/lampp/include/php -I/opt/lampp/include/php/main -I/opt/lampp/include/php/TSRM -I/opt/lampp/include/php/Zend -I/opt/lampp/include/php/ext -I/opt/lampp/include/php/ext/date/lib
checking for PHP extension directory... /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626
checking for PHP installed headers prefix... /opt/lampp/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 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/V9.7...
checking      in /opt/ibm/db2/V9.7/lib64...
checking      in /opt/ibm/db2/V9.7/lib32... found
checking for DB2 CLI include files in default path... checking in /opt/ibm/db2/V9.7... found in /opt/ibm/db2/V9.7
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/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 recognize dependent libraries... pass_all
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... 98304
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/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

[root@linux ibm_db2]#make

Output

â
/root/ibm_db2/ibm_db2.c:80: error: storage class specified for parameter âerror_msg_nodeâ
/root/ibm_db2/ibm_db2.c:99: error: expected specifier-qualifier-list before âzvalâ
/root/ibm_db2/ibm_db2.c:101: error: storage class specified for parameter âparam_nodeâ
/root/ibm_db2/ibm_db2.c:121: error: storage class specified for parameter âconn_handleâ
/root/ibm_db2/ibm_db2.c:130: error: storage class specified for parameter âdb2_row_data_typeâ
/root/ibm_db2/ibm_db2.c:134: error: expected specifier-qualifier-list before âdb2_row_data_typeâ
/root/ibm_db2/ibm_db2.c:135: error: storage class specified for parameter âdb2_row_typeâ
/root/ibm_db2/ibm_db2.c:150: error: storage class specified for parameter âdb2_result_set_infoâ
/root/ibm_db2/ibm_db2.c:167: error: expected specifier-qualifier-list before âparam_nodeâ
/root/ibm_db2/ibm_db2.c:176: error: storage class specified for parameter âstmt_handleâ
/root/ibm_db2/ibm_db2.c:188: error: expected declaration specifiers before âzend_function_entryâ
/root/ibm_db2/ibm_db2.c:252: error: expected declaration specifiers before â;â token
/root/ibm_db2/ibm_db2.c:257: error: expected declaration specifiers before âzend_module_entryâ
/root/ibm_db2/ibm_db2.c:272: error: expected declaration specifiers before â;â token
/root/ibm_db2/ibm_db2.c:276: error: expected declaration specifiers before âZEND_GET_MODULEâ
/root/ibm_db2/ibm_db2.c:364: error: expected â)â before â*â token
/root/ibm_db2/ibm_db2.c:391: error: expected â)â before â*â token
/root/ibm_db2/ibm_db2.c:399: error: expected â)â before â*â token
/root/ibm_db2/ibm_db2.c:481: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
/root/ibm_db2/ibm_db2.c:518: error: expected â)â before â*â token
/root/ibm_db2/ibm_db2.c:535: error: expected declaration specifiers before âPHP_MINIT_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:640: error: expected declaration specifiers before âPHP_MSHUTDOWN_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:655: error: expected â)â before â*â token
/root/ibm_db2/ibm_db2.c:680: error: expected declaration specifiers before âPHP_RSHUTDOWN_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:690: error: expected declaration specifiers before âPHP_MINFO_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:720: error: expected â)â before â*â token
/root/ibm_db2/ibm_db2.c:729: error: expected â;â, â,â or â)â before âTSRMLS_DCâ
/root/ibm_db2/ibm_db2.c:882: error: expected declaration specifiers or â...â before âzvalâ
/root/ibm_db2/ibm_db2.c:883: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â{â token
/root/ibm_db2/ibm_db2.c:1621: error: expected â)â before â*â token
/root/ibm_db2/ibm_db2.c:1670: error: expected â)â before â*â token
/root/ibm_db2/ibm_db2.c:1750: error: expected â)â before â*â token
/root/ibm_db2/ibm_db2.c:1973: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â{â token
/root/ibm_db2/ibm_db2.c:1981: error: expected â)â before â*â token
/root/ibm_db2/ibm_db2.c:1992: error: expected â)â before â*â token
/root/ibm_db2/ibm_db2.c:2332: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â{â token
/root/ibm_db2/ibm_db2.c:2341: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
/root/ibm_db2/ibm_db2.c:2367: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:2413: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:2429: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:2482: error: expected â)â before â*â token
/root/ibm_db2/ibm_db2.c:2552: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:2668: error: expected â)â before âintâ
/root/ibm_db2/ibm_db2.c:2742: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:2761: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:2829: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:2892: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:2959: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:3020: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:3083: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:3142: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:3205: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:3271: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:3335: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:3403: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:3436: error: expected declaration specifiers or â...â before âstmt_handleâ
/root/ibm_db2/ibm_db2.c:3436: error: expected declaration specifiers or â...â before âzvalâ
/root/ibm_db2/ibm_db2.c:3437: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â{â token
/root/ibm_db2/ibm_db2.c:3465: error: expected â)â before â*â token
/root/ibm_db2/ibm_db2.c:3480: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:3541: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:3568: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:3614: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
/root/ibm_db2/ibm_db2.c:3650: error: expected â)â before â*â token
/root/ibm_db2/ibm_db2.c:3963: error: expected â)â before â*â token
/root/ibm_db2/ibm_db2.c:4072: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:4346: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:4379: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:4412: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:4445: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:4478: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:4550: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:4580: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:4611: error: expected â)â before â*â token
/root/ibm_db2/ibm_db2.c:4641: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:4674: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:4715: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:4748: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:4782: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:4815: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:4891: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:4932: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:4957: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:4990: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:5002: error: expected â)â before â*â token
/root/ibm_db2/ibm_db2.c:5016: error: expected â)â before â*â token
/root/ibm_db2/ibm_db2.c:5060: error: expected â)â before â*â token
/root/ibm_db2/ibm_db2.c:5093: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:5422: error: expected â)â before âintâ
/root/ibm_db2/ibm_db2.c:5824: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:5883: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:5891: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:5903: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:5911: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:5919: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:5965: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:6372: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:6516: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:6567: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:6617: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:6717: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:6781: error: expected â)â before â*â token
/root/ibm_db2/ibm_db2.c:6826: error: expected â)â before â*â token
/root/ibm_db2/ibm_db2.c:6847: error: expected declaration specifiers before âPHP_FUNCTIONâ
/root/ibm_db2/ibm_db2.c:176: error: declaration for parameter âstmt_handleâ but no such parameter
/root/ibm_db2/ibm_db2.c:150: error: declaration for parameter âdb2_result_set_infoâ but no such parameter
/root/ibm_db2/ibm_db2.c:135: error: declaration for parameter âdb2_row_typeâ but no such parameter
/root/ibm_db2/ibm_db2.c:130: error: declaration for parameter âdb2_row_data_typeâ but no such parameter
/root/ibm_db2/ibm_db2.c:121: error: declaration for parameter âconn_handleâ but no such parameter
/root/ibm_db2/ibm_db2.c:101: error: declaration for parameter âparam_nodeâ but no such parameter
/root/ibm_db2/ibm_db2.c:80: error: declaration for parameter âerror_msg_nodeâ but no such parameter
/root/ibm_db2/ibm_db2.c:54: error: declaration for parameter âis_zosâ but no such parameter
/root/ibm_db2/ibm_db2.c:54: error: declaration for parameter âis_iosâ but no such parameter
/root/ibm_db2/ibm_db2.c:53: error: declaration for parameter â_php_db2_instance_nameâ but no such parameter
/root/ibm_db2/ibm_db2.c:51: error: declaration for parameter â_php_db2_clear_stmt_err_cacheâ but no such parameter
/root/ibm_db2/ibm_db2.c:50: error: declaration for parameter â_php_db2_clear_conn_err_cacheâ but no such parameter
/root/ibm_db2/ibm_db2.c:48: error: declaration for parameter â_php_db2_assign_optionsâ but no such parameter
/root/ibm_db2/php_ibm_db2.h:273: error: declaration for parameter â__php_stmt_err_stateâ but no such parameter
/root/ibm_db2/php_ibm_db2.h:272: error: declaration for parameter â__php_stmt_err_msgâ but no such parameter
/root/ibm_db2/php_ibm_db2.h:271: error: declaration for parameter â__php_conn_err_stateâ but no such parameter
/root/ibm_db2/php_ibm_db2.h:270: error: declaration for parameter â__php_conn_err_msgâ but no such parameter
/root/ibm_db2/php_ibm_db2.h:269: error: declaration for parameter âbin_modeâ but no such parameter
/root/ibm_db2/ibm_db2.c:7015: error: expected â{â at end of input
make: *** [ibm_db2.lo] Error 1






Expected result:
----------------
Expected Output

Installing shared extensions:     /usr/local/php5/lib/php/extensions/no-debug-non-zts-20090626/
Installing header files:          /usr/local/php5/include/php/


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-10-22 07:08 UTC] rahulpriyadarshi@php.net
It looks like your system have two php installed, and php installed in "/usr/local/php5/" location doesn't have php-dev packages.
Please issue following command to get install php-dev package "$apt-get install php5-dev" (do not set PATH for "/opt/lamp/bin/phpize").
 [2014-07-08 09:14 UTC] rahulpriyadarshi@php.net
-Status: Open +Status: Not a bug -Assigned To: +Assigned To: rahulpriyadarshi
 [2014-07-08 09:14 UTC] rahulpriyadarshi@php.net
It looks like you are now not facing this issue.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC