First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 126971
Alias:
Product:
Component:
Status: VERIFIED
Resolution: FIXED
Assigned To: Roy Marples (RETIRED) <uberlord@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Jose daLuz <jdaluz@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 126971 depends on: Show dependency tree
Bug 126971 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.





View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-03-20 08:31 0000
Updating dhcp from 3.0.3-r5 to 3.0.3-r6, I get the following error:

x86_64-pc-linux-gnu-gcc -g  -I/var/tmp/portage/dhcp-3.0.3-r6/work/dhcp-3.0.3 
-I/var/tmp/portage/dhcp-3.0.3-r6/work/dhcp-3.0.3/includes -DLINUX_MAJOR=2
-DLINUX_MINOR=6  -DPARANOIA -DEARLY_CHROOT -march=k8 -O2 -pipe   -c -o tr.o
tr.c
tr.c:62: error: expected specifier-qualifier-list before 

------- Comment #1 From Jose daLuz 2006-03-20 08:31:35 0000 -------
Updating dhcp from 3.0.3-r5 to 3.0.3-r6, I get the following error:

x86_64-pc-linux-gnu-gcc -g  -I/var/tmp/portage/dhcp-3.0.3-r6/work/dhcp-3.0.3 
-I/var/tmp/portage/dhcp-3.0.3-r6/work/dhcp-3.0.3/includes -DLINUX_MAJOR=2
-DLINUX_MINOR=6  -DPARANOIA -DEARLY_CHROOT -march=k8 -O2 -pipe   -c -o tr.o
tr.c
tr.c:62: error: expected specifier-qualifier-list before ‘__u16’
tr.c: In function ‘insert_source_routing’:
tr.c:219: error: ‘struct routing_entry’ has no member named ‘rcf’
tr.c:220: error: ‘__u16’ undeclared (first use in this function)
tr.c:220: error: (Each undeclared identifier is reported only once
tr.c:220: error: for each function it appears in.)
tr.c:220: error: expected ‘;’ before ‘rcf’
tr.c:221: error: ‘struct routing_entry’ has no member named ‘rseg’
tr.c:222: error: ‘rcf’ undeclared (first use in this function)
tr.c:227: error: ‘struct routing_entry’ has no member named ‘access_time’
tr.c: In function ‘save_source_routing’:
tr.c:257: error: ‘__u16’ undeclared (first use in this function)
tr.c:257: error: expected ‘;’ before ‘rcf’
tr.c:274: error: ‘rcf’ undeclared (first use in this function)
tr.c:276: error: ‘struct routing_entry’ has no member named ‘rseg’
tr.c:276: error: ‘struct routing_entry’ has no member named ‘rseg’
tr.c:278: error: ‘struct routing_entry’ has no member named ‘rcf’
tr.c:279: error: ‘struct routing_entry’ has no member named ‘access_time’
tr.c:294: error: ‘struct routing_entry’ has no member named ‘access_time’
tr.c:299: error: ‘struct routing_entry’ has no member named ‘rseg’
tr.c:299: error: ‘struct routing_entry’ has no member named ‘rseg’
tr.c:301: error: ‘struct routing_entry’ has no member named ‘rcf’
tr.c: In function ‘expire_routes’:
tr.c:323: error: ‘struct routing_entry’ has no member named ‘access_time’
make[2]: *** [tr.o] Error 1
make[2]: Leaving directory
`/var/tmp/portage/dhcp-3.0.3-r6/work/dhcp-3.0.3/work.linux-2.2/common'
make[1]: *** [all] Error 1
make[1]: Leaving directory
`/var/tmp/portage/dhcp-3.0.3-r6/work/dhcp-3.0.3/work.linux-2.2'
make: *** [all] Error 2

!!! ERROR: net-misc/dhcp-3.0.3-r6 failed.

Portage 2.1_pre6-r5 (default-linux/amd64/2006.0, gcc-4.1.0, glibc-2.4-r1,
2.6.15-ck7 x86_64)
=================================================================
System uname: 2.6.15-ck7 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.0_pre16
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1, 2.16.91.0.6, 2.16.91.0.7
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env
/usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config
/usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo
/etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=k8 -O2 -pipe -ffriend-injection"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=""
FEATURES="autoconfig ccache confcache distlocks metadata-transfer nostrip
sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/bmg-main /usr/local/xgl-coffee /usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="amd64 X aac alsa apache2 avi bash-completion berkdb bitmap-fonts bzip2
cairo cdr cli crypt ctype cups dba dbus debug dri dvd dvdr eds emboss encode
esd expat fastbuild firefox flac foomaticdb force-cgi-redirect fortran ftp gd
gdbm gif glitz gnome gpm gstreamer gtk gtk2 hal imlib ipv6 java jpeg kde ldap
lzw lzw-tiff mad memlimit mono mozilla mp3 mpeg ncurses nls nptl nptlonly ogg
opengl pam pcre pdflib perl pic png posix python qt quicktime readline ruby
samba sdl session simplexml soap sockets spell spl sqlite ssl tcpd theora tiff
tokenizer truetype truetype-fonts type1-fonts usb vorbis xml xml2 xpm xsl xv
zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev
kernel_linux userland_GNU video_cards_vga video_cards_vesa video_cards_nv"
Unset:  ASFLAGS, CTARGET, LDFLAGS, LINGUAS, MAKEOPTS

------- Comment #2 From Jakub Moc (RETIRED) 2006-03-20 08:41:04 0000 -------
Reopen if the latest version in portage doesn't work for you. There's no point
in filing bugs that stable versions of ebuilds don't compile with
package.masked gcc/glibc versions.

------- Comment #3 From Jakub Moc (RETIRED) 2006-03-20 08:42:05 0000 -------
*** Bug 126974 has been marked as a duplicate of this bug. ***

------- Comment #4 From Jose daLuz 2006-03-20 08:49:28 0000 -------
Sorry, I didn't check for a masked version. 3.0.3-r6 came through as an update
and I filed the bug when it b0rked since 3.0.3-r5 built fine under
glibc-2.4/gcc-4.1.0.

3.0.4_beta3-r1 builds with no problem.

------- Comment #5 From Erik Zeek 2006-03-20 08:59:02 0000 -------
This needs to be reopened.  As mentioned in Bug 126974, net-misc/dhcp-3.0.3-r6
fails with gcc-3.4.5.

emerge --info
Portage 2.1_pre6-r5 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.4-r1,
2.6.15-gentoo-r7 i686)
=================================================================
System uname: 2.6.15-gentoo-r7 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.12.0_pre16
ccache version 2.4 [disabled]
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mtune=prescott -march=prescott -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -mtune=prescott -march=prescott -pipe"
DISTDIR="/home/gentoo/portage/distfiles"
FEATURES="autoconfig candy distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://gentoo.mirrors.pair.com/
http://distro.ibiblio.org/pub/linux/distributions/gentoo/
http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/
http://gentoo.chem.wisc.edu/gentoo/"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/home/gentoo/portage/packages"
PORTAGE_TMPDIR="/home/gentoo/tmp"
PORTDIR="/home/gentoo/portage"
PORTDIR_OVERLAY="/home/gentoo/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 7zip X X509 Xaw3d a52 aac aalib acl acpi activefilter ada aim aio alsa
amarok amd amr aotuv apache2 apm arts artswrappersuid artworkextra asf asm
asterisk async atlas auctex audiofile authdaemond automount avi bash-completion
bcmath bcp bdf berkdb binfilter bitmap-fonts bjam bl blas blender-game bonobo
boo bzip2 c++ cairo calendar cap caps ccache cdda cddb cdf cdio cdparanoia cdr
cdrom cgi chm clanJavaScript clanVoice cli clisp cmucl commercial corba cpdflib
cracklib crosscompile crypt cscope css ctype cups curl curlwrappers cvsgraph
daap dba dbm dbus dbx dcc debugger dga dhcp dio directfb discard-path djvu dnd
dpms dri dts dv dvd dvdr dvdread dynagraph ecc editor edl eds effects emboss
emoticon encode enscript epson erandom esd examples exif expat extrafilters
extraicons extramodules fame fastbuild fat fbcon fbdev fbsplash ffmpeg fftw
finger firefox fits flac flash flatfile fltk font-server fontconfig foomaticdb
force-cgi-redirect fortran fpx freetts freetype ftp fuse gb gcc-libffi gcj gcl
gd gdal gdbm geoip geos ggi gif gimp gimpprint ginac gitsendemail gkrellm glade
glep glgd glitz glut glx gml gmp gmtfull gmthigh gmtsuppl gmttria gnome
gnome-print gnomedb gnuplot gnutls gpgme gphoto2 gpm gps graphviz grass gs gsl
gssapi gstreamer gtk gtk2 gtkhtml guile gzip hal haskell hddtemp hdf hdf5 hfs
high-ints hlapi hou hpn html httpd i8x0 iconv icq id3 ide idea idn image
imagemagick imap imlib imlib2 inifile inkjar input_devices_jamstudio
input_devices_keyboard input_devices_mouse insecure-drivers insecure-savers
ipv6 itcl jack jai jasper java javacomm javascript jbig jce jikes jimi jit jp2
jpeg jpeg2k junit jython kcal kde kdeenablefinal kdepim kdexdeltas kqemu ladcca
lame lapack largeterminal latex lcms libcaca libclamav libdsk libg++ libgda
libsamplerate libwww live lm_sensors logitech-mouse logrotate logwatch lzo lzw
mad mail maildir mailwrapper mapeditor maps math matroska mbrola md5sum
memlimit mhash mikmod mime ming mixer mjpeg mmap mmx mmxext mng mod mopac7
motif mozilla moznocompose moznoirc moznomail mozsha1 mozsvg mp3 mp4 mp4live
mpeg mpeg2 mpeg4 mplayer mpqc multiprocess multitarget musepack music
musicbrainz mysql nas ncurses net netcdf network new-login nfs nls no-old-linux
nocd nowin nptl nptlonly nsplugin ntfs ntlm numarray numeric oav ocaml octave
offensive ofx ogdi ogg openal openbabel openexr opengl osc oss pager pam
parse-clocks pascal patch patented pcntl pcre pdf pdfkit pdflib pear perl php
physfs pic player plotutils plugin png pnp pop portaudio posix postfix povray
ppds print pyste python qemu-fast qhull qt quicktime quotas quotes rar rdesktop
readline real remix rle rogue rpc rrdtool rss rtc ruby samba sasl sbcl scanner
scp screen sdk sdl session seti sftp shared sharedext sharedmem shorten shout
simplexml skins slp smime smp sndfile soap sockets softmmu sou sounds speedo
speex spell spl sql sqlite sse sse-filters sse2 ssl stencil-buffer stream
subject-rewrite subp subtitles subversion suid svg svgz svn-mirror swat symlink
sysfs syslog sysvipc szip t1lib tcltk tcpd test tetex tga theora thesaurus
threads tidy tiff timidity tokenizer toolbar tools transcode truetype
truetype-fonts type1 type1-fonts ucs2 ucs4 udev unicode urandom usb userlocales
utf8 uudeview v4l v4l2 vcd vcdimager vfat video_cards_i810 video_cards_i830
video_cards_i915 videos vidix vim vim-pager vim-with-x virus-scan visualization
vlm voice vorbis webdav win32codecs wmf wordperfect wv wxwindows x264 xanim
xatrix xface xforms xine xinetd xml xmldoclet xmms xosd xpm xprint xscreensaver
xsl xslt xtended xv xvid xvmc yv12 zip zlib elibc_glibc kernel_linux linguas_en
userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS

------- Comment #6 From Jakub Moc (RETIRED) 2006-03-20 09:06:28 0000 -------
(In reply to comment #3)
> Sorry, I didn't check for a masked version. 3.0.3-r6 came through as an update
> and I filed the bug when it b0rked since 3.0.3-r5 built fine under
> glibc-2.4/gcc-4.1.0.

Hmmm, well... so, 3 patches added, good luck hunting which one caused this

--- dhcp-3.0.3-r5.ebuild     2006-03-10 12:36:32.000000000 +0100
+++ dhcp-3.0.3-r6.ebuild     2006-03-20 13:42:35.000000000 +0100

<snip>
-       # Enable dhclient to equery NTP servers, fixed #63868
+       # Enable dhclient to equery NTP servers
        epatch "${FILESDIR}/${PN}-3.0.3-dhclient-ntp.patch"
+       # Allow dhclient to use IF_METRIC to set route metrics
+       # Also, stop doing ifconfig down on Linux as that kills wpa_supplicant
+       epatch "${FILESDIR}/${PN}-3.0.3-dhclient-metric.patch"
+       # resolvconf support in dhclient-script
+       epatch "${FILESDIR}/${PN}-3.0.3-dhclient-resolvconf.patch"
        # Quiet the isc blurb
        epatch "${FILESDIR}/${PN}-3.0.3-no_isc_blurb.patch"
        # Enable dhclient to get extra configuration from stdin
-       epatch "${FILESDIR}/${P}-dhclient-stdin-conf.patch"
+       epatch "${FILESDIR}/${PN}-3.0.3-dhclient-stdin-conf.patch"

        # General fixes which will probably be accepted upstream eventually
-       # Fix token ring compiling, #102473 
-       epatch "${FILESDIR}/${P}-tr.patch"
</snip>

------- Comment #7 From Jose daLuz 2006-03-20 09:25:06 0000 -------
I can confirm 3.0.3-r6 fails to build with gcc-3.4.5.

------- Comment #8 From Erik Zeek 2006-03-20 09:28:54 0000 -------
(In reply to comment #5)
>         # General fixes which will probably be accepted upstream eventually
> -       # Fix token ring compiling, #102473 
> -       epatch "${FILESDIR}/${P}-tr.patch"
> </snip>
> 

My guess would be this one.  It's the only one affecting tr.c.

> cat dhcp-3.0.3-tr.patch
--- work.linux-2.2/common/tr.c  2005/08/14 11:34:24     1.1
+++ work.linux-2.2/common/tr.c  2005/08/14 11:35:16
@@ -40,6 +40,9 @@ static char copyright[] =
 #include "includes/netinet/if_ether.h"
 #include "netinet/if_tr.h"
 #include <sys/time.h>
+#ifdef __linux__
+#include <linux/types.h>
+#endif

 /*
  * token ring device handling subroutines.  These are required as token-ring

------- Comment #9 From Erik Zeek 2006-03-20 09:33:59 0000 -------
(In reply to comment #7)
> (In reply to comment #5)
> >         # General fixes which will probably be accepted upstream eventually
> > -       # Fix token ring compiling, #102473 
> > -       epatch "${FILESDIR}/${P}-tr.patch"
> > </snip>
> > 
> 
> My guess would be this one.  It's the only one affecting tr.c.

After readding this patch, dhcp builds just fine.

------- Comment #10 From Erik Zeek 2006-03-20 09:40:18 0000 -------
(In reply to comment #8)
> After readding this patch, dhcp builds just fine.

That's "After re-adding this patch, ..." 

------- Comment #11 From Armando Di Cianno 2006-03-20 10:07:00 0000 -------
Ditto; re-adding epatch "${FILESDIR}/${P}-tr.patch" fixed this for me as well
(gcc-4.1.0, glibc-2.4).

------- Comment #12 From Roy Marples (RETIRED) 2006-03-21 04:11:36 0000 -------
Fixed

------- Comment #13 From Sandro Bonazzola (RETIRED) 2006-03-21 10:30:14 0000 -------
Resolution works fine for me. Good work.

------- Comment #14 From Jakub Moc (RETIRED) 2006-03-21 23:25:20 0000 -------
*** Bug 127139 has been marked as a duplicate of this bug. ***

First Last Prev Next    No search results available      Search page      Enter new bug