Summary: | net-misc/mrouted-3.9_beta3 does not build w/ sanitized linux headers | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Andrey Kolbasenko <av.kolbasenko> |
Component: | Current packages | Assignee: | Gentoo TreeCleaner Project <treecleaner> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dragonlinux, maintainer-needed, serpentf, steven_debock, xtaska |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | Vote | ||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 159304 |
Description
Andrey Kolbasenko
2007-04-03 17:22:43 UTC
I was able to reproduce this bug by upgrading linux-headers (virtual/os-headers) from 2.6.17-r2 to 2.6.20-r2 relevant emerge --info part with correct build: virtual/os-headers: 2.6.17-r2 relevant emerge --info part with failing build: virtual/os-headers: 2.6.20-r2 Upstream hasn't posed an update for over 2 years, I'm not sure if this package should be kept in the tree. I found same thing add #include <linux/types.h> to netinet/ip_mroute.h before #include "linux/mroute.h" or you can modify Makefile to add -I./ and mkdir linux cp /usr/include/linux/mroute.h linux modify mroute.h __u32 to unsigned int but I don't know how to modify ebuild. localhost mrouted-3.9beta3+IOS12 # make cc -march=pentium4 -O2 -pipe -DRSRR -D__BSD_SOURCE -DRAW_INPUT_IS_RAW -DRAW_OUTPUT_IS_RAW -DIOCTL_OK_ON_RAW_SO -c -o igmp.o igmp.c In file included from igmp.c:14: defs.h:235: warning: conflicting types for built-in function 'log' cc -march=pentium4 -O2 -pipe -DRSRR -D__BSD_SOURCE -DRAW_INPUT_IS_RAW -DRAW_OUTPUT_IS_RAW -DIOCTL_OK_ON_RAW_SO -c -o inet.o inet.c In file included from inet.c:14: defs.h:235: warning: conflicting types for built-in function 'log' cc -march=pentium4 -O2 -pipe -DRSRR -D__BSD_SOURCE -DRAW_INPUT_IS_RAW -DRAW_OUTPUT_IS_RAW -DIOCTL_OK_ON_RAW_SO -c -o kern.o kern.c In file included from kern.c:14: defs.h:235: warning: conflicting types for built-in function 'log' cc -march=pentium4 -O2 -pipe -DRSRR -D__BSD_SOURCE -DRAW_INPUT_IS_RAW -DRAW_OUTPUT_IS_RAW -DIOCTL_OK_ON_RAW_SO -c -o config.o config.c In file included from config.c:14: defs.h:235: warning: conflicting types for built-in function 'log' yacc cfparse.y mv -f y.tab.c cfparse.c cc -march=pentium4 -O2 -pipe -DRSRR -D__BSD_SOURCE -DRAW_INPUT_IS_RAW -DRAW_OUTPUT_IS_RAW -DIOCTL_OK_ON_RAW_SO -c -o cfparse.o cfparse.c In file included from cfparse.y:15: defs.h:235: warning: conflicting types for built-in function 'log' cc -march=pentium4 -O2 -pipe -DRSRR -D__BSD_SOURCE -DRAW_INPUT_IS_RAW -DRAW_OUTPUT_IS_RAW -DIOCTL_OK_ON_RAW_SO -c -o main.o main.c In file included from main.c:23: defs.h:235: warning: conflicting types for built-in function 'log' cc -march=pentium4 -O2 -pipe -DRSRR -D__BSD_SOURCE -DRAW_INPUT_IS_RAW -DRAW_OUTPUT_IS_RAW -DIOCTL_OK_ON_RAW_SO -c -o route.o route.c In file included from route.c:14: defs.h:235: warning: conflicting types for built-in function 'log' cc -march=pentium4 -O2 -pipe -DRSRR -D__BSD_SOURCE -DRAW_INPUT_IS_RAW -DRAW_OUTPUT_IS_RAW -DIOCTL_OK_ON_RAW_SO -c -o vif.o vif.c In file included from vif.c:14: defs.h:235: warning: conflicting types for built-in function 'log' cc -march=pentium4 -O2 -pipe -DRSRR -D__BSD_SOURCE -DRAW_INPUT_IS_RAW -DRAW_OUTPUT_IS_RAW -DIOCTL_OK_ON_RAW_SO -c -o prune.o prune.c In file included from prune.c:14: defs.h:235: warning: conflicting types for built-in function 'log' cc -march=pentium4 -O2 -pipe -DRSRR -D__BSD_SOURCE -DRAW_INPUT_IS_RAW -DRAW_OUTPUT_IS_RAW -DIOCTL_OK_ON_RAW_SO -c -o callout.o callout.c In file included from callout.c:13: defs.h:235: warning: conflicting types for built-in function 'log' cc -march=pentium4 -O2 -pipe -DRSRR -D__BSD_SOURCE -DRAW_INPUT_IS_RAW -DRAW_OUTPUT_IS_RAW -DIOCTL_OK_ON_RAW_SO -c -o icmp.o icmp.c In file included from icmp.c:13: defs.h:235: warning: conflicting types for built-in function 'log' cc -march=pentium4 -O2 -pipe -DRSRR -D__BSD_SOURCE -DRAW_INPUT_IS_RAW -DRAW_OUTPUT_IS_RAW -DIOCTL_OK_ON_RAW_SO -c -o ipip.o ipip.c In file included from ipip.c:14: defs.h:235: warning: conflicting types for built-in function 'log' cc -march=pentium4 -O2 -pipe -DRSRR -D__BSD_SOURCE -DRAW_INPUT_IS_RAW -DRAW_OUTPUT_IS_RAW -DIOCTL_OK_ON_RAW_SO -c -o rsrr.o rsrr.c In file included from rsrr.c:35: defs.h:235: warning: conflicting types for built-in function 'log' cc -march=pentium4 -O2 -pipe -DRSRR -D__BSD_SOURCE -DRAW_INPUT_IS_RAW -DRAW_OUTPUT_IS_RAW -DIOCTL_OK_ON_RAW_SO -c -o vers.o vers.c rm -f mrouted cc -o mrouted -march=pentium4 -O2 -pipe -DRSRR -D__BSD_SOURCE -DRAW_INPUT_IS_RAW -DRAW_OUTPUT_IS_RAW -DIOCTL_ RAW_SOCKET igmp.o inet.o kern.o config.o cfparse.o main.o route.o vif.o prune.o callout.o icmp.o ipip.o rs ers.o main.o: In function `log': main.c:(.text+0x1e8): warning: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead main.c:(.text+0x141): warning: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead cc -march=pentium4 -O2 -pipe -DRSRR -D__BSD_SOURCE -DRAW_INPUT_IS_RAW -DRAW_OUTPUT_IS_RAW -DIOCTL_OK_ON_RAW_SO -c -o mapper.o mapper.c In file included from mapper.c:27: defs.h:235: warning: conflicting types for built-in function 'log' mapper.c: In function 'graph_map': mapper.c:792: warning: initialization makes pointer from integer without a cast rm -f map-mbone cc -o map-mbone -march=pentium4 -O2 -pipe -DRSRR -D__BSD_SOURCE -DRAW_INPUT_IS_RAW -DRAW_OUTPUT_IS_RAW -DIOCT N_RAW_SOCKET igmp.o inet.o kern.o mapper.o mapper.o: In function `log': mapper.c:(.text+0xa83): warning: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead mapper.c:(.text+0xa7a): warning: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead cc -march=pentium4 -O2 -pipe -DRSRR -D__BSD_SOURCE -DRAW_INPUT_IS_RAW -DRAW_OUTPUT_IS_RAW -DIOCTL_OK_ON_RAW_SO -c -o mrinfo.o mrinfo.c In file included from mrinfo.c:69: defs.h:235: warning: conflicting types for built-in function 'log' rm -f mrinfo cc -o mrinfo -march=pentium4 -O2 -pipe -DRSRR -D__BSD_SOURCE -DRAW_INPUT_IS_RAW -DRAW_OUTPUT_IS_RAW -DIOCTL_O AW_SOCKET igmp.o inet.o kern.o mrinfo.o mrinfo.o: In function `log': mrinfo.c:(.text+0x26f): warning: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead mrinfo.c:(.text+0x266): warning: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead rm cfparse.c so we can create a ebuild patch to build it. and I tested this mrouted with my kernel 2.6.21 and kernel can get multicast route table and forward multicast. I will try to add a patch for it. sed -e "/^#include \"linux\/mroute.h\"/i\#include <linux\/types.h>" to ebuild *** Bug 191347 has been marked as a duplicate of this bug. *** should be sed -i "/^#include <linux\/mroute.h>/i\#include <linux\/types.h>" netinet/ip_mroute.h just after sed -i "/^CFLAGS/s:-O:${CFLAGS}:" Makefile in src_unpack() works for me... vapier, you added this (without metadata.xml) -> your bug. Fix or remove the ebuild. why dont you review your history eh ? look at the date it was added -- metadata wasnt required at that time Wonderful... I'd CC QA but oh wait, we don't have any working QA and vapier's actually part of it. treecleaners, please remove the package. that implies mrouted is broken when it isnt fixed in newer kernel headers |