Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 386873 - app-portage/autodep-0.2 Enhancements for ebuild and buildsystem
Summary: app-portage/autodep-0.2 Enhancements for ebuild and buildsystem
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jesus Rivero (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-12 07:50 UTC by Justin Lecher (RETIRED)
Modified: 2016-08-10 18:38 UTC (History)
2 users (show)

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


Attachments
0001-bgo-386873.patch (0001-bgo-386873.patch,4.76 KB, text/plain)
2011-10-12 07:53 UTC, Justin Lecher (RETIRED)
Details
build.log (autodep-0.2:20111012-102751.log,75.35 KB, text/plain)
2011-10-20 11:58 UTC, Justin Lecher (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
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