Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 386873

Summary: app-portage/autodep-0.2 Enhancements for ebuild and buildsystem
Product: Gentoo Linux Reporter: Justin Lecher (RETIRED) <jlec>
Component: Current packagesAssignee: Jesus Rivero (RETIRED) <neurogeek>
Status: RESOLVED OBSOLETE    
Severity: normal CC: nikoli, rhill
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: 0001-bgo-386873.patch
build.log

Description Justin Lecher (RETIRED) gentoo-dev 2011-10-12 07:50:33 UTC
Please include this. Patch attached
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2011-10-12 07:53:05 UTC
Created attachment 289635 [details]
0001-bgo-386873.patch

bgo-386873.patch
Comment 2 bay 2011-10-20 11:02:15 UTC
Thank you for your patch!

Unfortunately, program fails to link properly with --as-needed switch.

$ ld -O1  -shared -o file_hook.so -ldl -lc file_hook.o
$ ldd file_hook.so 
        linux-vdso.so.1 =>  (0x00007fff747ff000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007f2ceb1ff000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f2ceae73000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f2ceb63e000)
$ ld -O1 --as-needed -shared -o file_hook.so -ldl -lc file_hook.o
$ ldd file_hook.so 
        statically linked

This causes:
symbol lookup error: /usr/lib/file_hook.so: undefined symbol: dlsym

when library is loaded using LD_PRELOAD

I am trying to solve this situation.
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2011-10-20 11:55:52 UTC
$ ldd -r /usr/lib64/file_hook.so
	linux-vdso.so.1 =>  (0x00007fffe33ff000)
	libdl.so.2 => /lib64/libdl.so.2 (0x00002ae4a8854000)
	libc.so.6 => /lib64/libc.so.6 (0x00002ae4a8a58000)
	/lib64/ld-linux-x86-64.so.2 (0x00002ae4a8631000)
Comment 4 Justin Lecher (RETIRED) gentoo-dev 2011-10-20 11:58:29 UTC
Created attachment 290355 [details]
build.log
Comment 5 Pacho Ramos gentoo-dev 2016-08-10 18:38:16 UTC
this is not the tree