[Xorp-users] [PATCH]: prepend project libs search path instead of appending list

J.T. Conklin jtc at acorntoolworks.com
Sat Sep 26 16:25:01 PDT 2009


"XORP at sipxx.com" <karl at sipxx.com> writes:
> As discussed in another thread, XORP builds its components by
> *appending* the local components' link library search paths to the
> system list. This caused false linking against identically named
> libraries in the system wide paths (e.g. libospf).

I'm not sure this is the way to go.

The root cause of the problem is that there are identically named
libraries in the system wide paths in the first place. If we build
XORP with shared libraries and prefix=/usr/local (or whatever path
prefix has that identically named library), we're going to blow it
away when we install our version.  

This shouldn't happen now, as our default prefix is /usr/local/xorp;
but there is a desire to move to a more BSD heir(7), Linux LSB, GNU
standard, etc. file layout.  When that's done, XORP may very well be
installed in the same directory as other packages.

Rather than tweak LIBPATH and link order, which seems fragile, I think
we may want to consider ensuring that all XORP libraries (and perhaps 
even executables) have a "xorp_" prefix.

    --jtc

-- 
J.T. Conklin



More information about the Xorp-users mailing list