tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

library search path order


I'm attempting to use pkgsrc on some Redhat Linux machines at work
to keep up with recent releases of various programs (these are
production systems, the sysadmins prefer stability over features).
I'm able to bootstrap pkgsrc and build a bunch of packages, but they
are linked incorrectly any time an older version of a shared library
exists in the base system:

$ cd lang/python24
$ ldd work/Python-2.4.4/python => /usr/lib64/ 
(0x00000033ac000000) => /lib64/ (0x000000339a200000) => /lib64/ (0x0000003398e00000) => /home/nludban/_pkg2007Q4_glenn/lib/ 
(0x00002aaaaaaea000) => /lib64/ (0x00000033a7c00000) => /lib64/ (0x0000003399e00000) => /lib64/ (0x0000003399a00000)
        /lib64/ (0x0000003398a00000)
$ ./work/Python-2.4.4/python
Python 2.4.3 (#1, Dec 11 2006, 11:39:03) 
[GCC 4.1.1 20061130 (Red Hat 4.1.1-43)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

I'm guessing this is caused by the -L/usr/lib64 that's appearing
first in the linker flags:

===> Configuring for python24-2.4.4
checking LDSHARED... $(CC) -shared -L/usr/lib64 -Wl,-R/usr/lib64 

I've tried figuring out where these are initially configured but
got lost in the maze of wrapper scripts and pkgsrc makefiles.  Can
somebody please point me in the right direction?


Home | Main Index | Thread Index | Old Index