Bug#520948: libtool should pick .la file from build directory over the one in /usr/lib

2009-03-25 Thread Ralf Wildenhues
* Török Edwin wrote on Wed, Mar 25, 2009 at 09:52:36AM CET: > On 2009-03-24 23:34, Ralf Wildenhues wrote: > > Please show "objdump -p clamscan/.libs/lt-clamscan", it should have a > > DT_RPATH entry for /home/edwin/clam/git/builds/default/libclamav/.libs. > > It does have a RPATH entry: > > Dynam

Bug#520948: libtool should pick .la file from build directory over the one in /usr/lib

2009-03-25 Thread Török Edwin
On 2009-03-24 23:34, Ralf Wildenhues wrote: > * Török Edwin wrote on Tue, Mar 24, 2009 at 08:08:20PM CET: > >> Current directory = /home/edwin/clam/git/builds/default >> clamscan/clamscan = libtool wrapper script >> $ ldd clamscan/.libs/lt-clamscan >> > > Please show "objdump -p clamscan/.

Bug#520948: libtool should pick .la file from build directory over the one in /usr/lib

2009-03-24 Thread Ralf Wildenhues
* Török Edwin wrote on Tue, Mar 24, 2009 at 08:08:20PM CET: > Current directory = /home/edwin/clam/git/builds/default > clamscan/clamscan = libtool wrapper script > $ ldd clamscan/.libs/lt-clamscan Please show "objdump -p clamscan/.libs/lt-clamscan", it should have a DT_RPATH entry for /home/edwi

Bug#520948: libtool should pick .la file from build directory over the one in /usr/lib

2009-03-24 Thread Török Edwin
On 2009-03-24 20:35, Ralf Wildenhues wrote: >> I just straced the program when it works, and it picks the .so from >> .libs, not from '.', so it definetely already >> searches the place I want, its just that it searches it after /usr/lib: >> >> open("/home/edwin/.local/lib/libclamunrar_iface.la",

Bug#520948: libtool should pick .la file from build directory over the one in /usr/lib

2009-03-24 Thread Ralf Wildenhues
* Török Edwin wrote on Tue, Mar 24, 2009 at 09:27:42AM CET: > On 2009-03-24 00:14, Ralf Wildenhues wrote: > > Point is, ltdl cannot know which directories to search, and it currently > > does not search '.' by default. You can either use > > libtool --mode=execute -dlopen module-in-pwd.la ... >

Bug#520948: libtool should pick .la file from build directory over the one in /usr/lib

2009-03-24 Thread Török Edwin
On 2009-03-24 00:14, Ralf Wildenhues wrote: > * Kurt Roeckx wrote on Mon, Mar 23, 2009 at 11:07:00PM CET: > >> On Mon, Mar 23, 2009 at 11:03:59PM +0200, T?r?k Edwin wrote: >> >>> Agreed that it can't know all places, I am just asking that is searches >>> build location in preference of /usr

Bug#520948: libtool should pick .la file from build directory over the one in /usr/lib

2009-03-23 Thread Ralf Wildenhues
* Kurt Roeckx wrote on Mon, Mar 23, 2009 at 11:07:00PM CET: > On Mon, Mar 23, 2009 at 11:03:59PM +0200, T?r?k Edwin wrote: > > > > Agreed that it can't know all places, I am just asking that is searches > > build location in preference of /usr/lib. > > If I rm libclamunrar* from /usr/lib and /usr/

Bug#520948: libtool should pick .la file from build directory over the one in /usr/lib

2009-03-23 Thread Kurt Roeckx
On Mon, Mar 23, 2009 at 11:03:59PM +0200, T?r?k Edwin wrote: > On 2009-03-23 23:00, Ralf Wildenhues wrote: > > Hello Török, > > > > * Török Edwin wrote on Mon, Mar 23, 2009 at 09:48:33PM CET: > > > >> When using shared libraries, the libtool wrapper scripts correctly set > >> the environment so

Bug#520948: libtool should pick .la file from build directory over the one in /usr/lib

2009-03-23 Thread Ralf Wildenhues
Hello Török, * Török Edwin wrote on Mon, Mar 23, 2009 at 09:48:33PM CET: > > When using shared libraries, the libtool wrapper scripts correctly set > the environment so that the shared library from the build directory is > used (and not the one from the system). All good. > > However when using

Bug#520948: libtool should pick .la file from build directory over the one in /usr/lib

2009-03-23 Thread Török Edwin
On 2009-03-23 23:00, Ralf Wildenhues wrote: > Hello Török, > > * Török Edwin wrote on Mon, Mar 23, 2009 at 09:48:33PM CET: > >> When using shared libraries, the libtool wrapper scripts correctly set >> the environment so that the shared library from the build directory is >> used (and not the on

Bug#520948: libtool should pick .la file from build directory over the one in /usr/lib

2009-03-23 Thread Török Edwin
Package: libtool Version: 2.2.6a-1 Severity: normal When using shared libraries, the libtool wrapper scripts correctly set the environment so that the shared library from the build directory is used (and not the one from the system). All good. However when using ltdl to dlopen a shared library,