Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 212255 - net-irc/ircd-hybrid doesn't compile - /usr/include/gentoo-multilib/amd64/bits/stat.h:103: error: expected identifier or '(' before '[' token
Summary: net-irc/ircd-hybrid doesn't compile - /usr/include/gentoo-multilib/amd64/bits...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Packages in net-irc
URL:
Whiteboard:
Keywords: PMASKED
: 222143 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-03-04 09:06 UTC by Scott Scheurman
Modified: 2010-07-05 09:16 UTC (History)
8 users (show)

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


Attachments
patch to fix "__unused" #define that conflicts with glibc (7.2.3-amd64-glibc.patch,1.19 KB, patch)
2009-05-04 11:06 UTC, Andrey "Zed" Zaikin
Details | Diff
ebuild utilizing 7.2.3-amd64-glibc.patch (ircd-hybrid-7.2.3.ebuild,4.27 KB, text/plain)
2009-05-04 11:07 UTC, Andrey "Zed" Zaikin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Scheurman 2008-03-04 09:06:38 UTC
Can't handle the brackets in long int __unused[3]. /usr/include/gentoo-multilib/amd64/bits/stat.h:103: error: expected identifier or '(' before '[' token

Reproducible: Always

Steps to Reproduce:
1.emerge sync to latest 
2.make sure running a recent kernel
3.emerge -v ircd-hybrid

Actual Results:  
x86_64-pc-linux-gnu-gcc -I../include -I../lib/pcre   -Wall -O2 -g -O2 -march=athlon64 -fomit-frame-pointer -pipe -c ircd_signal.c
x86_64-pc-linux-gnu-gcc -I../include -I../lib/pcre   -Wall -O2 -g -O2 -march=athlon64 -fomit-frame-pointer -pipe -I. -c lex.yy.c
x86_64-pc-linux-gnu-gcc -I../include -I../lib/pcre   -Wall -O2 -g -O2 -march=athlon64 -fomit-frame-pointer -pipe -c list.c
In file included from /usr/include/bits/stat.h:8,
                 from /usr/include/gentoo-multilib/amd64/sys/stat.h:107,
                 from /usr/include/sys/stat.h:8,
                 from ../include/stdinc.h:123,
                 from ircd_lexer.l:31:
/usr/include/gentoo-multilib/amd64/bits/stat.h:103: error: expected identifier or '(' before '[' token
make[1]: *** [lex.yy.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory

Expected Results:  
It failed to compile.  It should have been able to finish compilation without user intervention.  However, after a small change to ircd_lexer.l and regenerating lex.yy.c it compiled.

A couple of print functions complained about the uint64_t type, but it didn't segfault, so it's a start. It's basically a one line diff.

--- ircd_lexer.l        2007-02-28 04:17:46.000000000 +0000
+++ ircd_lexer.a.l      2008-03-04 08:08:51.000000000 +0000
@@ -64,7 +64,7 @@
 WS        [[:blank:]]*
 DIGIT     [[:digit:]]+
 COMMENT   ("//"|"#").*
-qstring   \"[^\"\n]*[\"\n]
+qstring   \"(\[|[^\"\n])*[\"\n]
 include   \.include{WS}(\<.*\>|\".*\")
 
 %%

Portage 2.1.4.4 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r9 x86_64)
=================================================================
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-03-04 09:11:48 UTC
Post your *entire* emerge --info, not this one-line stub.
Comment 2 Scott Scheurman 2008-03-04 09:18:58 UTC
   For now, I am going to leave it as new. I'd just like some info and to see how valid of a solution it actually might be.  Thank you.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2008-03-04 09:20:46 UTC
(In reply to comment #2)
> Post your *entire* emerge --info, not this one-line stub.
 

Comment 4 Scott Scheurman 2008-03-04 09:24:27 UTC
Sorry, you were too fast for me, I hadn't even finished putting it up yet.

Portage 2.1.4.4 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r9 x86_64)
=================================================================
System uname: 2.6.23-gentoo-r9 x86_64 AMD Athlon(tm) 64 Processor 3800+
Timestamp of tree: Mon, 03 Mar 2008 09:16:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=athlon64 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer notitles sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://gentoo.arcticnetwork.ca/pub/gentoo/ ftp://mirrors.tera-byte.com/pub/gentoo ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ ftp://gentoo.cites.uiuc.edu/pub/gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X acpi alsa amd64 berkdb bitmap-fonts bzip2 cairo cdr cli cracklib crypt curl dri dvd dvdr dvdread emboss encode fam fbcon ffmpeg fftw firefox flac fortran ftp gdbm gif gnutls gpm gs gtk iconv ipv6 isdnlog jpeg jpeg2k lcms libsamplerate logrotate mad midi mikmod mmx mng mp3 mpeg mudflap ncurses nptl nptlonly ogg opengl openmp pam pcre pdf perl png pppd python quicktime readline reflection sdl session spell spl sse sse2 ssl svg tcpd tiff truetype truetype-fonts type1-fonts unicode vorbis wmf xml xorg 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" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2008-03-04 09:26:03 UTC
Yay, thanks. :)
Comment 6 Joaquim Uchoa 2008-03-24 16:48:55 UTC
I'm with the same problem:


Portage 2.1.4.4 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.20-xen-r6-ginux x86_64)
=================================================================
System uname: 2.6.20-xen-r6-ginux x86_64 AMD Athlon(tm) 64 Processor 3000+
Timestamp of tree: Mon, 24 Mar 2008 11:00:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
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.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openfire/resources/security/ /usr/share/X11/xkb /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="pt_BR.UTF-8"
LC_ALL="pt_BR.UTF-8"
LINGUAS="en pt_BR pt-BR pt"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X X509 a52 acl acpi alsa amd64 apache2 asf berkdb binary-drivers bindist branding bzip2 cairo caps cdr chardet chroot cli colordiff cracklib crypt cups curl d dbus dovecot-sasl dri dvd dvdr dvi enca encode exif expat extensions fam firefox fortran freetype fuse gcj gd gdbm gif glib glibc-omitfp gmp gnutls gpm graphviz gs gtk gtk2 gtkhtml gzip hal hardened hpn iconv icu imagemagick imlib ipv6 isdnlog java jikes jpeg jpeg2k kerberos latex ldap libnotify lm_sensors logrotate lzo math mbox mcal midi mime mmap mmx mmxext mng mod_irc mod_muc mod_pubsub motif mudflap ncurses nls nptl nptlonly openmp pam pam_chroot pam_timestamp pango pcmcia pcre pdf perl pg-intdatetime php pic plugins png posix postfix ppds pppd profile pthread pwdb python rar readline reflection rpc rtc sasl screen session snmp spell spl sqlite sse sse2 ssl startup-notification stats suexec svg sysfs syslog tcpd tetex threads thumbnail tokenizer truetype type1 unicode usb vhosts web wifi wxwindows xattr xcb xcomposite xfce xforms xml xorg xosd xpm xprint xrandr xscreensaver yv12 zip 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" APACHE2_MODULES="actions alias asis auth_basic auth_digest authn_alias authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en pt_BR pt-BR pt" USERLAND="GNU" VIDEO_CARDS="radeon nv none"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 7 Lebedev Roman 2008-04-22 16:10:13 UTC
And I'm with the same problem:
x86_64-pc-linux-gnu-gcc -I../include -I../lib/pcre  -march=athlon64 -O2 -fomit-frame-pointer -Wall -O2 -g -march=athlon64 -O2 -fomit-frame-pointer -c parse.c
In file included from /usr/include/bits/stat.h:8,
                 from /usr/include/gentoo-multilib/amd64/sys/stat.h:107,
                 from /usr/include/sys/stat.h:8,
                 from ../include/stdinc.h:123,
                 from ircd_lexer.l:31:
/usr/include/gentoo-multilib/amd64/bits/stat.h:103: error: expected identifier or ‘(’ before ‘[’ token
x86_64-pc-linux-gnu-gcc -I../include -I../lib/pcre  -march=athlon64 -O2 -fomit-frame-pointer -Wall -O2 -g -march=athlon64 -O2 -fomit-frame-pointer -c restart.c
make[1]: *** [lex.yy.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/net-irc/ircd-hybrid-7.2.3/work/ircd-hybrid-7.2.3/src'
make: *** [build] Error 2


# emerge --info
Portage 2.1.4.4 (default-linux/amd64/2007.0/server, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r4-pinipini.lcl x86_64)
=================================================================
System uname: 2.6.24-gentoo-r4-pinipini.lcl x86_64 AMD Processor model unknown
Timestamp of tree: Tue, 22 Apr 2008 15:33:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.7.9-r1, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CPPFLAGS="-march=athlon64 -O2 -fomit-frame-pointer"
CXXFLAGS="-march=athlon64 -O2 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlock distlocks metadata-transfer sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp.heanet.ie/pub/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://gentoo.virginmedia.com/ http://mirror.muntinternet.net/pub/gentoo/ http://ds.thn.htu.se/linux/gentoo http://gentoo.prz.rzeszow.pl http://ftp.vein.hu/pub/linux/distributions/gentoo/"
LC_ALL="en_US.UTF-8"
LINGUAS="en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="bzip2"
PORTAGE_COMPRESS_FLAGS="-9"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="(3dfx*) (nsplugin) (nsplugin)* (nsplugin*) (svga) (vga) 3d 3dnow 3dnow2 3dnowext 7zip X a52 aac acl acpi alsa amd amd64 apache2 ati atk avi bash-completion berkdb bzip2 cairo calendar cdr cgi clamav cli cpudetection cracklib crypt ctype cups curl curlwrappers dbus dhcp divx dri drm dvd dvdr dvdread enca encode exif ffmpeg fglrx flac fortran ftp gd gdbm gif gmp gpm graphviz gtk hal iconv icq ieee1394 imagemagick imap inifile ipv6 isdnlog ithreads jabber jpeg jpeg2k ldap lm_sensors logrotate loop-aes mailwrapper mbox md5sum mesa midi mime mmx mmxext mng mp3 mpeg mplayer mudflap mysql mysqli ncurses nfs nls nptl nptlonly nsplugin nsplugin* ntp ogg opengl openmp oscar pam pango pcre pdf pear pecl perl php plotutils png posix postgres ppds pppd python radeon readline reflection ruby samba sasl session simplexml slang sockets socks5 spell spl srt sse sse2 sse3 ssl ssse3 svg swat symlink sysvipc tcpd theora threads tidy tiff truetype truetype2 type1 type2 unicode usb utf8 vhosts vim-syntax vorbis xine xml xmlreader xmlrpc xmlwriter xorg xpm xscreensaver xsl xulrunner zip zlib" ALSA_CARDS="hda-intel intel8x0 intel8x0m" 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" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias asis auth_digest authn_dbd cern_meta charset_lite dbd dumpio ident imagemap log_forensic proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http version" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="ncurses png vga X text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="fglrx radeon ati vesa svga vga"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 8 Dan Stephans II 2008-05-14 21:52:36 UTC
Filed this as bug # 222143 and missed this bug.  The problem lies in having a prebuilt lex.yy.c, details are in my bug report but essentially that file defines __unnamed if not on FreeBSD which creates a name conflict with a definition in stat.h.  The problem can be solved by running flex on ircd_lexer.l and recreating lex.yy.c

The configure/make process doesn't account for building this if its missing but I've tested by hand and get a clean build with a fresh lex.yy.c
Comment 9 Carsten Lohrke (RETIRED) gentoo-dev 2008-06-25 08:38:52 UTC
*** Bug 222143 has been marked as a duplicate of this bug. ***
Comment 10 Dan Stephans II 2008-11-18 16:35:57 UTC
Who is responsible for fixing this, it's a simple fix (outlined in my report) and it's been open for almost 8 months now.
Comment 11 Guido Passet 2009-02-09 20:11:11 UTC
Same here :(  Would be good to see this fixed or assigned at least after being open for such a long time. Perhaps the severity should be upped.

x86_64-pc-linux-gnu-gcc -I../include -I../lib/pcre   -Wall -O2 -g -march=athlon64 -O2 -pipe -fomit-frame-pointer -c ircd.c
x86_64-pc-linux-gnu-gcc -I../include -I../lib/pcre   -Wall -O2 -g -march=athlon64 -O2 -pipe -fomit-frame-pointer -c ircd_signal.c
x86_64-pc-linux-gnu-gcc -I../include -I../lib/pcre   -Wall -O2 -g -march=athlon64 -O2 -pipe -fomit-frame-pointer -I. -c lex.yy.c
In file included from /usr/include/bits/stat.h:8,
                 from /usr/include/gentoo-multilib/amd64/sys/stat.h:107,
                 from /usr/include/sys/stat.h:8,
                 from ../include/stdinc.h:123,
                 from ircd_lexer.l:31:
/usr/include/gentoo-multilib/amd64/bits/stat.h:103: error: expected identifier or '(' before '[' token
make[1]: *** [lex.yy.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/net-irc/ircd-hybrid-7.2.3/work/ircd-hybrid-7.2.3/src'
make: *** [build] Error 2



emerge --info
Portage 2.1.6.4 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.27.10 x86_64)
=================================================================
System uname: Linux-2.6.27.10-x86_64-AMD_Opteron-tm-_Processor_248-with-glibc2.2.5
Timestamp of tree: Mon, 09 Feb 2009 02:35:01 +0000
app-shells/bash:     3.2_p39
dev-lang/python:     2.5.2-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.63
sys-devel/automake:  1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ABI="amd64"
ACCEPT_KEYWORDS="amd64"
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 mmap_emul mulaw multi null plug rate route share shm softvol"
APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias"
ARCH="amd64"
ASFLAGS_x86="--32"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CCACHE_SIZE="512M"
CDEFINE_amd64="__x86_64__"
CDEFINE_x86="__i386__"
CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
CFLAGS_x86="-m32"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x86="i686-pc-linux-gnu"
CLEAN_DELAY="5"
COLLISION_IGNORE="/lib/modules"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CVS_RSH="ssh"
CXXFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
DEFAULT_ABI="amd64"
DISTDIR="/usr/portage/distfiles"
EDITOR="/bin/nano"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="--verbose"
EMERGE_WARNING_DELAY="10"
FEATURES="buildpkg distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
FETCHCOMMAND="/usr/bin/wget -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
GCC_SPECS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
HOME="/root"
INFOPATH="/usr/share/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.18/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/info"
INPUT_DEVICES="keyboard"
KERNEL="linux"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LDFLAGS="-Wl,-O1"
LDFLAGS_x86="-m elf_i386"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe.sh %s"
LIBDIR_amd64="lib64"
LIBDIR_ppc="lib32"
LIBDIR_ppc64="lib64"
LIBDIR_sparc32="lib32"
LIBDIR_sparc64="lib64"
LIBDIR_x86="lib32"
LINGUAS="en_US"
LOGNAME="root"
LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.svgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:"
MAIL="/var/mail/root"
MAKEOPTS="-j3"
MANPATH="/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.18/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/man"
MULTILIB_ABIS="amd64 x86"
MULTILIB_STRICT_DENY="64-bit.*shared object"
MULTILIB_STRICT_DIRS="/lib32 /lib /usr/lib32 /usr/lib /usr/kde/*/lib32 /usr/kde/*/lib /usr/qt/*/lib32 /usr/qt/*/lib /usr/X11R6/lib32 /usr/X11R6/lib"
MULTILIB_STRICT_EXEMPT="(perl5|gcc|gcc-lib|binutils|eclipse-3|debug|portage)"
NETBEANS="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml"
OLDPWD="/root"
PAGER="/usr/bin/less"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2"
PKGDIR="/usr/portage/packages"
PORTAGE_ARCHLIST="ppc s390 amd64 x86 ppc64 x86-fbsd m68k arm sparc sh mips ia64 alpha hppa sparc-fbsd"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_BIN_PATH="/usr/lib64/portage/bin"
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"
PORTAGE_CONFIGROOT="/"
PORTAGE_COUNTER_HASH="2be11c2eef1b362008fc10ed7f1c573f"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="log warn error"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="save_summary echo"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_NICENESS="15"
PORTAGE_PYM_PATH="/usr/lib64/portage/pym"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_RSYNC_RETRIES="3"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_VERBOSE="1"
PORTAGE_WORKDIR_MODE="0700"
PORTDIR="/usr/portage"
PORT_LOGDIR="/var/log/portage"
PROFILE_ONLY_VARIABLES="ARCH ELIBC KERNEL USERLAND"
PWD="/etc"
RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
ROOT="/"
ROOTPATH="/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2"
RPMDIR="/usr/portage/rpm"
SHELL="/bin/bash"
SHLVL="1"
SSH_CLIENT="82.94.250.57 53693 22"
SSH_CONNECTION="82.94.250.57 53693 82.94.250.56 22"
SSH_TTY="/dev/pts/1"
STAGE1_USE="multilib nptl nptlonly unicode"
SYMLINK_LIB="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
TERM="screen"
USE="amd64 bash-completion berkdb bzip2 cli cracklib dri gd iconv imagemagick imap isdnlog lzo maildir mailwrapper mbox midi mmx mudflap multilib ncurses nptl nptlonly openmp pam pcre perl perlsuid pppd readline reflection session spl sse sse2 ssl suidperl svg sysfs tiff unicode xorg 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
USER="root"
USERLAND="GNU"
USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS APACHE2_MODULES APACHE2_MPMS CAMERAS CROSSCOMPILE_OPTS DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS INPUT_DEVICES KERNEL LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS NETBEANS_MODULES USERLAND VIDEO_CARDS"
USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d"
VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
_="/usr/bin/emerge"
Comment 12 Andrey "Zed" Zaikin 2009-05-04 11:06:25 UTC
Created attachment 190294 [details, diff]
patch to fix "__unused" #define that conflicts with glibc


source patch to fix "__unused" #define that conflicts with glibc
Comment 13 Andrey "Zed" Zaikin 2009-05-04 11:07:31 UTC
Created attachment 190295 [details]
ebuild utilizing 7.2.3-amd64-glibc.patch

ebuild utilizing 7.2.3-amd64-glibc.patch
Comment 14 Andrey "Zed" Zaikin 2009-05-04 11:08:15 UTC
fixed that in attached patches
Comment 15 Jake Goulding 2010-01-25 20:50:27 UTC
Same problem here. Using the provided ebuild and patch allowed the compile to finish.
Comment 16 Tomáš Chvátal (RETIRED) gentoo-dev 2010-07-05 09:16:05 UTC
Package was treecleaned.