Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 102473 - dhcp-3.0.2 compile failure: tr.c: error: syntax error before "__u16"
Summary: dhcp-3.0.2 compile failure: tr.c: error: syntax error before "__u16"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Max Kalika (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-14 04:43 UTC by Ed Catmur
Modified: 2005-10-12 10:00 UTC (History)
0 users

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


Attachments
dhcp-3.0.2-tr.c.patch (dhcp-3.0.2-tr.c.patch,351 bytes, patch)
2005-08-14 04:47 UTC, Ed Catmur
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Catmur 2005-08-14 04:43:45 UTC
i686-pc-linux-gnu-gcc -g  -I/var/tmp/portage/dhcp-3.0.2/work/dhcp-3.0.2 
-I/var/tmp/portage/dhcp-3.0.2/work/dhcp-3.0.2/includes -DLINUX_MAJOR=2
-DLINUX_MINOR=6  -DPARANOIA -DEARLY_CHROOT -O1 -O2 -O3 -pipe -march=athlon-xp
-mmmx -msse -m3dnow -mfpmath=387   -c -o tr.o tr.c
tr.c:62: error: syntax error before "__u16"
tr.c:62: warning: no semicolon at end of struct or union
tr.c:63: warning: data definition has no type or storage class
tr.c:65: error: syntax error before '}' token

__u16 is declared in linux/types.h, so evidently this is not getting included.

emerge info:
Portage 2.0.51.22-r2 (!/portage/make.profile, gcc-3.4.4,
glibc-2.3.5.20050722-r0, 2.6.12-morph7 i686)
=================================================================
System uname: 2.6.12-morph7 i686 AMD Athlon(tm) XP 1700+
Gentoo Base System version 1.12.0_pre5
ccache version 2.4 [enabled]
dev-lang/python:     2.4.1-r1
sys-apps/sandbox:    1.2.12
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
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="cvs x86 ~cvs ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O1 -O2 -O3 -pipe -march=athlon-xp -mmmx -msse -m3dnow -mfpmath=387"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/NX/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/cursors/xorg-x11/default /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c
/etc/env.d"
CXXFLAGS="-O1 -O2 -O3 -pipe -march=athlon-xp -mmmx -msse -m3dnow -mfpmath=387"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy ccache digest distcc distlocks fixpackages nostrip
sandbox sfperms strict"
GENTOO_MIRRORS=" http://www.mirrorservice.org/sites/www.ibiblio.net/gentoo/
http://ftp.heanet.ie/pub/gentoo/
http://mirror.ac.uk/mirror/distro.ibiblio.org/pub/linux/distributions/gentoo/
http://ftp.gentoo.skynet.be/pub/gentoo/
http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
http://gentoo.mirror.sdv.fr/ http://ftp.du.se/pub/os/gentoo/
http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
http://ftp.snt.utwente.nl/pub/os/linux/gentoo/
http://www.ibiblio.org/pub/Linux/distributions/gentoo/ "
LANG="en_GB.iso88591"
LINGUAS="en_GB en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/srv/gentoo/trees/bmg-main /srv/gentoo/trees/gentopia
/srv/gentoo/trees/lila-artwork /srv/gentoo/trees/kernel-sources
/srv/gentoo/trees/bugs.gentoo.org /srv/gentoo/trees/gst-plugins.catmur.co.uk
/srv/gentoo/trees/auto-unmask /srv/gentoo/trees/capella.catmur.co.uk"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 3dfx 3dnow 3dnowext 7zip X a52 aac aalib accessibility acl alsa apm arj
artworkextra async attr avi bash-completion beagle berkdb bitmap-fonts bluetooth
bonobo boo boundschecking breakme browserplugin bzip2 cairo cdda cddb cdio
cdparanoia cdr cdrom communication composite crypt cscope cups curl daap dbus
deb design dga directfb divx4linux djvu doc dri dts dv dvd dvdr dvdread dvi edl
eds emboss encode epiphany epiphany-extension esd ethereal evo faad fam fat
fbcon ffmpeg firefox flac flash font-server foomaticdb fortran freetype gaim gb
gcl gd gdbm ggi gif gimpprint glade glitz glut glx gnome gnomecanvas gnomedb
gnumeric gnutls gphoto2 gpm graphviz gstreamer gtk gtk2 gtkhtml gtksharp guile
gzip hal hddtemp howl id3 imagemagick imap imlib imlib2 info inkjar
input_devices_wacom insecure-savers ipv6 irmc iso java javascript jfs jpeg latex
ldap lha libcaca libg++ libgda libwww live logrotate lzo mad maildir man
matroska md5sum mdb mikmod mime mmx mmx2 mmxext mng mono mozdevelop mozilla
mozsvg mp3 mpeg msoffice mysql nautilus ncurses network new-login nls nocd nptl
nptlonly nsplugin ntfs nvidia oav offensive ogg oggvorbis openal opengl openssh
opi oss pam pam_console pda pdf pdflib perl plotutils plugin png pop pop3
postscript ppds productivity python quicktime rar readline real reiserfs rpm rtc
ruby samba sasl scanner screen sdl skippy-xd slang socks5 sox speex spell sqlite
sse ssl suspend2 svg svga t1lib tar tcpd tetex theora tiff truetype
truetype-fonts type1-fonts unicode usb vcd videos vim-with-x vorbis win32codecs
wmf wxwin wxwindows xanim xchattext xface xfs xine xml xml2 xprint xscreensaver
xv xvid xvmc zip zlib zoo linguas_en_GB linguas_en userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS
Comment 1 Ed Catmur 2005-08-14 04:47:05 UTC
Created attachment 65906 [details, diff]
dhcp-3.0.2-tr.c.patch

Add #include <linux/types.h> to tr.c
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2005-10-12 09:37:49 UTC
Ed, those CFLAGS are a bit crazy. If you want to use "-O3" then drop "-O1 and
-O2".  -mmmx, -msse, and -m3dnow are included by -march=athlon-xp and
-fpmath=387 is the default setting.

so... basically try..

CFLAGS="-pipe -march=athlon-xp -O3"

granted this probably won't fix the error. It needs an #ifdef __linux__ #include
<linux/types.h> #endif
Comment 3 Roy Marples (RETIRED) gentoo-dev 2005-10-12 10:00:22 UTC
Thanks for the patch!

Fixed in dhcp-3.0.3

BTW, It's wrapped with the #ifdef as above