Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 157188 - dev-scheme/scheme48:-1.3-r1 breaks with --as-needed [patch]
Summary: dev-scheme/scheme48:-1.3-r1 breaks with --as-needed [patch]
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Luis Araujo (RETIRED)
Depends on:
Blocks: as-needed
  Show dependency tree
Reported: 2006-12-05 01:32 UTC by Mike Mattie
Modified: 2007-01-06 12:36 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Mike Mattie 2006-12-05 01:32:13 UTC
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)

---	2006-12-05 10:24:32.000000000 +0100
+++	2006-12-05 10:26:20.000000000 +0100
@@ -222,8 +222,8 @@
 	$(CC) $(LDFLAGS) $(CFLAGS) -o $@ c/main.o $(OBJS) $(UNIX_OBJS)	\
 		/tmp/s48_external_$$$$.c				\
-		$(LIBOBJS) $(LIBS)					\
+		$(LIBOBJS) 				\
 	rm -f /tmp/s48_external_$$$$.c
 script-interpreter: c/script-interpreter.o
Comment 1 Marijn Schouten (RETIRED) gentoo-dev 2006-12-05 08:39:04 UTC
how can I reproduce?
Comment 2 Mike Mattie 2006-12-12 08:57:57 UTC
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.
Comment 3 Marijn Schouten (RETIRED) gentoo-dev 2006-12-12 09:03:02 UTC
Comment 4 Marijn Schouten (RETIRED) gentoo-dev 2006-12-12 09:09:15 UTC
what version of binutils Mike?
Comment 5 Mike Mattie 2007-01-06 06:41:13 UTC
(In reply to comment #4)
> what version of binutils Mike?

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/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.19
CFLAGS="-pipe -Os -march=athlon-xp"
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"
FEATURES="autoconfig distlocks doc installsources metadata-transfer parallel-fetch sandbox sfperms splitdebug strict userfetch userpriv"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
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'"

sorry it took so long to reply. I have not been receiving the usual mails from bugzilla for a few days now.
Comment 6 Charlie Shepherd (RETIRED) gentoo-dev 2007-01-06 12:36:34 UTC
Thanks, fixed in CVS.