[MacPorts] #32908: php5-iconv (5.3.9) install fails with segmentation fault 11
MacPorts
noreply at macports.org
Mon Jan 16 16:11:25 PST 2012
#32908: php5-iconv (5.3.9) install fails with segmentation fault 11
--------------------------------+-------------------------------------------
Reporter: dwilks@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.0.3
Keywords: php-iconv | Port: php-iconv
--------------------------------+-------------------------------------------
I'm trying to install the new php 5.3.9 ports and although the main php
port installed ok, php-iconv is failing with a segmentation fault.
{{{
bongo:~ dwilks$ sudo port install php5-iconvPassword:
---> Computing dependencies for php5-iconv
---> Configuring php5-iconv
Error: Target org.macports.configure returned: shell command failed (see
log for details)
Log for php5-iconv is at:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_php_php5-iconv/php5-iconv/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
}}}
Here's the php5-iconv part of the referenced log:
{{{
:notice:configure ---> Configuring php5-iconv
:debug:configure Using compiler 'Mac OS X clang'
:debug:configure Executing proc-pre-org.macports.configure-configure-0
:debug:configure Generating configure script in iconv
:info:configure Configuring for:
:info:configure PHP Api Version: 20090626
:info:configure Zend Module Api No: 20090626
:info:configure Zend Extension Api No: 220090626
:info:configure /opt/local/bin/phpize: line 159: 73138 Segmentation fault:
11 $PHP_AUTOCONF
:info:configure shell command "cd
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_php_php5-iconv/php5-iconv/work/php-5.3.9/ext/iconv
&& /opt/local/bin/phpize" returned error 1
:error:configure Target org.macports.configure returned: shell command
failed (see log for details)
:debug:configure Backtrace: shell command failed (see log for details)
while executing
"$pre $targetname"
:info:configure Warning: the following items did not execute (for
php5-iconv): org.macports.activate org.macports.configure
org.macports.build org.macports.destroot org.macports.install
:notice:configure Log for php5-iconv is at:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_php_php5-iconv/php5-iconv/main.log
}}}
I'm not sure if I'm reading the error message correctly but it appeared as
if phpize was the tool segfaulting so I tried this (as root) and it worked
fine.
{{{
bash-3.2# cd
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_php_php5-iconv/php5-iconv/work/php-5.3.9/ext/iconv
&& /opt/local/bin/phpize && echo Success
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
Success
bash-3.2#
}}}
And even under sudo
{{{
bongo:iconv dwilks$ sudo bash -c "cd
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_php_php5-iconv/php5-iconv/work/php-5.3.9/ext/iconv
&& /opt/local/bin/phpize && echo Success"
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
Success
bongo:iconv dwilks$
}}}
The only particularly interesting aspect of my port config is I'm
configured to build for i386 even though I'm running a 64 bit lion due to
Oracle's instant client 64 bit issues.
{{{
bash-3.2# grep build_arch /opt/local/etc/macports/macports.conf
build_arch i386
}}}
The 5.3.8 ports installed flawlessly
{{{
The following ports are currently installed:
php5 @5.3.8_1+apache2
php5 @5.3.9_0+apache2 (active)
php5-iconv @5.3.8_0 (active)
php5-mbstring @5.3.8_0 (active)
php5-mcrypt @5.3.8_0 (active)
php5-memcache @2.2.6_0 (active)
php5-oracle @5.3.8_0 (active)
php5-posix @5.3.8_0 (active)
php5-xdebug @2.1.2_0 (active)
php5-xsl @5.3.8_0 (active)
}}}
--
Ticket URL: <https://trac.macports.org/ticket/32908>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list