-----BEGIN PGP SIGNED MESSAGE-----
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
> 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 ?
Christopher Samuel - Senior Systems Administrator
VLSCI - Victorian Life Sciences Computation Initiative
Email: samuel_at_[hidden] Phone: +61 (0)3 903 55545
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
-----END PGP SIGNATURE-----