php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58151 does not compile
Submitted: 2008-04-10 15:31 UTC Modified: 2008-04-14 16:48 UTC
From: ok dot php-net dot 12 dot zero at spamgourmet dot com Assigned:
Status: Closed Package: phar (PECL)
PHP Version: 5.2.5 OS: OS X 10.5.2
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ok dot php-net dot 12 dot zero at spamgourmet dot com
New email:
PHP Version: OS:

 

 [2008-04-10 15:31 UTC] ok dot php-net dot 12 dot zero at spamgourmet dot com
Description:
------------
I'm using PHP 5.2.5, built with Fink and those info files: http://vislab-ccom.unh.edu/~schwehr/software/fink/php-5.2.5/

Might be quite an unusual environment but most beta/stable extensions (like phar-1.2.3) compile successfully.

'../configure' '--prefix=/sw' '--enable-thread-safety' '--with-db4=/sw' '--enable-dba' '--with-gdbm=/sw' '--enable-dbx' '--with-zlib-dir=/usr' '--enable-ucd-snmp-hack' '--without-mcal' '--without-recode' '--enable-force-cgi-redirect' '--enable-maintainer-zts' '--without-mm' '--program-suffix=5' '--disable-debug' '--enable-safe-mode' '--enable-memory-limit' '--with-layout=GNU' '--enable-calendar' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-trans-sid' '--enable-bcmath' '--with-bz2=/sw' '--enable-ctype' '--with-iconv=/sw' '--enable-exif' '--enable-flatfile' '--enable-filepro' '--enable-ftp' '--with-libxml-dir=/sw' '--with-gettext=/sw' '--enable-mbstring' '--enable-shmop' '--enable-sockets' '--enable-wddx' '--enable-soap' '--enable-sqlite-utf8' '--with-pcre-regex' '--with-expat-dir=/sw' '--enable-yp' '--with-zlib' '--with-kerberos=/usr' '--with-openssl=/usr' '--with-openssl-dir=/usr' '--without-sybase-ct' '--with-regex=php' '--disable-rpath' '--disable-static' '--with-exec-dir=/sw/lib/php5/libexec' '--mandir=/sw/share/man' '--with-apxs2=/sw/bin/apxs2' '--with-config-file-path=/sw/etc/php5/apache2' '--with-imap-ssl=/usr' '--with-xmlrpc=shared' '--with-xsl=shared,/sw' '--with-gmp=shared,/sw' '--with-curl=shared,/sw' '--with-gd=shared,/sw' '--with-tiff-dir=/sw' '--with-jpeg-dir=/sw' '--with-xpm-dir=shared,/usr/X11' '--with-png-dir=/sw' '--with-freetype-dir=shared,/sw' '--with-imap=shared,/sw' '--with-ldap=shared,/sw' '--with-ldap-sasl=/sw' '--with-mhash=shared,/sw' '--with-mcrypt=shared,/sw' '--with-mysql=shared,/sw' '--with-sqlite=shared,/sw' '--with-mysqli=shared,/sw/bin/mysql_config' '--with-pgsql=shared,/sw' '--with-unixODBC=shared,/sw' '--with-t1lib=/sw' '--with-ttf=/sw' '--with-snmp=shared,/sw'

Reproduce code:
---------------
sudo pear install pecl/phar-2.0.0a2

Expected result:
----------------
Build complete.
Don't forget to run 'make test'.

Actual result:
--------------
/bin/sh /private/var/tmp/pear-build-root/phar-2.0.0a2/libtool --mode=link gcc -DPHP_ATOM_INC -I/private/var/tmp/pear-build-root/phar-2.0.0a2/include -I/private/var/tmp/pear-build-root/phar-2.0.0a2/main -I/private/tmp/pear/temp/phar -I/sw/include/php5 -I/sw/include/php5/main -I/sw/include/php5/TSRM -I/sw/include/php5/Zend -I/sw/include/php5/ext -I/sw/include/php5/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -o phar.la -export-dynamic -avoid-version -prefer-pic -module -rpath /private/var/tmp/pear-build-root/phar-2.0.0a2/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
ld: duplicate symbol _phar_has_bz2 in .libs/tar.o and .libs/util.o

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-04-12 17:44 UTC] greg at chiaraquartet dot net
Please try this patch against CVS:

http://pear.php.net/~greg/fix_compile.patch.txt

you can check out the code with

cvs -d :pserver:cvsread@cvs.php.net:/repository login
<enter your email address as password>
cvs -d :pserver:cvsread@cvs.php.net:/repository co pecl/phar

and then you can use "phpize" in pecl/phar and "./configure" followed by "make"
 [2008-04-13 03:44 UTC] ok dot php-net dot 12 dot zero at spamgourmet dot com
Thanks for your response! I tried it according to your instructions and got this:

phar_object.c: In function 'zim_Phar_offsetSet':
phar_object.c:3012: error: too few arguments to function 'phar_add_file'
phar_object.c: In function 'zim_Phar_addEmptyDir':
phar_object.c:3070: error: too few arguments to function 'phar_mkdir'
phar_object.c: In function 'zim_Phar_addFile':
phar_object.c:3100: error: too few arguments to function 'phar_add_file'
phar_object.c: In function 'zim_Phar_addFromString':
phar_object.c:3118: error: too few arguments to function 'phar_add_file'
make: *** [phar_object.lo] Error 1
 [2008-04-13 10:34 UTC] greg at chiaraquartet dot net
Please try again with the CVS version of pecl/phar, and be sure to make clean.

Greg
 [2008-04-13 11:31 UTC] ok dot php-net dot 12 dot zero at spamgourmet dot com
Should sth like
$ make clean && cvs up -R && phpize && ./configure && make
work? (Is repeating phpize && ./configure even neccessary?) Trying this I get the same result as before, applying the patch doesn't make a difference.
 [2008-04-13 11:37 UTC] ok dot php-net dot 12 dot zero at spamgourmet dot com
Sorry, I actually tried:
$ make clean && cvs up -RC && phpize && ./configure && make
 [2008-04-13 13:59 UTC] greg at chiaraquartet dot net
This is still not right somehow, can you verify these $Id$ tags which are found at the top of the files?

/* $Id: phar.c,v 1.328 2008/04/10 03:12:07 cellog Exp $ */
/* $Id: phar_internal.h,v 1.99 2008/04/11 04:20:14 cellog Exp $ */
/* $Id: phar_object.c,v 1.206 2008/04/12 21:43:38 cellog Exp $ */
/* $Id: php_phar.h,v 1.14 2008/04/01 17:58:59 sfox Exp $ */
/* $Id: stream.h,v 1.3 2008/01/28 08:52:06 cellog Exp $ */
/* $Id: stub.h,v 1.13 2008/03/12 03:55:11 cellog Exp $ */
/* $Id: dirstream.h,v 1.4 2008/01/10 15:12:59 cellog Exp $ */
/* $Id: util.c,v 1.34 2008/04/09 19:23:30 cellog Exp $ */
/* $Id: pharzip.h,v 1.1 2008/01/23 23:19:02 cellog Exp $ */
/* $Id: phar_path_check.c,v 1.9 2008/01/18 20:12:44 nlopess Exp $ */
/* $Id: func_interceptors.c,v 1.10 2008/04/12 22:21:28 cellog Exp $ */
/* $Id: func_interceptors.h,v 1.1 2008/01/11 07:30:02 cellog Exp $ */

Thanks for your patience on this one - it is critically important that we get this to build on OS X for obvious reasons.  None of us have an OS X box to test with, which makes this very difficult.
 [2008-04-13 14:02 UTC] greg at chiaraquartet dot net
sorry - 1 correction, pharzip.h should be:

/* $Id: pharzip.h,v 1.2 2008/01/28 08:52:06 cellog Exp $ */
 [2008-04-13 15:52 UTC] ok dot php-net dot 12 dot zero at spamgourmet dot com
The Ids match:

$ grep -hr '$Id' *

dnl $Id: acinclude.m4,v 1.332.2.14.2.26 2007/08/20 14:28:45 jani Exp $
dnl $Id: acinclude.m4,v 1.332.2.14.2.26 2007/08/20 14:28:45 jani Exp $
# $Id: mkdep.awk,v 1.8.2.1 2006/01/01 12:50:00 sniper Exp $
dnl $Id: config.m4,v 1.27 2008/01/28 08:52:06 cellog Exp $
// $Id: config.w32,v 1.27 2008/01/28 14:39:16 sfox Exp $
/* $Id: dirstream.h,v 1.4 2008/01/10 15:12:59 cellog Exp $ */
/* $Id: func_interceptors.c,v 1.10 2008/04/12 22:21:28 cellog Exp $ */
/* $Id: func_interceptors.h,v 1.1 2008/01/11 07:30:02 cellog Exp $ */
/* $Id: makestub.php,v 1.7 2008/02/01 14:40:56 sfox Exp $ */
/* $Id: phar.c,v 1.328 2008/04/10 03:12:07 cellog Exp $ */
 * @version $Id: Archive.php,v 1.52 2007/09/01 20:28:14 cellog Exp $
/* $Id: phar_internal.h,v 1.99 2008/04/11 04:20:14 cellog Exp $ */
/* $Id: phar_object.c,v 1.206 2008/04/12 21:43:38 cellog Exp $ */
/* $Id: phar_path_check.c,v 1.9 2008/01/18 20:12:44 nlopess Exp $ */
/* $Id: phar_path_check.re,v 1.8 2008/01/09 00:58:36 cellog Exp $ */
/* $Id: pharzip.h,v 1.2 2008/01/28 08:52:06 cellog Exp $ */
/* $Id: php_phar.h,v 1.14 2008/04/01 17:58:59 sfox Exp $ */
/* $Id: run-tests.php,v 1.226.2.37.2.35 2007/09/14 15:28:03 nlopess Exp $ */
/* $Id: stream.h,v 1.3 2008/01/28 08:52:06 cellog Exp $ */
/* $Id: stub.h,v 1.13 2008/03/12 03:55:11 cellog Exp $ */
/* $Id: util.c,v 1.34 2008/04/09 19:23:30 cellog Exp $ */

I have to thank you as I'm not even sure if this bug isn't a result of my lack of knowledge and my somehow messed up environment respectively. :)
 [2008-04-14 13:17 UTC] greg at chiaraquartet dot net
turns out, it was a ZTS issue, Steph just fixed this, would you please try a clean checkout of CVS?

Thanks again for patience, I think we've nipped it now
 [2008-04-14 16:48 UTC] ok dot php-net dot 12 dot zero at spamgourmet dot com
Works like a charm, thx! :)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 12:01:30 2024 UTC