Opened 14 years ago

Closed 14 years ago

#25794 closed defect (fixed)

m4 and gawk use libsigsegv though no dependency is declared

Reported by: jorge.monforte@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc: blair (Blair Zajac), Schamschula (Marius Schamschula)
Port: m4, gawk

Description

I was trying to build again php5-mysql so I could restart my mediawiki server after upgrading when the process stopped and showed an error that redirect me to a main.log file in the ports building directory.

This is the main.log where you can see the error.

version:1
:msg:main --->  Computing dependencies for php5:info:main .:debug:main Searching for dependency: pkgconfig
:debug:main Found Dependency: receipt exists for pkgconfig
:debug:main Searching for dependency: autoconf213
:debug:main Found Dependency: receipt exists for autoconf213
:debug:main Searching for dependency: gsed
:debug:main Found Dependency: receipt exists for gsed
:debug:main Searching for dependency: libtool
:debug:main Found Dependency: receipt exists for libtool
:debug:main Searching for dependency: libxml2
:debug:main Found Dependency: receipt exists for libxml2
:debug:main Searching for dependency: bzip2
:debug:main Found Dependency: receipt exists for bzip2
:debug:main Searching for dependency: mhash
:debug:main Found Dependency: receipt exists for mhash
:debug:main Searching for dependency: pcre
:debug:main Found Dependency: receipt exists for pcre
:debug:main Searching for dependency: readline
:debug:main Found Dependency: receipt exists for readline
:debug:main Searching for dependency: zlib
:debug:main Found Dependency: receipt exists for zlib
:debug:main Searching for dependency: apache2
:debug:main Found Dependency: receipt exists for apache2
:msg:main 
:debug:main Executing org.macports.main (php5)
:debug:main Skipping completed org.macports.fetch (php5)
:debug:main Skipping completed org.macports.checksum (php5)
:debug:main setting option extract.cmd to /usr/bin/bzip2
:debug:main Skipping completed org.macports.extract (php5)
:debug:main Skipping completed org.macports.patch (php5)
:msg:main --->  Configuring php5
:debug:main Using compiler 'Mac OS X gcc 4.0'
:debug:configure configure phase started at Fri Jul 23 23:24:23 CEST 2010
:debug:configure Executing proc-pre-org.macports.configure-configure-0
:debug:configure Executing org.macports.configure (php5)
:debug:configure Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_php5/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.5'
:debug:configure Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_php5/work/php-5.3.2" && /opt/local/bin/autoconf213'
:info:configure Autoconf requires GNU m4 1.1 or later <<<<<<<<<<<<ERROR
:info:configure shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_php5/work/php-5.3.2" && /opt/local/bin/autoconf213 " returned error 1
:error:configure Target org.macports.configure returned: autoconf failure: shell command failed
:debug:configure Backtrace: autoconf failure: shell command failed
    while executing
"$procedure $targetname"
:info:configure Warning: the following items did not execute (for php5): org.macports.destroot org.macports.configure org.macports.build
:notice:configure Log for php5 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_php5/main.log

Change History (14)

comment:1 Changed 14 years ago by jmroot (Joshua Root)

Cc: jwa@… added
Keywords: autoconf m4 removed
Owner: changed from macports-tickets@… to ryandesign@…
Port: php5 added; php5-mysql removed

Please remember to cc the maintainers.

comment:2 in reply to:  description Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: Problems complilng php5-mysql, autoconf213 can't find m4php5: autoconf213 requires GNU m4 1.1 or later

Replying to jorge.monforte@…:

:info:configure Autoconf requires GNU m4 1.1 or later <<<<<<<<<<<<ERROR

Is the m4 port installed, active, and functional?

Do you have any other m4 installed anywhere, such as in /usr/local?

comment:3 Changed 14 years ago by jorge.monforte@…

This is the macports m4 installation:

bash-3.2# port installed | grep m4
  m4 @1.4.11_0
  m4 @1.4.12_1
  m4 @1.4.13_0
  m4 @1.4.14_0 (active)

This is the system install one

bash-3.2# /usr/bin/m4 --version
GNU M4 1.4.6
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Written by Rene' Seindal.

comment:4 in reply to:  1 Changed 14 years ago by jorge.monforte@…

Replying to jmr@…:

Sorry, this is my first ticket submission.

Please remember to cc the maintainers.

comment:5 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Which m4 is autoconf213 using? See with

grep '^:.*M4' $(which autoconf213)

comment:6 Changed 14 years ago by jorge.monforte@…

The macports one:

bash-3.2# grep '^:.*M4' $(which autoconf213)
: ${M4=/opt/local/bin/gm4}

comment:7 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

What's the output of

/opt/local/bin/gm4 --version
/opt/local/bin/gm4 --help

The "Autoconf requires GNU m4 1.1 or later" message appears to be triggered when autoconf doesn't find certain features listed in the help output.

comment:8 in reply to:  7 Changed 14 years ago by jorge.monforte@…

Replying to ryandesign@…:

What's the output of

/opt/local/bin/gm4 --version
/opt/local/bin/gm4 --help

The "Autoconf requires GNU m4 1.1 or later" message appears to be triggered when autoconf doesn't find certain features listed in the help output.

The same error for both.

comment:9 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

What error?

comment:10 in reply to:  9 Changed 14 years ago by jorge.monforte@…

Replying to ryandesign@…:

What error?

Sorry, I've post it before but now I cant see it.

bash-3.2# gm4 --version
dyld: Library not loaded: /opt/local/lib/libsigsegv.0.dylib
  Referenced from: /opt/local/bin/gm4
  Reason: image not found
Trace/BPT trap
bash-3.2# gm4 --help
dyld: Library not loaded: /opt/local/lib/libsigsegv.0.dylib
  Referenced from: /opt/local/bin/gm4
  Reason: image not found
Trace/BPT trap

comment:11 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: blair@… added; jwa@… removed
Port: m4 added; php5 removed
Status: newassigned
Summary: php5: autoconf213 requires GNU m4 1.1 or laterm4: uses libsigsegv though no dependency declared

Aha! m4 is opportunistically using libsigsegv. You probably happened to have libsigsegv library version 0 installed at the time you first built m4, and by now libsigsegv has been updated to library version 2 so m4 now fails to run. We must fix the m4 portfile so it does not attempt to use libsigsegv anymore. Looks like we already fixed this problem once before (see r42166) but the method used there apparently doesn't work anymore, so we must fix it again.

comment:12 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: mschamschula@… added
Port: gawk added
Summary: m4: uses libsigsegv though no dependency declaredm4 and gawk use libsigsegv though no dependency is declared

gawk has the same problem.

$ otool -L /opt/local/bin/gawk
/opt/local/bin/gawk:
	/opt/local/lib/libsigsegv.2.dylib (compatibility version 3.0.0, current version 3.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.0)
	/opt/local/lib/libintl.8.dylib (compatibility version 10.0.0, current version 10.1.0)
	/opt/local/lib/libiconv.2.dylib (compatibility version 8.0.0, current version 8.0.0)
	/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 550.29.0)

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

Fixed gawk in r73963.

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

Resolution: fixed
Status: assignedclosed

Fixed m4 in r73964.

Note: See TracTickets for help on using tickets.