[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Add struct ip_mreqn in the glue headers

From: Flávio Cruz
Subject: Re: [PATCH] Add struct ip_mreqn in the glue headers
Date: Fri, 9 Sep 2022 00:17:03 -0400

On Thu, Sep 8, 2022 at 2:08 AM Samuel Thibault <samuel.thibault@gnu.org> wrote:
Flavio Cruz, le mer. 07 sept. 2022 22:58:53 -0400, a ecrit:
> When I compile from master, I get the following error:
> gcc -std=gnu99 -fgnu89-inline -Wall -g -O3 -fno-strict-aliasing  -g -O2 -fno-strict-aliasing -I.  -I..  -I../include -I../include -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64  -DPACKAGE_NAME=\"GNU\ Hurd\" -DPACKAGE_TARNAME=\"hurd\" -DPACKAGE_VERSION=\"0.9\" -DPACKAGE_STRING=\"GNU\ Hurd\ 0.9\" -DPACKAGE_BUGREPORT=\"bug-hurd@gnu.org\" -DPACKAGE_URL=\"http://www.gnu.org/software/hurd/\" -DHAVE_MIG_RETCODE=1 -DHAVE_FILE_EXEC_PATHS=1 -DHAVE_EXEC_EXEC_PATHS=1 -DHAVE__HURD_EXEC_PATHS=1 -DUTIME_NOW=-1 -DUTIME_OMIT=-2 -DHAVE_LIBCRYPT=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_PARTED_PARTED_H=1 -DHAVE_LIBPARTED=1 -DHAVE_LIBUUID=1 -DHAVE_LIBDL=1 -DYYTEXT_POINTER=1 -DX11_PREFIX=\"\" -DHAVE_STRUCT_THREAD_SCHED_INFO_LAST_PROCESSOR=1 -imacros ./config.h -I./glue-include -I./linux-src/include  -c -o devinet.o ./linux-src/net/ipv4/devinet.c
> In file included from ./linux-src/net/ipv4/devinet.c:49:
> ./linux-src/include/linux/igmp.h:88:19: error: field 'multi' has incomplete type
>    88 |  struct ip_mreqn  multi;
>       |                   ^~~~~
> <builtin>: recipe for target 'devinet.o' failed
> This adds the definition to the glue header file.

We removed it from there because it was added in glibc master, and in
debian's libc0.3-dev (>= 2.34-4).

Thanks, it seems like I forgot to update my glibc to master. Everything works fine now.
Side question: pfinet includes glue header files in pfinet/glue-includes but a linux version of those headers is also available in linux-src/include/. The duplicated linux headers are never used since CPPFLAGS = -I$(srcdir)/glue-include $(srcdir)/linux-src/include. Is there a reason to keep those linux headers around?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]