Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96653 - linker problems with gnupg-1.4.1-r1
Summary: linker problems with gnupg-1.4.1-r1
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Other
: High normal
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-20 18:23 UTC by Marius Mauch (RETIRED)
Modified: 2005-08-08 14:15 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marius Mauch (RETIRED) gentoo-dev 2005-06-20 18:23:59 UTC
Makefile bug in gnupg-1.4.1-r1:

x86_64-pc-linux-gnu-gcc  -march=athlon64 -O2 -pipe -frename-registers -ftracer -fweb -Wall  -Wl,-z,now -L/usr/lib -o bftest  bftest.o ../cipher/libcipher.a ../mpi/libmpi.a ../util/libutil.a        -lreadline 
x86_64-pc-linux-gnu-gcc  -march=athlon64 -O2 -pipe -frename-registers -ftracer -fweb -Wall  -Wl,-z,now -L/usr/lib -o clean-sat  clean-sat.o  
../cipher/libcipher.a(idea-stub.o): In function `idea_get_info':
idea-stub.c:(.text+0x73): undefined reference to `dlopen'
idea-stub.c:(.text+0x8c): undefined reference to `dlsym'
idea-stub.c:(.text+0x94): undefined reference to `dlerror'
idea-stub.c:(.text+0xa2): undefined reference to `dlerror'
idea-stub.c:(.text+0xc8): undefined reference to `dlclose'
idea-stub.c:(.text+0x199): undefined reference to `dlsym'
idea-stub.c:(.text+0x1a1): undefined reference to `dlerror'
idea-stub.c:(.text+0x1d5): undefined reference to `dlclose'
idea-stub.c:(.text+0x1de): undefined reference to `dlerror'
collect2: ld returned 1 exit status
make[2]: *** [bftest] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/gnupg-1.4.1-r1/work/gnupg-1.4.1/tools'

It tries to use functions from libdl but doesn't link to it (no -ldl). When setting LDFLAGS="-ldl" it builds just fine, but of course that should only be set for the relevant targets which I haven't tracked down, so no patch from me, I'm sure you can handle that ;)
Comment 1 Stian Skjelstad 2005-06-27 05:17:58 UTC
configure should check for dlopen in -lc and then -ldl
Comment 2 Rouslan Solomakhin 2005-07-08 09:25:00 UTC
Can you atach you "emerge --info", please?
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-08-08 07:04:41 UTC
No response from user...
Comment 4 Daniel Black (RETIRED) gentoo-dev 2005-08-08 14:15:32 UTC
I was looking at this the other day and there seemed to be some check for the  
dl libraries in the configure script of gnupg-1.9.18. 
 
I'm also confused as to why so few people are affected by this.