This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
redefinition of ip_mreq
- From: ams at kemisten dot nu (Alfred M. Szmidt)
- To: libc-alpha at sources dot redhat dot com
- Date: Tue, 10 Aug 2004 23:59:02 +0200 (CEST)
- Subject: redefinition of ip_mreq
The following happens when you compile glibc for GNU/Hurd.
gcc hurdioctl.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -g -Wno-parentheses -mpreferred-stack-boundary=2 -I../include -I. -I/ams/libc/libc.obj/hurd -I.. -I../libio -I../hurd -I/ams/libc/libc.obj/hurd/ -I../mach -I/ams/libc/libc.obj/mach/ -I/ams/libc/libc.obj -I../sysdeps/i386/elf -I../sysdeps/mach/hurd/i386 -I../sysdeps/mach/hurd -I../sysdeps/gnu -I../sysdeps/unix/bsd/bsd4.4 -I../sysdeps/unix/mman -I../sysdeps/mach/i386 -I../sysdeps/mach -I../sysdeps/i386/fpu -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/unix/bsd -I../sysdeps/unix/common -I../sysdeps/unix/inet -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -D_LIBC_REENTRANT -include ../include/libc-symbols.h -o /ams/libc/libc.obj/hurd/hurdioctl.o -MD -MP -MF /ams/libc/libc.obj/hurd/hurdioctl.o.dt -MT /ams/libc/libc.obj/hurd/hurdioctl.o
In file included from ../inet/netinet/in.h:345,
from ../include/netinet/in.h:3,
from hurdioctl.c:306:
../sysdeps/generic/bits/in.h:53: error: redefinition of `struct ip_mreq'
make[2]: *** [/ams/libc/libc.obj/hurd/hurdioctl.o] Error 1
2004-08-10 Alfred M. Szmidt <ams@kemisten.nu>
* sysdeps/generic/bits/in.h (struct ip_mreq): Remove definition.
Index: sysdeps/generic/bits/in.h
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/generic/bits/in.h,v
retrieving revision 1.7
diff -u -r1.7 in.h
--- sysdeps/generic/bits/in.h 26 May 2004 19:21:39 -0000 1.7
+++ sysdeps/generic/bits/in.h 10 Aug 2004 21:54:51 -0000
@@ -48,13 +48,6 @@
char ip_opts[40]; /* Actually variable in size. */
};
-/* Structure used for IP_ADD_MEMBERSHIP and IP_DROP_MEMBERSHIP. */
-struct ip_mreq
- {
- struct in_addr imr_multiaddr; /* IP multicast address of group */
- struct in_addr imr_interface; /* local IP address of interface */
- };
-
/* IPV6 socket options. */
#define IPV6_ADDRFORM 1
#define IPV6_RXINFO 2