|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2008-03-03 11:26 UTC] philip@php.net
Description:
------------
I'm unable to build Phar, and here's the [buggy] compiler:
water:/tmp philip$ gcc -v
Using built-in specs.
Target: i686-apple-darwin8
Configured with: /private/var/tmp/gcc/gcc-5363.obj~28/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=powerpc-apple-darwin8 --with-arch=nocona --with-tune=generic --program-prefix= --host=i686-apple-darwin8 --target=i686-apple-darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5363)
Reproduce code:
---------------
cvs co pecl/phar && cd pecl/phar && phpize && ./configure && make
Actual result:
--------------
<snip>
/bin/sh /tmp/pharTemp/libtool --mode=link gcc -DPHP_ATOM_INC -I/tmp/pharTemp/include -I/tmp/pharTemp/main -I/tmp/pharTemp -I/usr/local/php5/include/php -I/usr/local/php5/include/php/main -I/usr/local/php5/include/php/TSRM -I/usr/local/php5/include/php/Zend -I/usr/local/php5/include/php/ext -I/usr/local/php5/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -o phar.la -export-dynamic -avoid-version -prefer-pic -module -rpath /tmp/pharTemp/modules util.lo tar.lo zip.lo stream.lo func_interceptors.lo dirstream.lo phar.lo phar_object.lo phar_path_check.lo
gcc ${wl}-flat_namespace ${wl}-undefined ${wl}suppress -o .libs/phar.so -bundle .libs/util.o .libs/tar.o .libs/zip.o .libs/stream.o .libs/func_interceptors.o .libs/dirstream.o .libs/phar.o .libs/phar_object.o .libs/phar_path_check.o
/usr/bin/ld: multiple definitions of symbol _phar_has_bz2
.libs/util.o definition of _phar_has_bz2 in section (__DATA,__common)
.libs/tar.o definition of _phar_has_bz2 in section (__DATA,__common)
/usr/bin/ld: multiple definitions of symbol _phar_has_zlib
.libs/util.o definition of _phar_has_zlib in section (__DATA,__common)
.libs/tar.o definition of _phar_has_zlib in section (__DATA,__common)
.libs/zip.o definition of _phar_has_bz2 in section (__DATA,__common)
.libs/zip.o definition of _phar_has_zlib in section (__DATA,__common)
.libs/stream.o definition of _phar_has_bz2 in section (__DATA,__common)
.libs/stream.o definition of _phar_has_zlib in section (__DATA,__common)
.libs/func_interceptors.o definition of _phar_has_bz2 in section (__DATA,__common)
.libs/func_interceptors.o definition of _phar_has_zlib in section (__DATA,__common)
.libs/dirstream.o definition of _phar_has_bz2 in section (__DATA,__common)
.libs/dirstream.o definition of _phar_has_zlib in section (__DATA,__common)
.libs/phar.o definition of _phar_has_bz2 in section (__DATA,__common)
.libs/phar.o definition of _phar_has_zlib in section (__DATA,__common)
.libs/phar_object.o definition of _phar_has_bz2 in section (__DATA,__common)
.libs/phar_object.o definition of _phar_has_zlib in section (__DATA,__common)
.libs/phar_path_check.o definition of _phar_has_bz2 in section (__DATA,__common)
.libs/phar_path_check.o definition of _phar_has_zlib in section (__DATA,__common)
collect2: ld returned 1 exit status
make: *** [phar.la] Error 1
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 23:00:01 2025 UTC |
I also can not compile Phar using PECL : running: make /bin/bash /var/tmp/pear-build-root/phar-1.2.3/libtool --mode=compile gcc -I. -I/tmp/pear/temp/phar -DPHP_ATOM_INC -I/var/tmp/pear-build-root/phar-1.2.3/include -I/var/tmp/pear-build-root/phar-1.2.3/main -I/tmp/pear/temp/phar -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/phar/phar.c -o phar.lo mkdir .libs gcc -I. -I/tmp/pear/temp/phar -DPHP_ATOM_INC -I/var/tmp/pear-build-root/phar-1.2.3/include -I/var/tmp/pear-build-root/phar-1.2.3/main -I/tmp/pear/temp/phar -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/phar/phar.c -fPIC -DPIC -o .libs/phar.o In file included from /usr/include/php5/ext/spl/spl_iterators.h:27, from /usr/include/php5/ext/spl/spl_array.h:26, from /tmp/pear/temp/phar/phar_internal.h:46, from /tmp/pear/temp/phar/phar.c:23: /usr/include/php5/ext/pcre/php_pcre.h:29:18: error: pcre.h: No such file or directory In file included from /usr/include/php5/ext/spl/spl_iterators.h:27, from /usr/include/php5/ext/spl/spl_array.h:26, from /tmp/pear/temp/phar/phar_internal.h:46, from /tmp/pear/temp/phar/phar.c:23: /usr/include/php5/ext/pcre/php_pcre.h:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token /usr/include/php5/ext/pcre/php_pcre.h:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token /usr/include/php5/ext/pcre/php_pcre.h:52: error: expected specifier-qualifier-list before 'pcre' make: *** [phar.lo] Erreur 1 ERROR: `make' failed Here are the details of the box : - Ubuntu 7.10 - PHP 5.2.3