Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 44265 - mrouted fails to build from header problems and yacc dependancy
Summary: mrouted fails to build from header problems and yacc dependancy
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Tim Yamin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-10 10:04 UTC by David Bryson (RETIRED)
Modified: 2007-01-19 17:04 UTC (History)
2 users (show)

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


Attachments
fixes a types.h inclusion (mrouted-fix-types.h.diff,249 bytes, patch)
2004-03-10 10:05 UTC, David Bryson (RETIRED)
Details | Diff
adds patch line and yacc dependancy (mrouted-ebuild.diff,470 bytes, patch)
2004-03-10 10:08 UTC, David Bryson (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Bryson (RETIRED) gentoo-dev 2004-03-10 10:04:12 UTC
attempting to build mrouted results in a compilation error two fold:
1) it doesn't seem to include types.h properly
2) once it is completed properly the build sequence requires yacc so dependancy information must be updated in the ebuild

Reproducible: Always
Steps to Reproduce:
1. emerge mrouted
2. build fails
3.

Actual Results:  
gcc -O2 -march=athlon-mp -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: error: syntax error before "__u32"
/usr/include/linux/mroute.h:122: error: syntax error before '}' token
In file included from igmp.c:14:
defs.h:235: warning: conflicting types for built-in function `log'
make: *** [igmp.o] Error 1



there are still some warnings left about the 
defs.h:235: warning: conflicting types for built-in function `log'
but nothing serious

also the init script which I submitted with this ebuild originally doesn't seem
to be included, however the line is still in the ebuild
Comment 1 David Bryson (RETIRED) gentoo-dev 2004-03-10 10:05:08 UTC
Created attachment 27162 [details, diff]
fixes a types.h inclusion

The lack of this line prevents compiling on linux for some odd reason.
Comment 2 David Bryson (RETIRED) gentoo-dev 2004-03-10 10:08:46 UTC
Created attachment 27163 [details, diff]
adds patch line and yacc dependancy

patches the ebuild to apply the types.h patch and a yacc dependancy
Comment 3 David Bryson (RETIRED) gentoo-dev 2004-03-10 10:12:29 UTC
the init script which should be in mrouted/files is still attached to the old bug I filed:
http://bugs.gentoo.org/attachment.cgi?id=18135&action=view
Comment 4 SpanKY gentoo-dev 2004-03-12 17:01:49 UTC
yeah, i must have been retarded or something that i forgot to add the init script ... sorry about that

the type.h thing is a kernel bug and is an issue with 2.6.x headers
plasmaroo: could we get a patch to linux/mroute.h ?  just need to #include <linux/types.h> at the top of the file somewhere
Comment 5 SpanKY gentoo-dev 2004-03-12 17:19:22 UTC
oh, and what's up with the yacc dependency ?
i looked and didnt see yacc being executed anywhere ...
Comment 6 David Bryson (RETIRED) gentoo-dev 2004-03-12 17:38:03 UTC
well try unmerging yacc and then  building... it executes yacc somewhere in there.
Comment 7 SpanKY gentoo-dev 2004-03-12 17:43:31 UTC
ah, it's a make built in ... tell it to build a .y file and it'll run yacc

added yacc to DEPEND, thanks
Comment 8 Tim Yamin (RETIRED) gentoo-dev 2004-03-13 05:36:31 UTC
Fixed in linux-headers-2.6.4. Thanks!
Comment 9 Alexey Fisher 2007-01-19 17:02:21 UTC
The same bug upper now with gentoo 2006.1.
types.h inclusion patch solve this problem again. 
Is this ebuild discontinued ? is there any other possibilities to set multicasting up?



emerge --info
Portage 2.1.2_rc4-r7 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.5-r0, 2.6.19.2 i686)
=================================================================
System uname: 2.6.19.2 i686 Pentium III (Coppermine)
Gentoo Base System version 1.12.8
Last Sync: Wed, 10 Jan 2007 17:30:01 +0000
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.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.19
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O2 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=pentium3 -O2 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acpi apache2 apm arts berkdb bitmap-fonts bzip2 cli cracklib crypt dlloader eds emboss encode esd foomaticdb fortran gdbm gif gpm iconv imlib ipv6 isdnlog jpeg libg++ libwww lm_sensors mad mikmod motif mp3 mpeg mysql nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses nls nptl nptlonly ogg oss pam pcre perl png pppd python quicktime readline reflection samba sdl session snmp spell spl ssl tcpd truetype truetype-fonts type1-fonts udev unicode vorbis x86 xml xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 evdev" KERNEL="linux" USERLAND="GNU" VIDEO_CARDS="apm ark ati chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mga neomagic nsc nv rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY