php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58565 Cannot compile (error: duplicate 'static')
Submitted: 2009-02-23 16:01 UTC Modified: 2009-02-23 16:34 UTC
From: phpwnd at gmail dot com Assigned:
Status: Closed Package: intl (PECL)
PHP Version: 5_3 CVS-2009-02-23 (dev) OS: Linux
Private report: No CVE-ID: None
 [2009-02-23 16:01 UTC] phpwnd at gmail dot com
Description:
------------
Tried to install intl via the pecl cli, compilation failed.

If I forgot to include any info, please ask for feedback and I'll reply the same day.

GCC stuff, in case it's relevant: (gcc -v)
------
Using built-in specs.
Target: x86_64-pc-linux-gnu
Configured with: /mnt/sdb2/var/tmp/portage/sys-devel/gcc-4.3.3/work/gcc-4.3.3/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.3 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.3 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.3/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.3/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --disable-fixed-point --disable-nls --with-system-zlib --disable-checking --disable-werror --enable-secureplt --enable-multilib --disable-libmudflap --disable-libssp --disable-libgomp --enable-cld --disable-libgcj --enable-languages=c,c++,treelang --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.3.3 p1.0, pie-10.1.5'
Thread model: posix
gcc version 4.3.3 (Gentoo 4.3.3 p1.0, pie-10.1.5)


phpize stuff
------
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20090115
Zend Extension Api No:   220090115

Reproduce code:
---------------
pecl install intl

Actual result:
--------------
running: make
/bin/sh /var/tmp/pear-build-root/intl-1.0.1/libtool --mode=compile cc -I/usr/include -I. -I/tmp/intl -DPHP_ATOM_INC -I/var/tmp/pear-build-root/intl-1.0.1/include -I/var/tmp/pear-build-root/intl-1.0.1/main -I/tmp/intl -I/usr/lib64/php5/include/php -I/usr/lib64/php5/include/php/main -I/usr/lib64/php5/include/php/TSRM -I/usr/lib64/php5/include/php/Zend -I/usr/lib64/php5/include/php/ext -I/usr/lib64/php5/include/php/ext/date/lib  -I/usr/lib64/php5/include/php -DHAVE_CONFIG_H  -g -O0   -c /tmp/intl/php_intl.c -o php_intl.lo
mkdir .libs
 cc -I/usr/include -I. -I/tmp/intl -DPHP_ATOM_INC -I/var/tmp/pear-build-root/intl-1.0.1/include -I/var/tmp/pear-build-root/intl-1.0.1/main -I/tmp/intl-I/usr/lib64/php5/include/php -I/usr/lib64/php5/include/php/main -I/usr/lib64/php5/include/php/TSRM -I/usr/lib64/php5/include/php/Zend -I/usr/lib64/php5/include/php/ext -I/usr/lib64/php5/include/php/ext/date/lib -I/usr/lib64/php5/include/php -DHAVE_CONFIG_H -g -O0 -c /tmp/intl/php_intl.c  -fPIC -DPIC-o .libs/php_intl.o
/tmp/intl/php_intl.c:88: error: duplicate 'static'
/tmp/intl/php_intl.c:92: error: duplicate 'static'
/tmp/intl/php_intl.c:97: error: duplicate 'static'
/tmp/intl/php_intl.c:103: error: duplicate 'static'
/tmp/intl/php_intl.c:108: error: duplicate 'static'
/tmp/intl/php_intl.c:114: error: duplicate 'static'
/tmp/intl/php_intl.c:121: error: duplicate 'static'
/tmp/intl/php_intl.c:128: error: duplicate 'static'
/tmp/intl/php_intl.c:136: error: duplicate 'static'
/tmp/intl/php_intl.c:144: error: duplicate 'static'
/tmp/intl/php_intl.c:148: error: duplicate 'static'
/tmp/intl/php_intl.c:153: error: duplicate 'static'
/tmp/intl/php_intl.c:159: error: duplicate 'static'
/tmp/intl/php_intl.c:166: error: duplicate 'static'
/tmp/intl/php_intl.c:177: error: duplicate 'static'
/tmp/intl/php_intl.c:183: error: duplicate 'static'
/tmp/intl/php_intl.c:188: error: duplicate 'static'
/tmp/intl/php_intl.c:195: error: duplicate 'static'
/tmp/intl/php_intl.c:202: error: duplicate 'static'
/tmp/intl/php_intl.c:209: error: duplicate 'static'
/tmp/intl/php_intl.c:218: error: duplicate 'static'
/tmp/intl/php_intl.c:225: error: duplicate 'static'
/tmp/intl/php_intl.c:232: error: duplicate 'static'
/tmp/intl/php_intl.c:237: error: duplicate 'static'
/tmp/intl/php_intl.c:244: error: duplicate 'static'
/tmp/intl/php_intl.c:251: error: duplicate 'static'
/tmp/intl/php_intl.c:257: error: duplicate 'static'
/tmp/intl/php_intl.c:264: error: duplicate 'static'
/tmp/intl/php_intl.c:271: error: duplicate 'static'
/tmp/intl/php_intl.c:277: error: duplicate 'static'
/tmp/intl/php_intl.c:283: error: duplicate 'static'
/tmp/intl/php_intl.c:289: error: duplicate 'static'
/tmp/intl/php_intl.c:294: error: duplicate 'static'
/tmp/intl/php_intl.c:299: error: duplicate 'static'
/tmp/intl/php_intl.c:305: error: duplicate 'static'
/tmp/intl/php_intl.c:312: error: duplicate 'static'
/tmp/intl/php_intl.c:318: error: duplicate 'static'
/tmp/intl/php_intl.c:325: error: duplicate 'static'
/tmp/intl/php_intl.c:331: error: duplicate 'static'
/tmp/intl/php_intl.c:336: error: duplicate 'static'
/tmp/intl/php_intl.c:342: error: duplicate 'static'
/tmp/intl/php_intl.c:348: error: duplicate 'static'
/tmp/intl/php_intl.c:354: error: duplicate 'static'
make: *** [php_intl.lo] Error 1
ERROR: `make' failed

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-02-23 16:07 UTC] stas at zend dot com
Your report indicates 5.3 as PHP version, but 5.3 has intl extension built in the core source, why do you use pecl to build it?
 [2009-02-23 16:34 UTC] phpwnd at gmail dot com
I simply hadn't registered that intl had moved to core in 5.3, sorry for the inattention.

I have successfully recompiled PHP with --enable-intl now, no problem there. Sorry for the bogus report :)
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sun Sep 27 17:01:24 2020 UTC