Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#32908 closed defect (duplicate)

php5-iconv (5.3.9) install fails with segmentation fault 11

Reported by: iakoder Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc:
Port: php5-iconv

Description

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)

Attachments (1)

main.log (32.1 KB) - added by iakoder 13 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 13 years ago by iakoder

Cc: dwilks@… added

Cc Me!

comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign dwilks@… removed
Keywords: php-iconv removed
Owner: changed from macports-tickets@… to ryandesign@…
Port: php5-iconv added; php-iconv removed

The CC field must contain complete email addresses. You don't need to Cc yourself.

Please "sudo port clean php5-iconv" and try again, and if it fails again, please attach the main.log.

Could you elaborate on the oracle-instantclient 64-bit issues? I was not aware there were any.

comment:3 Changed 13 years ago by iakoder

bongo:~ dwilks$ sudo port clean php5-iconv
--->  Cleaning php5-iconv
bongo:~ dwilks$ sudo port install php5-iconv
--->  Computing dependencies for php5-iconv
--->  Fetching archive for php5-iconv
--->  Attempting to fetch php5-iconv-5.3.9_0.darwin_11.i386.tgz from http://packages.macports.org/php5-iconv
--->  Fetching php5-iconv
--->  Verifying checksum(s) for php5-iconv
--->  Extracting 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>

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_php_php5-iconv/php5-iconv/main.log is attached.

Here's one of the many web pages Google finds regarding the oracle instantclient and lion; https://forums.oracle.com/forums/thread.jspa?threadID=2187558

Changed 13 years ago by iakoder

Attachment: main.log added

comment:4 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: duplicate
Status: newclosed

Ok, thanks, I'm going to call the segfault problem a duplicate of #31590.

As for the oracle-instantclient issue, I suppose I should add a note to that port indicating that it is not supported on Lion, until such a time as Oracle releases a new version....

comment:5 Changed 13 years ago by iakoder

Sorry I missed that ticket when I searched. Is this a newish problem? I just installed 5.3.8 last week from a completely clean macport tree.

The 32 bit version of the php5-oracle port works fine. So if there's a way to flag only the 64 bit version that would probably be best.

Thanks

Note: See TracTickets for help on using tickets.