Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 173260 - net-misc/mrouted-3.9_beta3 does not build w/ sanitized linux headers
Summary: net-misc/mrouted-3.9_beta3 does not build w/ sanitized linux headers
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo TreeCleaner Project
URL:
Whiteboard: Vote
Keywords:
: 191347 (view as bug list)
Depends on:
Blocks: sane-linux-headers
  Show dependency tree
 
Reported: 2007-04-03 17:22 UTC by Andrey Kolbasenko
Modified: 2007-11-18 02:52 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Kolbasenko 2007-04-03 17:22:43 UTC
emerge mrouted
Calculating dependencies... done!

>>> Emerging (1 of 1) net-misc/mrouted-3.9_beta3 to /
 * mrouted-3.9beta3+IOS12.tar.gz RMD160 ;-) ...                                                                                                      [ ok ]
 * mrouted-3.9beta3+IOS12.tar.gz SHA1 ;-) ...                                                                                                        [ ok ]
 * mrouted-3.9beta3+IOS12.tar.gz SHA256 ;-) ...                                                                                                      [ ok ]
 * mrouted-3.9beta3+IOS12.tar.gz size ;-) ...                                                                                                        [ ok ]
 * mrouted_3.9-beta3-3.diff.gz RMD160 ;-) ...                                                                                                        [ ok ]
 * mrouted_3.9-beta3-3.diff.gz SHA1 ;-) ...                                                                                                          [ ok ]
 * mrouted_3.9-beta3-3.diff.gz SHA256 ;-) ...                                                                                                        [ ok ]
 * mrouted_3.9-beta3-3.diff.gz size ;-) ...                                                                                                          [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                 [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                               [ ok ]
 * checking mrouted-3.9beta3+IOS12.tar.gz ;-) ...                                                                                                    [ ok ]
 * checking mrouted_3.9-beta3-3.diff.gz ;-) ...                                                                                                      [ ok ]
>>> Unpacking source...
>>> Unpacking mrouted-3.9beta3+IOS12.tar.gz to /var/tmp/portage/net-misc/mrouted-3.9_beta3/work
>>> Unpacking mrouted_3.9-beta3-3.diff.gz to /var/tmp/portage/net-misc/mrouted-3.9_beta3/work
 * Applying mrouted_3.9-beta3-3.diff ...                                                                                                             [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/net-misc/mrouted-3.9_beta3/work/mrouted-3.9beta3+IOS12 ...
cc -O2 -march=prescott -fomit-frame-pointer   -DRSRR -D__BSD_SOURCE -DRAW_INPUT_IS_RAW -DRAW_OUTPUT_IS_RAW -DIOCTL_OK_ON_RAW_SOCKET        -c -o igmp.o igmp.c
In file included from netinet/ip_mroute.h:6,
                 from defs.h:48,
                 from igmp.c:14:
/usr/include/linux/mroute.h:116: ошибка: expected specifier-qualifier-list before ‘__u32’
In file included from igmp.c:14:
defs.h:235: предупреждение: conflicting types for built-in function ‘log’
make: *** [igmp.o] Ошибка 1

!!! ERROR: net-misc/mrouted-3.9_beta3 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 3004:   Called src_compile
  mrouted-3.9_beta3.ebuild, line 36:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/net-misc/mrouted-3.9_beta3/temp/build.log'.


Reproducible: Always




localhost ~ # emerge --info
Portage 2.1.2.2 (default-linux/x86/2006.1/desktop, gcc-4.1.2, glibc-2.5-r0, 2.6.20-gentoo-r2 i686)
=================================================================
System uname: 2.6.20-gentoo-r2 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Fri, 23 Mar 2007 16:30:08 +0000
dev-java/java-config: 1.3.7, 2.0.31-r4
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.15
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.20-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -march=prescott -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="ru_RU.UTF-8"
LC_ALL=""
LINGUAS="ru"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac aalib alsa apache2 arts avi berkdb bitmap-fonts bzip2 cairo cdr cgi cli cracklib crypt ctype cups dba dbus divx4linux dri dvd dvdr emboss encode esd fam fastcgi ffmpeg firefox flac font-server fortran gd gdbm gif gpm gstreamer gtk2 hal iconv irda isdnlog java jpeg kde ldap libg++ logrotate mad matroska midi mikmod mp3 mpeg mysql mysqli ncurses nls nptl nptlonly ogg openal opengl oss pam pcre pdf pear perl php5 png postgres ppds pppd python qt qt3 qt4 quicktime readline real reflection sdl session sms speex spell spl ssl svg svga tcpd theora truetype truetype-fonts type1-fonts unicode vorbis win32codecs wmf x86 xml xorg xsl xv xvid zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="ncurses text" LINGUAS="ru" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Steven De Bock 2007-04-11 20:28:20 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.
Comment 2 xiaozhao 2007-05-02 16:42:17 UTC
I found same thing
Comment 3 xiaozhao 2007-05-02 18:29:51 UTC
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
Comment 4 xiaozhao 2007-05-03 20:49:46 UTC
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.
Comment 5 xiaozhao 2007-05-03 21:26:33 UTC
 sed -e "/^#include \"linux\/mroute.h\"/i\#include <linux\/types.h>"
to ebuild
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-09-05 09:22:26 UTC
*** Bug 191347 has been marked as a duplicate of this bug. ***
Comment 7 Павел Иванов :) 2007-09-22 21:19:06 UTC
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...
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2007-11-17 23:01:44 UTC
vapier, you added this (without metadata.xml) -> your bug. Fix or remove the ebuild.
Comment 9 SpanKY gentoo-dev 2007-11-17 23:07:48 UTC
why dont you review your history eh ?  look at the date it was added -- metadata wasnt required at that time
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2007-11-18 00:30:28 UTC
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.
Comment 11 SpanKY gentoo-dev 2007-11-18 02:52:25 UTC
that implies mrouted is broken when it isnt

fixed in newer kernel headers