Re: [netatalk-admins] Error Building pre-asun2.1.4-36a


Subject: Re: [netatalk-admins] Error Building pre-asun2.1.4-36a
From: davids@fruitfly.bdgp.berkeley.edu
Date: Thu Dec 09 1999 - 18:55:07 EST


On 9 Dec, Marc Matteo wrote:
>> Lets see, on my Debian system:
>>
>> flyme 514% nm --dynamic /lib/libnss_nis.so.2 | grep yp_get_default_domain
>> U yp_get_default_domain
>
> Hmmm, I get the same thing on a RH 6.1 system when I do that to the
> libwrap.a lib. yet I get the same errors.
>

Right. The 'nm' command is just to show you which library the
'yp_get_default_domain' function lives in, '/lib/libnss_nis.so.2' on my
system. If you're going going to link an application against
'libwrap.a', you'll get an unresolved symbol error unless you also link
against 'libnss_nis.so.2'. Or, if you're not using 'nis', you could
re-build 'libwrap.a' so it doesn't link against 'libnss_nis.so.2'.

David S.

> Marc Matteo
> Technical Leader, sacbee.com
> http://www.sacbee.com
>
> ----- Original Message -----
> From: <davids@fruitfly.bdgp.berkeley.edu>
> To: <ron@pageworks.com>
> Cc: <amlai@columbia.edu>; <netatalk-admins@umich.edu>
> Sent: Thursday, December 09, 1999 12:48 PM
> Subject: Re: [netatalk-admins] Error Building pre-asun2.1.4-36a
>
>
>> On 9 Dec, Ron Creamer wrote:
>> > I'm trying to compile.. on my stock Red Hat 6.1 (kernel 2.2.12-20smp)
> But I
>> > get a fatal error at the end:
>> >
>> > /usr/lib/libwrap.a(hosts_access.o): In function `host_match':
>> > hosts_access.o(.text+0x400): undefined reference to
> `yp_get_default_domain'
>> > collect2: ld returned 1 exit status
>> >
>> > It sounds like some sort of NIS/YP problem. I went back through my log
> of
>> > messages and seem to have remembered this problem before, but I couldn't
> find
>> > the solution.
>> >
>> > Any clues/fixes? Thanks
>> >
>>
>> Lets see, on my Debian system:
>>
>> flyme 514% nm --dynamic /lib/libnss_nis.so.2 | grep yp_get_default_domain
>> U yp_get_default_domain
>>
>> Try adding '-lnss_nis' to your LDFLAGS.
>>
>> David S.
>>
>> > -Ron
>> >
>> >
>> >
>> >
>>
>>
>



This archive was generated by hypermail 2b28 : Sat Dec 18 1999 - 16:17:33 EST