Discussion:
libresolv.a not found
(too old to reply)
Chalawal Maliwan
2004-01-06 15:11:31 UTC
Permalink
I tried to compile my simple code and found that the "libresolv.a" is
missing. Does it come with the installation CD or I need to install
"BIND" to my osr504 system.

Below is what's happening,

# cc -o hlookup hlookup.c -lnsl -lsocket -lresolv
i386ld libsocket.a: can't find library libresolv.a


Thanks a lot for your response,

Chalawal
Jean-Pierre Radley
2004-01-06 16:12:11 UTC
Permalink
Chalawal Maliwan typed (on Tue, Jan 06, 2004 at 07:11:31AM -0800):
| I tried to compile my simple code and found that the "libresolv.a" is
| missing. Does it come with the installation CD or I need to install
| "BIND" to my osr504 system.
|
| Below is what's happening,
|
| # cc -o hlookup hlookup.c -lnsl -lsocket -lresolv
| i386ld libsocket.a: can't find library libresolv.a

There was no separate resolver library for OSR 5.0.4, so just drop the
-lresolv from your compile command.
--
JP
Chalawal Maliwan
2004-01-07 16:07:01 UTC
Permalink
Post by Jean-Pierre Radley
There was no separate resolver library for OSR 5.0.4, so just drop the
-lresolv from your compile command.
Thanks a lot JP, I thought I tried that already. It compiles now.

Chalawal

Loading...