Hi - Installing autoconf fails for me. I'd be grateful for any tips on how to fix this. Here's the output: dan$ sudo port selfupdate Password: DarwinPorts base version 1.400 installed Downloaded MacPorts base version 1.400 The MacPorts installation is not outdated and so was not updated selfupdate done! dan$ sudo port clean autoconf Password: ---> Cleaning autoconf dan$ sudo port install autoconf ---> Fetching autoconf ---> Verifying checksum(s) for autoconf ---> Extracting autoconf ---> Configuring autoconf ---> Building autoconf with target all Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/_private_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_devel_autoconf/work/autoconf-2.61" && make all" returned error 2 Command output: mv autom4te.tmp autom4te cd ../lib && make autom4te.cfg rm -f autom4te.cfg autom4te.tmp sed -e 's|@SHELL[@]|/bin/sh|g' -e 's|@PERL[@]|/opt/local/bin/perl|g' -e 's|@bindir[@]|/opt/local/bin|g' -e 's|@datadir[@]|/opt/local/share/autoconf|g' -e 's|@prefix[@]|/opt/local|g' -e 's|@autoconf-name[@]|'`echo autoconf | sed 's,x,x,'`'|g' -e 's|@autoheader-name[@]|'`echo autoheader | sed 's,x,x,'`'|g' -e 's|@autom4te-name[@]|'`echo autom4te | sed 's,x,x,'`'|g' -e 's|@M4[@]|/usr/bin/gm4|g' -e 's|@AWK[@]|gawk|g' -e 's|@VERSION[@]|2.61|g' -e 's|@PACKAGE_NAME[@]|GNU Autoconf|g' ./autom4te.in >autom4te.tmp chmod a-w autom4te.tmp mv autom4te.tmp autom4te.cfg cd ../lib/m4sugar && make version.m4 { \ echo '# This file is part of -*- Autoconf -*-.'; \ echo '# Version of Autoconf.'; \ echo '# Copyright (C) 1999, 2000, 2001, 2002'; \ echo '# Free Software Foundation, Inc.'; \ echo ;\ echo 'm4_define([m4_PACKAGE_NAME], [GNU Autoconf])'; \ echo 'm4_define([m4_PACKAGE_TARNAME], [autoconf])'; \ echo 'm4_define([m4_PACKAGE_VERSION], [2.61])'; \ echo 'm4_define([m4_PACKAGE_STRING], [GNU Autoconf 2.61])'; \ echo 'm4_define([m4_PACKAGE_BUGREPORT], [bug-autoconf@gnu.org])'; \ } >version.m4 autom4te_perllibdir='..'/lib AUTOM4TE_CFG='../lib/autom4te.cfg' ../bin/autom4te -B '..'/lib -B '..'/lib --language M4sh --cache '' --melt ./autoconf.as -o autoconf.in dyld: lazy symbol binding failed: Symbol not found: _sprintf$LDBLStub Referenced from: /opt/local/lib/perl5/5.8.8/darwin-2level/auto/Data/Dumper/Dumper.bundle Expected in: dynamic lookup dyld: Symbol not found: _sprintf$LDBLStub Referenced from: /opt/local/lib/perl5/5.8.8/darwin-2level/auto/Data/Dumper/Dumper.bundle Expected in: dynamic lookup make[1]: *** [autoconf.in] Trace/BPT trap make: *** [all-recursive] Error 1 Error: Status 1 encountered during processing. I wish I could decode this myself ;) Thanks Dan
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 First let us clean and run from a fresh build by running this command: sudo port -v clean --all autoconf ; sudo port -v install autoconf Now, the only error I expect to see at this point is possibly an installation error do to an already installed port of the exact same message. Let us cross our fingers and hope that is the worse case scenario. HTH - -Altoine Dan Stowell wrote:
Hi -
Installing autoconf fails for me. I'd be grateful for any tips on how to fix this. Here's the output:
dan$ sudo port selfupdate Password: DarwinPorts base version 1.400 installed Downloaded MacPorts base version 1.400 The MacPorts installation is not outdated and so was not updated selfupdate done! dan$ sudo port clean autoconf Password: ---> Cleaning autoconf dan$ sudo port install autoconf ---> Fetching autoconf ---> Verifying checksum(s) for autoconf ---> Extracting autoconf ---> Configuring autoconf ---> Building autoconf with target all Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/_private_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_devel_autoconf/work/autoconf-2.61"
&& make all" returned error 2 Command output: mv autom4te.tmp autom4te cd ../lib && make autom4te.cfg rm -f autom4te.cfg autom4te.tmp sed -e 's|@SHELL[@]|/bin/sh|g' -e 's|@PERL[@]|/opt/local/bin/perl|g' -e 's|@bindir[@]|/opt/local/bin|g' -e 's|@datadir[@]|/opt/local/share/autoconf|g' -e 's|@prefix[@]|/opt/local|g' -e 's|@autoconf-name[@]|'`echo autoconf | sed 's,x,x,'`'|g' -e 's|@autoheader-name[@]|'`echo autoheader | sed 's,x,x,'`'|g' -e 's|@autom4te-name[@]|'`echo autom4te | sed 's,x,x,'`'|g' -e 's|@M4[@]|/usr/bin/gm4|g' -e 's|@AWK[@]|gawk|g' -e 's|@VERSION[@]|2.61|g' -e 's|@PACKAGE_NAME[@]|GNU Autoconf|g' ./autom4te.in >autom4te.tmp chmod a-w autom4te.tmp mv autom4te.tmp autom4te.cfg cd ../lib/m4sugar && make version.m4 { \ echo '# This file is part of -*- Autoconf -*-.'; \ echo '# Version of Autoconf.'; \ echo '# Copyright (C) 1999, 2000, 2001, 2002'; \ echo '# Free Software Foundation, Inc.'; \ echo ;\ echo 'm4_define([m4_PACKAGE_NAME], [GNU Autoconf])'; \ echo 'm4_define([m4_PACKAGE_TARNAME], [autoconf])'; \ echo 'm4_define([m4_PACKAGE_VERSION], [2.61])'; \ echo 'm4_define([m4_PACKAGE_STRING], [GNU Autoconf 2.61])'; \ echo 'm4_define([m4_PACKAGE_BUGREPORT], [bug-autoconf@gnu.org])'; \ } >version.m4 autom4te_perllibdir='..'/lib AUTOM4TE_CFG='../lib/autom4te.cfg' ../bin/autom4te -B '..'/lib -B '..'/lib --language M4sh --cache '' --melt ./autoconf.as -o autoconf.in dyld: lazy symbol binding failed: Symbol not found: _sprintf$LDBLStub Referenced from: /opt/local/lib/perl5/5.8.8/darwin-2level/auto/Data/Dumper/Dumper.bundle Expected in: dynamic lookup
dyld: Symbol not found: _sprintf$LDBLStub Referenced from: /opt/local/lib/perl5/5.8.8/darwin-2level/auto/Data/Dumper/Dumper.bundle Expected in: dynamic lookup
make[1]: *** [autoconf.in] Trace/BPT trap make: *** [all-recursive] Error 1
Error: Status 1 encountered during processing.
I wish I could decode this myself ;)
Thanks Dan _______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-users
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGGTQ6S0foIafBdlkRAi6tAJ4rMQ8qbTh4yOOGZbVw2KZhjM7yPgCfcZKw JQcLOXn7d98PFsh6cUjGgzk= =lWtX -----END PGP SIGNATURE-----
2007/4/8, Altoine Barker <ndiscreet@gmail.com>:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
First let us clean and run from a fresh build by running this command:
sudo port -v clean --all autoconf ; sudo port -v install autoconf
Now, the only error I expect to see at this point is possibly an installation error do to an already installed port of the exact same message. Let us cross our fingers and hope that is the worse case scenario. HTH
Thanks Altoine. Here's the result (seems to me to be the same result as before): ---> Cleaning autoconf ---> Removing distfiles for autoconf ---> Removing archives for autoconf ---> Removing workpath for autoconf ---> Fetching autoconf ---> autoconf-2.61.tar.bz2 doesn't seem to exist in /opt/local/var/db/dports/distfiles/autoconf ---> Attempting to fetch autoconf-2.61.tar.bz2 from http://ftp.gnu.org/gnu/autoconf % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1018k 100 1018k 0 0 63877 0 0:00:16 0:00:16 --:--:-- 62844 ---> Verifying checksum(s) for autoconf ---> Checksumming autoconf-2.61.tar.bz2 ---> Extracting autoconf ---> Extracting autoconf-2.61.tar.bz2 ---> Configuring autoconf checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... build-aux/install-sh -c -d checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether /bin/sh -n is known to work... yes checking for expr... /bin/expr checking for gm4... /usr/bin/gm4 checking whether m4 supports frozen files... yes checking how m4 supports trace files... --error-output checking for perl... /opt/local/bin/perl checking for emacs... emacs checking whether emacs is sufficiently recent... yes checking for emacs... emacs checking where .elc files should go... ${datarootdir}/emacs/site-lisp checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for a sed that does not truncate output... /usr/bin/sed configure: creating ./config.status config.status: creating tests/Makefile config.status: creating tests/atlocal config.status: creating man/Makefile config.status: creating lib/emacs/Makefile config.status: creating Makefile config.status: creating doc/Makefile config.status: creating lib/Makefile config.status: creating lib/Autom4te/Makefile config.status: creating lib/autoscan/Makefile config.status: creating lib/m4sugar/Makefile config.status: creating lib/autoconf/Makefile config.status: creating lib/autotest/Makefile config.status: creating bin/Makefile config.status: executing tests/atconfig commands ---> Building autoconf with target all Making all in bin rm -f autom4te autom4te.tmp sed -e 's|@SHELL[@]|/bin/sh|g' -e 's|@PERL[@]|/opt/local/bin/perl|g' -e 's|@bindir[@]|/opt/local/bin|g' -e 's|@datadir[@]|/opt/local/share/autoconf|g' -e 's|@prefix[@]|/opt/local|g' -e 's|@autoconf-name[@]|'`echo autoconf | sed 's,x,x,'`'|g' -e 's|@autoheader-name[@]|'`echo autoheader | sed 's,x,x,'`'|g' -e 's|@autom4te-name[@]|'`echo autom4te | sed 's,x,x,'`'|g' -e 's|@M4[@]|/usr/bin/gm4|g' -e 's|@M4_DEBUGFILE[@]|--error-output|g' -e 's|@AWK[@]|gawk|g' -e 's|@VERSION[@]|2.61|g' -e 's|@PACKAGE_NAME[@]|GNU Autoconf|g' -e 's|@configure_input[@]|Generated from autom4te.in; do not edit by hand.|g' `test -f ./autom4te.in || echo ./`autom4te.in >autom4te.tmp chmod +x autom4te.tmp chmod a-w autom4te.tmp mv autom4te.tmp autom4te cd ../lib && make autom4te.cfg rm -f autom4te.cfg autom4te.tmp sed -e 's|@SHELL[@]|/bin/sh|g' -e 's|@PERL[@]|/opt/local/bin/perl|g' -e 's|@bindir[@]|/opt/local/bin|g' -e 's|@datadir[@]|/opt/local/share/autoconf|g' -e 's|@prefix[@]|/opt/local|g' -e 's|@autoconf-name[@]|'`echo autoconf | sed 's,x,x,'`'|g' -e 's|@autoheader-name[@]|'`echo autoheader | sed 's,x,x,'`'|g' -e 's|@autom4te-name[@]|'`echo autom4te | sed 's,x,x,'`'|g' -e 's|@M4[@]|/usr/bin/gm4|g' -e 's|@AWK[@]|gawk|g' -e 's|@VERSION[@]|2.61|g' -e 's|@PACKAGE_NAME[@]|GNU Autoconf|g' ./autom4te.in >autom4te.tmp chmod a-w autom4te.tmp mv autom4te.tmp autom4te.cfg cd ../lib/m4sugar && make version.m4 { \ echo '# This file is part of -*- Autoconf -*-.'; \ echo '# Version of Autoconf.'; \ echo '# Copyright (C) 1999, 2000, 2001, 2002'; \ echo '# Free Software Foundation, Inc.'; \ echo ;\ echo 'm4_define([m4_PACKAGE_NAME], [GNU Autoconf])'; \ echo 'm4_define([m4_PACKAGE_TARNAME], [autoconf])'; \ echo 'm4_define([m4_PACKAGE_VERSION], [2.61])'; \ echo 'm4_define([m4_PACKAGE_STRING], [GNU Autoconf 2.61])'; \ echo 'm4_define([m4_PACKAGE_BUGREPORT], [bug-autoconf@gnu.org])'; \ } >version.m4 autom4te_perllibdir='..'/lib AUTOM4TE_CFG='../lib/autom4te.cfg' ../bin/autom4te -B '..'/lib -B '..'/lib --language M4sh --cache '' --melt ./autoconf.as -o autoconf.in dyld: lazy symbol binding failed: Symbol not found: _sprintf$LDBLStub Referenced from: /opt/local/lib/perl5/5.8.8/darwin-2level/auto/Data/Dumper/Dumper.bundle Expected in: dynamic lookup dyld: Symbol not found: _sprintf$LDBLStub Referenced from: /opt/local/lib/perl5/5.8.8/darwin-2level/auto/Data/Dumper/Dumper.bundle Expected in: dynamic lookup make[1]: *** [autoconf.in] Trace/BPT trap make: *** [all-recursive] Error 1 Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/_private_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_devel_autoconf/work/autoconf-2.61" && make all" returned error 2 Command output: mv autom4te.tmp autom4te cd ../lib && make autom4te.cfg rm -f autom4te.cfg autom4te.tmp sed -e 's|@SHELL[@]|/bin/sh|g' -e 's|@PERL[@]|/opt/local/bin/perl|g' -e 's|@bindir[@]|/opt/local/bin|g' -e 's|@datadir[@]|/opt/local/share/autoconf|g' -e 's|@prefix[@]|/opt/local|g' -e 's|@autoconf-name[@]|'`echo autoconf | sed 's,x,x,'`'|g' -e 's|@autoheader-name[@]|'`echo autoheader | sed 's,x,x,'`'|g' -e 's|@autom4te-name[@]|'`echo autom4te | sed 's,x,x,'`'|g' -e 's|@M4[@]|/usr/bin/gm4|g' -e 's|@AWK[@]|gawk|g' -e 's|@VERSION[@]|2.61|g' -e 's|@PACKAGE_NAME[@]|GNU Autoconf|g' ./autom4te.in >autom4te.tmp chmod a-w autom4te.tmp mv autom4te.tmp autom4te.cfg cd ../lib/m4sugar && make version.m4 { \ echo '# This file is part of -*- Autoconf -*-.'; \ echo '# Version of Autoconf.'; \ echo '# Copyright (C) 1999, 2000, 2001, 2002'; \ echo '# Free Software Foundation, Inc.'; \ echo ;\ echo 'm4_define([m4_PACKAGE_NAME], [GNU Autoconf])'; \ echo 'm4_define([m4_PACKAGE_TARNAME], [autoconf])'; \ echo 'm4_define([m4_PACKAGE_VERSION], [2.61])'; \ echo 'm4_define([m4_PACKAGE_STRING], [GNU Autoconf 2.61])'; \ echo 'm4_define([m4_PACKAGE_BUGREPORT], [bug-autoconf@gnu.org])'; \ } >version.m4 autom4te_perllibdir='..'/lib AUTOM4TE_CFG='../lib/autom4te.cfg' ../bin/autom4te -B '..'/lib -B '..'/lib --language M4sh --cache '' --melt ./autoconf.as -o autoconf.in dyld: lazy symbol binding failed: Symbol not found: _sprintf$LDBLStub Referenced from: /opt/local/lib/perl5/5.8.8/darwin-2level/auto/Data/Dumper/Dumper.bundle Expected in: dynamic lookup dyld: Symbol not found: _sprintf$LDBLStub Referenced from: /opt/local/lib/perl5/5.8.8/darwin-2level/auto/Data/Dumper/Dumper.bundle Expected in: dynamic lookup make[1]: *** [autoconf.in] Trace/BPT trap make: *** [all-recursive] Error 1 Warning: the following items did not execute (for autoconf): com.apple.activate com.apple.build com.apple.destroot com.apple.install Error: Status 1 encountered during processing.
On Apr 8, 2007, at 13:38, Dan Stowell wrote:
dyld: lazy symbol binding failed: Symbol not found: _sprintf$LDBLStub Referenced from: /opt/local/lib/perl5/5.8.8/darwin-2level/auto/Data/Dumper/ Dumper.bundle Expected in: dynamic lookup
It looks like someone else mentioned this problem in October 2006 but did not receive a response to their message and did not write back to say if or how they solved it: http://lists.macosforge.org/pipermail/macports-users/2006-October/ 000334.html Someone else encountered it in February 2006 on another list (there it was in relation to MySQL and Python), and it looks like the problem could be that you're using gcc 3.3 instead of gcc 4.0 on Mac OS X 10.4.x: http://dunck.us/anabasis/archives/2006/02/23/mysqldb-on-mac-os-x-104/ What does "gcc_select" say on your system? It should say version 4.0.1. If it says version 3.3, then you should select version 4 with "sudo gcc_select 4.0" I'm not sure whether the problem is that autoconf doesn't like gcc 3.3 on Tiger, or maybe it's perl. Maybe you'll need to rebuild perl after fixing the compiler version.
2007/4/9, Ryan Schmidt <ryandesign@macports.org>:
On Apr 8, 2007, at 13:38, Dan Stowell wrote:
dyld: lazy symbol binding failed: Symbol not found: _sprintf$LDBLStub Referenced from: /opt/local/lib/perl5/5.8.8/darwin-2level/auto/Data/Dumper/ Dumper.bundle Expected in: dynamic lookup
It looks like someone else mentioned this problem in October 2006 but did not receive a response to their message and did not write back to say if or how they solved it:
http://lists.macosforge.org/pipermail/macports-users/2006-October/ 000334.html
Someone else encountered it in February 2006 on another list (there it was in relation to MySQL and Python), and it looks like the problem could be that you're using gcc 3.3 instead of gcc 4.0 on Mac OS X 10.4.x:
http://dunck.us/anabasis/archives/2006/02/23/mysqldb-on-mac-os-x-104/
What does "gcc_select" say on your system? It should say version 4.0.1. If it says version 3.3, then you should select version 4 with "sudo gcc_select 4.0"
I'm not sure whether the problem is that autoconf doesn't like gcc 3.3 on Tiger, or maybe it's perl. Maybe you'll need to rebuild perl after fixing the compiler version.
That does it! Thanks. For info: selected gcc was 3.3. After changing to 4.0, I tried cleaning and rebuilding just autoconf but it failed in the same way; after uninstalling/cleaning/installing perl5.8 I could install autoconf. Thanks both for your suggestions. And thanks for the gcc_select tip; I did wonder why my system kept using the older gcc (in other situations)... Dan
On Apr 9, 2007, at 04:21, Dan Stowell wrote:
2007/4/9, Ryan Schmidt:
On Apr 8, 2007, at 13:38, Dan Stowell wrote:
dyld: lazy symbol binding failed: Symbol not found: _sprintf $LDBLStub Referenced from: /opt/local/lib/perl5/5.8.8/darwin-2level/auto/Data/Dumper/ Dumper.bundle Expected in: dynamic lookup
It looks like someone else mentioned this problem in October 2006 but did not receive a response to their message and did not write back to say if or how they solved it:
http://lists.macosforge.org/pipermail/macports-users/2006-October/ 000334.html
Someone else encountered it in February 2006 on another list (there it was in relation to MySQL and Python), and it looks like the problem could be that you're using gcc 3.3 instead of gcc 4.0 on Mac OS X 10.4.x:
http://dunck.us/anabasis/archives/2006/02/23/mysqldb-on-mac-os-x-104/
What does "gcc_select" say on your system? It should say version 4.0.1. If it says version 3.3, then you should select version 4 with "sudo gcc_select 4.0"
I'm not sure whether the problem is that autoconf doesn't like gcc 3.3 on Tiger, or maybe it's perl. Maybe you'll need to rebuild perl after fixing the compiler version.
That does it! Thanks.
For info: selected gcc was 3.3. After changing to 4.0, I tried cleaning and rebuilding just autoconf but it failed in the same way; after uninstalling/cleaning/installing perl5.8 I could install autoconf.
Thanks both for your suggestions. And thanks for the gcc_select tip; I did wonder why my system kept using the older gcc (in other situations)...
So now we have the problem of solving this in general for all of MacPorts. - Some ports override CC, CPP and CXX to avoid this problem. See e.g. the darwin 8 platform section of the php5 portfile which says: platform darwin 8 { configure.env-append \ CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/ bin/g++-4.0 } Should MacPorts do this generally for all ports? Why leave it up to each individual port to discover bugs relating to using the wrong compiler? - Or, should port detect when the wrong gcc is gcc_selected, and simply refuse to run at all until the user corrects the problem? I've heard in other (non-MacPorts) situations how gcc_selecting earlier versions is really not recommended at all as it can break things; certainly here we see how this can be true.
participants (3)
-
Altoine Barker
-
Dan Stowell
-
Ryan Schmidt