iputils HEAD + 2.4

Jakub Bogusz qboosh w pld-linux.org
Wto, 20 Sty 2004, 16:19:58 CET


On Tue, Jan 20, 2004 at 04:11:00PM +0100, Paweł Sikora wrote:
> On Tue, 20 Jan 2004, Arkadiusz Patyk wrote:
> > Paweł Sikora (pluto w ds14.agh.edu.pl) wrote:
> > > On Tue, 20 Jan 2004, Arkadiusz Patyk wrote:
> > >
> > > > Witam
> > > >
> > > > ping_common.o ping_common.c
> > > > gcc -Os -march=i386 -mcpu=i386 -falign-loops=0 -falign-jumps=0
> > > > -falign-functions=0 -mno-align-double -D_GN
> > > > U_SOURCE -DHAVE_SIN6_SCOPEID=1 -Iinclude-glibc -include
> > > > include-glibc/glibc-bugs.h -I../include      clock
> > > > diff.c   -o clockdiff
> > > > In file included from include-glibc/netinet/in.h:7,
> > > >                  from /usr/include/netdb.h:28,
> > > >                  from tracepath.c:19:
> > > > /usr/include/linux/in.h:144: error: field `gr_group' has incomplete type
> > > > /usr/include/linux/in.h:150: error: field `gsr_group' has incomplete
> > > > type
> > > > /usr/include/linux/in.h:151: error: field `gsr_source' has incomplete
> > > > type
> > > > /usr/include/linux/in.h:157: error: field `gf_group' has incomplete type
> > > > /usr/include/linux/in.h:160: error: field `gf_slist' has incomplete type
> > > > make: *** [tracepath] Error 1
> > > > make: *** Waiting for unfinished jobs....
> > > > In file included from include-glibc/netinet/in.h:7,
> > > >                  from /usr/include/netdb.h:28,
> > > >                  from ping_common.h:18,
> > > >                  from ping.c:61:
> > > > /usr/include/linux/in.h:144: error: field `gr_group' has incomplete type
> > > > /usr/include/linux/in.h:150: error: field `gsr_group' has incomplete
> > > > type
> > > > /usr/include/linux/in.h:151: error: field `gsr_source' has incomplete
> > > > type
> > > > /usr/include/linux/in.h:157: error: field `gf_group' has incomplete type
> > > > /usr/include/linux/in.h:160: error: field `gf_slist' has incomplete type
> > > > make: *** [ping.o] Error 1

To na jakimś uClibcu?
userlandowe <linux/in.h> bierze struct sockaddr_storage z <sys/socket.h>...
(unikając konfiktów deklaracji między <linux/socket.h> a <sys/socket.h>)

> > czyli glibc-kernel-headers do poprawki ?
> 
> pewnie tak :)
> wezmy np. inny kwiatek - pakiet net-tools
> patch5: x25_address_is_struct
> owszem ale tylko w gkh jest struct!
> w naglowkach kernela jest typdef struct {...} x25_address i latka jest zbedna.
> pewnie takich kwiatkow mozna by znalezc wiecej.

W nagłówkach _aktualnego_ jądra jest tylko struct - od ponad roku:

        Age               Author            Annotate   Comments
                                                       [X25] remove unneeded typedef x25_address
       16 months   acme w conectiva.com.br       1.2
                                                       Typedefs can't be forward declared, so we prefer structs, that can.

-- 
Jakub Bogusz    http://cyber.cs.net.pl/~qboosh/



Więcej informacji o liście dyskusyjnej pld-devel-pl