-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 14/06/11 22:39, Jeff Squyres wrote:
> Chris -- can you try linking this simple app to see if
> it causes the linker error, and further try adding
> -lresolv to see if that fixes the error?
Yup - that does it and the error confirms the symbol
that is causing this odd behaviour in libpci.a.
$ gcc -o conftest conftest.c -lpci
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libpci.a(names-net.o):
In function `pci_id_net_lookup':
(.text+0x1bc): undefined reference to `__res_query'
collect2: ld returned 1 exit status
$
$ gcc -o conftest conftest.c -lpci -lresolv
$
Same behaviour on both RHEL 5.6 and CentOS 5.6 (as you'd
hope for!).
> FWIW, on my RHEL 5 machine (with only libpci.a), both
> link commands seem to work (but my libpci.a doesn't
> have a __res_query symbol).
Hmm, which release of RHEL5 is that ?
cheers!
Chris
- --
Christopher Samuel - Senior Systems Administrator
VLSCI - Victorian Life Sciences Computation Initiative
Email: [email protected] Phone: +61 (0)3 903 55545
http://www.vlsci.unimelb.edu.au/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk3395gACgkQO2KABBYQAh/NWgCfcDic6D8iQVchBisWB9X1u29t
oNcAn29l89HWJMYJMgcMBqADJ0mPxj2J
=EImL
-----END PGP SIGNATURE-----