This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: solved -- if_indextoname missing in libc.so [linux]
- From: Ingo Krabbe <i dot krabbe at dokom dot net>
- To: libc-alpha at sources dot redhat dot com
- Date: Fri, 16 Aug 2002 09:43:24 +0200
- Subject: Re: solved -- if_indextoname missing in libc.so [linux]
- References: <20020814115223.GB29696@mail.dokom.net>
It seems that I've forgotten to mention, that this error occurred on
linux.
Meanwhile I solved the problem and it would be nice if someone could
check in the change into CVS:
The problem are missing functions in libc.so called:
if_indextoname, __GI_if_nametoindex and __GI_if_indextoname
The bug is that the function definitions live in
sysdeps/unix/sysv/linux/if_index.c and are stated to be
libc_hidden_def (if_nametoindex) and
libc_hidden_def (if_indextoname),
while the prototypes live in sysdeps/gnu/net/if.h without
libc_hidden_proto !
I copied the sysdeps/gnu/net/if.h into sysdeps/unix/sysv/linux/net/if.h
and addded the two lines
libc_hidden_proto (if_nametoindex) and
libc_hidden_proto (if_indextoname)
(around line 192ff.).
This works (:for:) now ...
BYE INGO
On Wed, Aug 14, 2002 at 01:52:23PM +0200, Ingo Krabbe wrote:
> Hi,
>
> when compiling CVS Head of glibc everything works fine until the new
> libc.so is used first, which happens when compiling "iconv/iconvconfig"
> the symbols if_indextoname, __GI_if_nametoindex and __GI_if_indextoname
> are missing. I think this is a configuration error since these symbols
> should either be created automatically or even exist in
> libc.a(if_indextoname).
>
> It may be an error but I tried to compile the libc in an extra
> libc-build directory.
>
> libc/ contains the Source
> libc-build/ here I build the glibc
>
> If this isn't valid I'll rapidly try to build in the sourcetree, but I
> think I've read something against that.
>
> BYE INGO
>
>