pkgsrc-Users archive

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

Re: Problems Building net/net-snmp in pkgsrc - need help please



> Can you grep the *.la files in /usr/lib and ${LOCALBASE}/lib for
> "/usr/lib/libbeecrypt.la"?  Sometimes, those references mistakenly
> get embedded in other *.la files, which usually doesn't break the
> original package that installed those *.la files, but breaks building
> dependent packages.

OK, I did this***, and in /usr/lib/*.la I see the following references to
libbeecrypt:

galaxy 0 barch% cd /usr/lib
/users/tnoell/barch
galaxy 0 lib% grep beecrypt *.la
/usr/lib
librpmbuild.la:dependency_libs='
-L/usr/src/build/588060-i386/install/usr/lib -L/usr/lib /usr/lib/librpm.la
-L/usr/local/lib /usr/lib/librpmdb.la /usr/lib/libpopt.la
/usr/lib/librpmio.la /usr/lib/libbeecrypt.la -lrt -lpthread -lz -lbz2
-lelf'
librpmdb.la:dependency_libs=' -L/usr/src/build/588060-i386/install/usr/lib
-L/usr/lib /usr/lib/librpmio.la /usr/lib/libbeecrypt.la -lrt -lpthread
-L/usr/local/lib -lz -lbz2 /usr/lib/libpopt.la -lelf'
librpmio.la:dependency_libs=' -L/usr/src/build/588060-i386/install/usr/lib
-L/usr/lib /usr/lib/libbeecrypt.la -lrt -lpthread -L/usr/local/lib -lz
-lbz2'
librpm.la:dependency_libs=' -L/usr/src/build/588060-i386/install/usr/lib
-L/usr/lib /usr/lib/librpmdb.la -L/usr/local/lib -lelf /usr/lib/librpmio.la
/usr/lib/libbeecrypt.la -lrt -lpthread -lz -lbz2 /usr/lib/libpopt.la'

***(the only *.la files in my pkgsrc $PREFIX/lib dir that reference
beecrypt are beecryt's files themselves).

I also found some discussions on the net-snmp users list
(http://sourceforge.net/mailarchive/forum.php?forum_id=4959
and search on beecrypt)

There it is said that the net-snmp/hsot/hr_swinst module needs librpmio,
which on my system is one of the ones that references beecrypt.
In those users' worlds, the standard answer appears to be "install the
beecrypt-devel rpm" and the problem goes away.

In the pkgsrc world, I have already installed security/beecrypt, and
libbeecrypt.la is happily sitting in my pkgsrc $PREFIX/lib/libbeecrypt.la
(see my earlier note).

I'm pretty sure that libtool is looking at ldd output on
/usr/lib/librpmio.* and adding /usr/lib/libbeecrypt.* to the list of
depended on libraries.
So how do I get libtool to find it in my pkgsrc $PREFIX/lib dir?  (I threw
the -L${PREFIX}/lib flag, but libtool doesn't seem to be applying that to
libs sucked in by walking ldd and finding "/usr/lib/libbeecrypt.*"

Thinking I could set LD_LIBRARY_PATH to my pkgsrc $PREFIX/lib dir, I did
this and tried again.  Unfortunately, libtool still wants libbeecrypt to
come from /usr/lib.

Any more ideas?  Surely there is a way to get libtool to resolve discovered
dynamic library dependencies against the -L path or LD_LIBRARY_PATH?

Thx in advance for continued ideas,
Tim Noell
Lexmark International, Inc.




Home | Main Index | Thread Index | Old Index