|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2010-02-10 16:53 UTC] wloche@php.net
Description: ------------ Hi, I tried to compile your extension upon PHP 5.3.1 and it failed. Thx, Wilfried Loche Reproduce code: --------------- /ehc/fs1/softs/spms/php_robot/bin/phpize sed -i "s/\$MQSERIES_DIR\/lib/\$MQSERIES_DIR\/lib64/g" ./configure ./configure --with-php-config=/ehc/fs1/softs/spms/php_robot/bin/php-config --with-libdir=lib64 make -j 8 Expected result: ---------------- Build complete. Don't forget to run 'make test'. Actual result: -------------- /bin/sh /ehc/fs1/home/spms/deploy/spms/SPMS-MW/pecl/mqseries-0.11.0/libtool --mode=compile cc -I. -I/ehc/fs1/home/spms/deploy/spms/SPMS-MW/pecl/mqseries-0.11.0 -DPHP_ATOM_INC -I/ehc/fs1/home/spms/deploy/spms/SPMS-MW/pecl/mqseries-0.11.0/include -I/ehc/fs1/home/spms/deploy/spms/SPMS-MW/pecl/mqseries-0.11.0/main -I/ehc/fs1/home/spms/deploy/spms/SPMS-MW/pecl/mqseries-0.11.0 -I/ehc/fs1/softs/spms/php-5.3.1/include/php -I/ehc/fs1/softs/spms/php-5.3.1/include/php/main -I/ehc/fs1/softs/spms/php-5.3.1/include/php/TSRM -I/ehc/fs1/softs/spms/php-5.3.1/include/php/Zend -I/ehc/fs1/softs/spms/php-5.3.1/include/php/ext -I/ehc/fs1/softs/spms/php-5.3.1/include/php/ext/date/lib -I/opt/mqm/inc -DHAVE_CONFIG_H -g -O2 -c /ehc/fs1/home/spms/deploy/spms/SPMS-MW/pecl/mqseries-0.11.0/mqseries.c -o mqseries.lo cc -I. -I/ehc/fs1/home/spms/deploy/spms/SPMS-MW/pecl/mqseries-0.11.0 -DPHP_ATOM_INC -I/ehc/fs1/home/spms/deploy/spms/SPMS-MW/pecl/mqseries-0.11.0/include -I/ehc/fs1/home/spms/deploy/spms/SPMS-MW/pecl/mqseries-0.11.0/main -I/ehc/fs1/home/spms/deploy/spms/SPMS-MW/pecl/mqseries-0.11.0 -I/ehc/fs1/softs/spms/php-5.3.1/include/php -I/ehc/fs1/softs/spms/php-5.3.1/include/php/main -I/ehc/fs1/softs/spms/php-5.3.1/include/php/TSRM -I/ehc/fs1/softs/spms/php-5.3.1/include/php/Zend -I/ehc/fs1/softs/spms/php-5.3.1/include/php/ext -I/ehc/fs1/softs/spms/php-5.3.1/include/php/ext/date/lib -I/opt/mqm/inc -DHAVE_CONFIG_H -g -O2 -c /ehc/fs1/home/spms/deploy/spms/SPMS-MW/pecl/mqseries-0.11.0/mqseries.c -fPIC -DPIC -o .libs/mqseries.o /ehc/fs1/home/spms/deploy/spms/SPMS-MW/pecl/mqseries-0.11.0/mqseries.c:99: error: duplicate 'static' /ehc/fs1/home/spms/deploy/spms/SPMS-MW/pecl/mqseries-0.11.0/mqseries.c:106: error: duplicate 'static' /ehc/fs1/home/spms/deploy/spms/SPMS-MW/pecl/mqseries-0.11.0/mqseries.c:114: error: duplicate 'static' /ehc/fs1/home/spms/deploy/spms/SPMS-MW/pecl/mqseries-0.11.0/mqseries.c:123: error: duplicate 'static' /ehc/fs1/home/spms/deploy/spms/SPMS-MW/pecl/mqseries-0.11.0/mqseries.c:130: error: duplicate 'static' /ehc/fs1/home/spms/deploy/spms/SPMS-MW/pecl/mqseries-0.11.0/mqseries.c:138: error: duplicate 'static' /ehc/fs1/home/spms/deploy/spms/SPMS-MW/pecl/mqseries-0.11.0/mqseries.c:147: error: duplicate 'static' /ehc/fs1/home/spms/deploy/spms/SPMS-MW/pecl/mqseries-0.11.0/mqseries.c:154: error: duplicate 'static' /ehc/fs1/home/spms/deploy/spms/SPMS-MW/pecl/mqseries-0.11.0/mqseries.c:167: error: duplicate 'static' /ehc/fs1/home/spms/deploy/spms/SPMS-MW/pecl/mqseries-0.11.0/mqseries.c:181: error: duplicate 'static' /ehc/fs1/home/spms/deploy/spms/SPMS-MW/pecl/mqseries-0.11.0/mqseries.c:191: error: duplicate 'static' /ehc/fs1/home/spms/deploy/spms/SPMS-MW/pecl/mqseries-0.11.0/mqseries.c:202: error: duplicate 'static' /ehc/fs1/home/spms/deploy/spms/SPMS-MW/pecl/mqseries-0.11.0/mqseries.c:214: error: duplicate 'static' make: *** [mqseries.lo] Error 1 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 16 16:00:01 2025 UTC |
SOLVED: I got it to compile by removing the 'static' calls from mqseries.c For example, I changed: /* {{{ arginfo */ static ZEND_BEGIN_ARG_INFO_EX(arginfo_mqseries_back, 0 ,0, 3) to: /* {{{ arginfo */ ZEND_BEGIN_ARG_INFO_EX(arginfo_mqseries_back, 0 ,0, 3) Repeat for all static declarations near ZEND_ Got the idea after reading this: http://devlog.mahcuz.com/2010/08/php-gtk-compile-error- duplicate-static/ Also noticed that a bunch of other pecl packages suffer from the same exact compile errors, so I looked at what those dev's did to solve the problem (I did a diff on inotify 1.4 vs 1.3).