ynlink.o c/unix/sysexits.o c/unix/dynamo.o c/fake/glue.o c/srfi-27.o && \ rm -f /tmp/s48_external_$$.c c/unix/dynlink.o: In function `shared_object_dlclose': dynlink.c:(.text+0x96): undefined reference to `dlclose' dynlink.c:(.text+0xa2): undefined reference to `dlerror' c/unix/dynlink.o: In function `shared_object_dlsym': dynlink.c:(.text+0xd8): undefined reference to `dlsym' dynlink.c:(.text+0xe6): undefined reference to `dlerror' c/unix/dynlink.o: In function `shared_object_dlopen': dynlink.c:(.text+0x17f): undefined reference to `dlopen' dynlink.c:(.text+0x18d): undefined reference to `dlerror' c/unix/dynamo.o: In function `s48_dynamic_load': dynamo.c:(.text+0x8f): undefined reference to `dlopen' dynamo.c:(.text+0xc6): undefined reference to `dlclose' dynamo.c:(.text+0x106): undefined reference to `dlclose' dynamo.c:(.text+0x110): undefined reference to `dlopen' dynamo.c:(.text+0x138): undefined reference to `dlerror' c/unix/dynamo.o: In function `s48_external_lookup': dynamo.c:(.text+0x1bb): undefined reference to `dlsym' dynamo.c:(.text+0x1c2): undefined reference to `dlerror' dynamo.c:(.text+0x1e3): undefined reference to `dlopen' dynamo.c:(.text+0x1ed): undefined reference to `dlerror' dynamo.c:(.text+0x202): undefined reference to `dlsym' dynamo.c:(.text+0x209): undefined reference to `dlerror' collect2: ld returned 1 exit status make: *** [scheme48vm] Error 1 patch created by drizztbsd: (thanks again) --- Makefile.in.old 2006-12-05 10:24:32.000000000 +0100 +++ Makefile.in 2006-12-05 10:26:20.000000000 +0100 @@ -222,8 +222,8 @@ $(EXTERNAL_INITIALIZERS) && \ $(CC) $(LDFLAGS) $(CFLAGS) -o $@ c/main.o $(OBJS) $(UNIX_OBJS) \ /tmp/s48_external_$$$$.c \ - $(LIBOBJS) $(LIBS) \ - $(EXTERNAL_OBJECTS) $(EXTERNAL_LD_FLAGS) && \ + $(LIBOBJS) \ + $(EXTERNAL_OBJECTS) $(EXTERNAL_LD_FLAGS) $(LIBS) && \ rm -f /tmp/s48_external_$$$$.c script-interpreter: c/script-interpreter.o
how can I reproduce?
my LDFLAGS will generate the compile failure. LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed" the --as-needed flag is what does it. the old order of libs before objects has to be reversed for --as-needed.
docs: http://www.gentoo.org/proj/en/qa/asneeded.xml
what version of binutils Mike?
(In reply to comment #4) > what version of binutils Mike? > 2.17.50.3 Portage 2.1.1-r2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r4, 2.6.19 i686) ================================================================= System uname: 2.6.19 i686 AMD Athlon(tm) XP 3000+ Gentoo Base System version 1.12.6 Last Sync: Fri, 05 Jan 2007 07:30:01 +0000 app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.3.7, 2.0.30 dev-lang/python: 2.3.5-r3, 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17.50.0.3 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.19 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-pipe -Os -march=athlon-xp" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-pipe -Os -march=athlon-xp" DISTDIR="/var/portage/distfiles" FEATURES="autoconfig distlocks doc installsources metadata-transfer parallel-fetch sandbox sfperms splitdebug strict userfetch userpriv" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed" PKGDIR="/var/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/var/portage" PORTDIR_OVERLAY="/usr/local/overlays/reforged" SYNC="rsync://rsync.gentoo.org/gentoo-portage" sorry it took so long to reply. I have not been receiving the usual mails from bugzilla for a few days now.
Thanks, fixed in CVS.