[parisc-linux] xfree86 4.2.1-9 build problem

John David Anglin dave@hiauly1.hia.nrc.ca
Mon, 11 Aug 2003 19:55:43 -0400 (EDT)


> Here is the linker path on gsyprf11:
> 
> SEARCH_DIR("/usr/hppa-linux/lib"); SEARCH_DIR("/usr/lib"); SEARCH_DIR("/usr/local/lib"); SEARCH_DIR("/lib");

This search path seems somewhat strange.  It appears debian used the
`--with-lib-path=dir1:dir2...  set default LIB_PATH' configure option
in building binutils.  I believe that the default binutils order would
be "/usr/local/lib", "/lib" and then "/usr/lib".

On the otherhand, ld.so has the default order "/usr/lib", then "/lib".
Don't know why the search order for the system directories in glibc
is opposite to binutils.

On gsyprf11, /etc/ld.so.conf contains:
/usr/X11R6/lib
/usr/lib/postfix

So, the dynamic loader will use the following path as the default search:
/usr/X11R6/lib:/usr/lib/postfix:/usr/lib:/lib

The dynamic loader doesn't search /usr/local/lib and it has a different
search order than ld.  Because /usr/local/lib is normally searched before
the system library directories, you have to be careful what you put there.

It would be nice if the linker and dynamic linker were consistent :)

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)