Jan Prikryl <[EMAIL PROTECTED]> writes:

>> Jan Prikryl <[EMAIL PROTECTED]> writes:
>> 
>> > It seems that -lsocket is not found as it requires -lnsl for
>> > linking. -lnsl is not detected as it does not contain
>> > `gethostbyname()' function.
>> 
>> That's weird.  What does libnsl contain if not gethostbyname()?

The config.log answers my question -- quite a bunch of stuff.  What I
meant to say: it is a pretty strange "Name Server Lookup" library
which doesn't contain gethostbyname(), but then again, it's a strange
world.

What I'll do for 1.7.1 is, replace `gethostbyname' with `inet_ntoa',
which should cover both Solaris and the system Andre is using.

>> Jan, you must be confusing something here.  gethostname() only gets
>> the local host name, and is just a wrapper for the appropriate
>> uname() or sysinfo() call.  It has nothing to do with name server
>> lookups, which is what libnsl is supposed to do.
> 
> Probably, but are you sure that this is true on _all_ systems?

I'm not.  :-(  Sorry for the "confusing" remark.

>> Perhaps we really should try to write a libtool-based macro named
>> WGET_CHECK_EXTERNAL_LIB.
> 
> Perhaps it would be more portable then.

In the meantime, this [adding -Wl, to linker flags] has been solved
very elegantly by Maciej Rozycki.

Reply via email to