Subject: Re: undefined reference to `_gethostent'
To: Konstantin KABASSANOV <Konstantin.Kabassanov@lip6.fr>
From: James Chacon <jmc@NetBSD.org>
List: current-users
Date: 08/17/2004 18:10:14
On Tue, Aug 17, 2004 at 06:53:10PM +0200, Konstantin KABASSANOV wrote:
> Hello,
>
> I have the following error message with this morning cvs code:
cvs update in lib/libc (need a new namespace.h) and this will work for you
James
>
> # link cu/cu
> /usr/tools/bin/i386--netbsdelf-gcc -Wl,-nostdlib -o cu
> -Wl,-rpath-link,/usr/NetBSD-new-build/lib:/usr/NetBSD-new-build/usr/lib
> -L/usr/NetBSD-new-build/lib -B/usr/NetBSD-new-build/usr/lib/
> -B/usr/NetBSD-new-build/usr/lib/ cu.o prot.o log.o chat.o conn.o copy.o
> /usr/obj/gnu/libexec/uucp/libunix/libunix.a
> /usr/obj/gnu/libexec/uucp/libuuconf/libuuconf.a
> /usr/obj/gnu/libexec/uucp/libuucp/libuucp.a
> -L/usr/NetBSD-new-build/usr/lib -L/usr/NetBSD-new-build/usr/lib
> /usr/NetBSD-new-build/lib/libc.so: undefined reference to `_gethostent'
> collect2: ld returned 1 exit status
>
>
> I saw this recent change:
>
> "Restore gethostent() as a supported interface. Yes, it maybe obsolete
> but it is specified by IEEE Std 1003.1, 2004 Edition (POSIX) and
> the X/Open standards (Issue 6 and XNS 5.2)."
>
> Is it coming from there? I've already tried to recompile everything from
> scratch and the problem persists...
>
> It is strange to have "-L/usr/NetBSD-new-build/usr/lib
> -L/usr/NetBSD-new-build/usr/lib", isn't it?
>
> Thanks.
>
> Konstantin
>
>
> _________________________________
>
> Konstantin K. KABASSANOV
>
> LIP6/CNRS
> 8, rue du Capitaine Scott
> 75015 Paris, France
>
> Phone: +33 (0) 1 44 27 71 26
> Fax: +33 (0) 1 44 27 74 95
>
> E-mail: konstantin@kabassanov.com
> Web: http://www.kabassanov.com
> _________________________________
>
>
> IMPORTANT! If you have tried to reply to this mail and you received a
> stupid message, announcing that the mail had been rejected as spam,
> please, resend your reply to the address above.
>