Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 97548 - net-libs/libnet and sys-cluster/torque both own /usr/lib/libnet.a
Summary: net-libs/libnet and sys-cluster/torque both own /usr/lib/libnet.a
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-30 14:28 UTC by Pat Lougheed
Modified: 2010-09-10 19:00 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pat Lougheed 2005-06-30 14:28:42 UTC
libnet and torque both install an archive called libnet.a in /usr/lib.

# equery belongs /usr/lib/libnet.a
[ Searching for file(s) /usr/lib/libnet.a in *... ]
net-libs/libnet-1.1.2.1-r1 (/usr/lib/libnet.a)
sys-cluster/torque-1.2.0_p1 (/usr/lib/libnet.a)

Steps to reproduce:
1. emerge libnet
2. emerge torque
3. equery belongs /usr/lib/libnet.a

This is probably fundamentally an upstream problem, as calling something in a PBS system libnet seems kind of insane to me, but this should be checked for.

Note that libnet installs /usr/lib/libnet.so*, whereas torque does not. Any programs that later attempt to link against torque fail because collect picks up libnet.so from libnet before libnet.a from torque.

Also note that this issue likely affects sys-cluster/openpbs as well, but I haven't tested this.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-07-04 14:21:08 UTC
is the libnet.a from the same source code, or is it totally different?
Comment 2 Pat Lougheed 2005-07-04 14:34:14 UTC
Different source trees. All the net-libs/libnet source files for the library are prefixed libnet_, appearing 
different in readelf. There's also a lot more source files included in libnet than there are in the torque 
libnet.a.
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-07-04 15:57:38 UTC
looking at the libs of torque:
/usr/lib/libattr.a
/usr/lib/libcmds.a
/usr/lib/liblog.a
/usr/lib/libnet.a
/usr/lib/libpbs.a
/usr/lib/libsite.a
/usr/lib/pbs_sched.a

I see two possible options:
1. move them to /usr/lib/torque
2. rename them to libtorque_XXX or something similar.
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-07-04 16:59:43 UTC
ok after talking with patl directly, option #1 is best, as very few things link
against torque (and none of them are in the tree yet). They are only things like
alternative schedulers (eg maui) and interfaces for PBS.
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-07-04 18:12:02 UTC
fixed in cvs now, using /usr/$libdir/torque.