[openbeosnetteam] Re: libnet.so: uname()

  • From: Ingo Weinhold <bonefish@xxxxxxxxxxxxxxx>
  • To: openbeosnetteam@xxxxxxxxxxxxx
  • Date: Tue, 18 Jan 2005 23:36:32 +0100

On 2005-01-18 at 18:17:43 [+0100], Waldemar Kornewald wrote:
> Ingo Weinhold wrote:
> > I just realized that our libnet.so contains a uname(). Am I right that 
> > this
> > is only for compatibilty reasons when replacing the original libnet on an
> > R5 system? Can we simply leave out compat.c when BONE_COMPATIBLE is 
> > defined?
> Yes, please.

Mmh, I just tried that and the following problem occurs while linking:

objects/x86.R1/kits/network/libnet/getaddrinfo.o(.text+0x611): In function 
        : undefined reference to `_h_errnop'                                 
In function `getanswer':                                                     
                   : undefined reference to `_h_errnop'

_h_errnop() is defined in compat.c.
headers/posix/netdb.h defines h_errno to __h_errno(), but 
src/kits/network/libnet/headers/netdb.h (which is actually included by 
getaddrinfo.c) defines it to _h_errnop().

I'm sure you networking guys know why there's a second set of some headers 
and what should actually be used... :-P

CU, Ingo

Other related posts: