Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 237756 - dev-libs/icu-3.8.1-r1 fails: /usr/include/sys/types.h:158:20: error: missing binary operator before token "("
Summary: dev-libs/icu-3.8.1-r1 fails: /usr/include/sys/types.h:158:20: error: missing ...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-15 16:46 UTC by Albert Zeyer
Modified: 2008-09-15 21:12 UTC (History)
0 users

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 Albert Zeyer 2008-09-15 16:46:48 UTC
...
i686-pc-linux-gnu-g++ -D_REENTRANT -I. -I../common   -DU_I18N_IMPLEMENTATION -O2 -march=nocona -pipe -ggdb  -fvisibility=hidden -c -DPIC -fPIC -o zonemeta.o zonemeta.cpp
i686-pc-linux-gnu-g++ -D_REENTRANT -I. -I../common   -DU_I18N_IMPLEMENTATION -O2 -march=nocona -pipe -ggdb  -fvisibility=hidden -c -DPIC -fPIC -o zstrfmt.o zstrfmt.cpp
i686-pc-linux-gnu-g++ -O2 -march=nocona -pipe -ggdb  -fvisibility=hidden -Wl,-O1   -shared -Wl,-soname -Wl,libicui18n.so.38 -o ../lib/libicui18n.so.38.1 ucln_in.o fmtable.o format.o msgfmt.o umsg.o numfmt.o unum.o decimfmt.o dcfmtsym.o ucurr.o digitlst.o fmtable_cnv.o choicfmt.o datefmt.o smpdtfmt.o reldtfmt.o dtfmtsym.o udat.o dtptngen.o nfrs.o nfrule.o nfsubs.o rbnf.o ucsdet.o ucal.o calendar.o gregocal.o timezone.o simpletz.o olsontz.o astro.o taiwncal.o buddhcal.o persncal.o islamcal.o japancal.o gregoimp.o hebrwcal.o indiancal.o coleitr.o coll.o tblcoll.o sortkey.o bocsu.o ucoleitr.o ucol.o ucol_res.o ucol_bld.o ucol_sit.o ucol_tok.o ucol_wgt.o ucol_cnt.o ucol_elm.o strmatch.o usearch.o search.o stsearch.o translit.o utrans.o esctrn.o unesctrn.o funcrepl.o strrepl.o tridpars.o cpdtrans.o rbt.o rbt_data.o rbt_pars.o rbt_rule.o rbt_set.o nultrans.o remtrans.o casetrn.o titletrn.o tolowtrn.o toupptrn.o anytrans.o name2uni.o uni2name.o nortrans.o quant.o transreg.o regexcmp.o rematch.o repattrn.o regexst.o udatpg.o uregex.o uregexc.o ulocdata.o measfmt.o currfmt.o curramt.o currunit.o measure.o utmscale.o csdetect.o csmatch.o csr2022.o csrecog.o csrmbcs.o csrsbcs.o csrucode.o csrutf8.o inputext.o windtfmt.o winnmfmt.o basictz.o dtrule.o rbtz.o tzrule.o tztrans.o vtzone.o zonemeta.o zstrfmt.o -L../lib -licuuc -L../lib -L../stubdata -licudata -lpthread -lm 
rm -f ../lib/libicui18n.so.38 && ln -s libicui18n.so.38.1 ../lib/libicui18n.so.38
rm -f ../lib/libicui18n.so && ln -s libicui18n.so.38.1 ../lib/libicui18n.so
make[1]: warning:  Clock skew detected.  Your build may be incomplete.
make[1]: Leaving directory `/var/tmp/portage/dev-libs/icu-3.8.1-r1/work/icu/source/i18n'
make[0]: Making `all' in `layout'
make[1]: Entering directory `/var/tmp/portage/dev-libs/icu-3.8.1-r1/work/icu/source/layout'
generating dependency information for loengine.cpp
In file included from ../common/unicode/platform.h:89,
                 from ../common/unicode/umachine.h:49,
                 from ../common/unicode/utypes.h:36,
                 from LETypes.h:14,
                 from loengine.cpp:7:
/usr/include/sys/types.h:158:20: error: missing binary operator before token "("
generating dependency information for KernTable.cpp
In file included from ../common/unicode/platform.h:89,
                 from ../common/unicode/umachine.h:49,
                 from ../common/unicode/utypes.h:36,
                 from LETypes.h:14,
                 from KernTable.h:12,
                 from KernTable.cpp:8:
/usr/include/sys/types.h:158:20: error: missing binary operator before token "("
In file included from /usr/include/libio.h:62,
                 from /usr/include/stdio.h:75,
                 from KernTable.h:19,
                 from KernTable.cpp:8:
/usr/include/sys/cdefs.h:46:44: error: missing binary operator before token "("
/usr/include/sys/cdefs.h:50:44: error: missing binary operator before token "("
/usr/include/sys/cdefs.h:138:19: error: missing binary operator before token "("
/usr/include/sys/cdefs.h:196:19: error: missing binary operator before token "("
/usr/include/sys/cdefs.h:205:19: error: missing binary operator before token "("
/usr/include/sys/cdefs.h:214:19: error: missing binary operator before token "("
/usr/include/sys/cdefs.h:223:19: error: missing binary operator before token "("
/usr/include/sys/cdefs.h:235:19: error: missing binary operator before token "("
/usr/include/sys/cdefs.h:245:19: error: missing binary operator before token "("
/usr/include/sys/cdefs.h:254:19: error: missing binary operator before token "("
/usr/include/sys/cdefs.h:262:19: error: missing binary operator before token "("
/usr/include/sys/cdefs.h:276:19: error: missing binary operator before token "("
/usr/include/sys/cdefs.h:297:20: error: missing binary operator before token "("
/usr/include/sys/cdefs.h:302:20: error: missing binary operator before token "("
/usr/include/sys/cdefs.h:309:19: error: missing binary operator before token "("
generating dependency information for HangulLayoutEngine.cpp
In file included from ../common/unicode/platform.h:89,
                 from ../common/unicode/umachine.h:49,
                 from ../common/unicode/utypes.h:36,
                 from LETypes.h:14,
                 from HangulLayoutEngine.cpp:7:
/usr/include/sys/types.h:158:20: error: missing binary operator before token "("
generating dependency information for TibetanReordering.cpp
In file included from ../common/unicode/platform.h:89,
                 from ../common/unicode/umachine.h:49,
                 from ../common/unicode/utypes.h:36,
                 from LETypes.h:14,
                 from TibetanReordering.cpp:17:
/usr/include/sys/types.h:158:20: error: missing binary operator before token "("
...
In file included from /usr/include/libio.h:62,
                 from /usr/include/stdio.h:75,
                 from KernTable.h:19,
                 from LayoutEngine.cpp:34:
/usr/include/sys/cdefs.h:46:44: error: missing binary operator before token "("
/usr/include/sys/cdefs.h:50:44: error: missing binary operator before token "("
/usr/include/sys/cdefs.h:138:19: error: missing binary operator before token "("
/usr/include/sys/cdefs.h:196:19: error: missing binary operator before token "("
/usr/include/sys/cdefs.h:205:19: error: missing binary operator before token "("
/usr/include/sys/cdefs.h:214:19: error: missing binary operator before token "("
/usr/include/sys/cdefs.h:223:19: error: missing binary operator before token "("
/usr/include/sys/cdefs.h:235:19: error: missing binary operator before token "("
/usr/include/sys/cdefs.h:245:19: error: missing binary operator before token "("
...
i686-pc-linux-gnu-g++ -D_REENTRANT -I. -I./.. -I../common -I./unicode   -DU_LAYOUT_IMPLEMENTATION -O2 -march=nocona -pipe -ggdb  -fvisibility=hidden -c   -o LEFontInstance.ao LEFontInstance.cpp
In file included from ../common/unicode/platform.h:89,
                 from ../common/unicode/umachine.h:49,
                 from ../common/unicode/utypes.h:36,
                 from LETypes.h:14,
                 from LEFontInstance.cpp:14:
/usr/include/sys/types.h:158:20: error: missing binary operator before token "("
./OpenTypeTables.h:21: error: expected constructor, destructor, or type conversion before ‘typedef’
./OpenTypeTables.h:22: error: ‘le_uint8’ does not name a type
./OpenTypeTables.h:23: error: ‘le_uint32’ does not name a type
./OpenTypeTables.h:26: error: ‘le_uint32’ does not name a type
./OpenTypeTables.h:32: error: ‘ATag’ does not name a type
./OpenTypeTables.h:33: error: ‘Offset’ does not name a type
./OpenTypeTables.h:38: error: ‘TTGlyphID’ does not name a type
./OpenTypeTables.h:39: error: ‘TTGlyphID’ does not name a type
./OpenTypeTables.h:40: error: ‘le_int16’ does not name a type
./OpenTypeTables.h:45: error: ‘LETag’ does not name a type
./OpenTypeTables.h:46: error: ‘FeatureMask’ does not name a type
./OpenTypeTables.h:49: error: ‘U_NAMESPACE_END’ does not name a type
./features.h:28: error: ‘Offset’ does not name a type
./features.h:29: error: ‘le_uint16’ does not name a type
./features.h:30: error: ‘le_uint16’ does not name a type
./features.h:35: error: ‘le_uint16’ does not name a type
./features.h:36: error: ‘FeatureRecord’ does not name a type
./features.h:38: error: expected ‘;’ before ‘(’ token
./features.h:40: error: expected ‘;’ before ‘(’ token
./features.h:43: error: ‘U_NAMESPACE_END’ does not name a type
/usr/include/time.h:77: error: expected constructor, destructor, or type conversion before ‘typedef’
/usr/include/time.h:93: error: expected constructor, destructor, or type conversion before ‘typedef’
/usr/include/stdint.h:49: error: expected constructor, destructor, or type conversion before ‘typedef’
/usr/include/inttypes.h:288: error: expected constructor, destructor, or type conversion before ‘typedef’
/usr/include/inttypes.h:292: error: expected constructor, destructor, or type conversion before ‘;’ token
/usr/include/inttypes.h:298: error: expected initializer before ‘__THROW’
/usr/include/inttypes.h:301: error: ‘imaxdiv_t’ does not name a type
/usr/include/inttypes.h:306: error: expected initializer before ‘__THROW’
/usr/include/inttypes.h:310: error: expected initializer before ‘__THROW’
/usr/include/inttypes.h:315: error: expected initializer before ‘__THROW’
/usr/include/inttypes.h:320: error: expected initializer before ‘__THROW’
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/stddef.h:152: error: expected constructor, destructor, or type conversion before ‘typedef’
../common/unicode/utf8.h:55: error: ‘uint8_t’ does not name a type
...
/usr/include/string.h:244: error: ‘__END_NAMESPACE_STD’ does not name a type
/usr/include/string.h:294: error: expected constructor, destructor, or type conversion before ‘extern’
../common/cmemory.h:36: error: expected constructor, destructor, or type conversion before ‘extern’
../common/cmemory.h:40: error: ‘size_t’ has not been declared
LETypes.h:71: error: ‘uint8_t’ does not name a type
make[1]: *** [LEFontInstance.ao] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-libs/icu-3.8.1-r1/work/icu/source/layout'
make: *** [all-recursive] Error 2
 * 
 * ERROR: dev-libs/icu-3.8.1-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2339:  Called die
 * The specific snippet of code:
 *       emake -j1 || die "emake failed"
 *  The die message:
 *   emake failed
 * 
 * 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/dev-libs/icu-3.8.1-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/icu-3.8.1-r1/temp/environment'.
 *
Comment 1 Albert Zeyer 2008-09-15 16:47:13 UTC
macbook ~ # emerge --info
Portage 2.1.4.4 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.18-6-686 i686)
=================================================================
System uname: 2.6.18-6-686 i686 Intel(R) Core(TM)2 CPU T7400 @ 2.16GHz
Timestamp of tree: Sun, 14 Sep 2008 17:00:02 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13, 2.5.2-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61-r2
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
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.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -pipe -ggdb"
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/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /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="-O2 -march=nocona -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms splitdebug unmerge-orphans userfetch"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp6.uni-erlangen.de/pub/mirrors/gentoo ftp://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/ ftp://mirror.nutsmaas.nl/gentoo/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
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="7zip X a52 aac acl acpi alsa altenburgcards amarok amr amuled apm applet async asyncns atm automount avahi bash-completion berkdb bluetooth bonjour bookmarks branding bzip2 c++ cairo cdr cisco cli cracklib crypt cups cxx d daap dbus dedicated deskbar dga dhcp divx dri dv dvd dvdr dvdread dvi eap-tls eds emboss enblend encode esd evo exif extra-algorithms fam fasttrack ffmpeg firefox flac ftp galago gd gdbm german gif glib glitz gmedia gnome gnutella gnutls gphoto2 gpm gsf gstreamer gtk h323 hal haskell hddtemp hfs howl-compat iconv icu id3 id3tag ieee1394 imlib injection inkjar ipv6 irda isdnlog isight jabber java javascript jit joystick jpeg jpeg2k kde kerberos kig-scripting kqemu latex lcms ldap libnotify lirc lm_sensors lua lzo macbook mad madwifi maps mdnsresponder-compat midi mikmod mmap mmx mng mozdevelop mp2 mp3 mp4 mpeg mplayer mtp mudflap music musicbrainz nautilus ncurses net network networking njb nls nntp nptl nptlonly nsplugin ntfs ogg opengl openmp oss pam pascal pch pcre pdf perl pidgin plotutils pmu png pnm posix postgres postscript ppds pptp ps pth pulseaudio python qt3 qt3support qt4 quicktime rar rc5 rdesktop readline real realmedia reflection reiser4 reiserfs rtc samba screen sdl sdl-image sdl-sound sdlaudio server session sftp sharedmem sift slp smp sockets socks5 solver sourceview speex spell spl spoof-source sse sse2 ssl ssse3 startup-notification subversion svg sysfs tetex theora threads threadsafe tiff timidity tk trayicon truetype unicode unzip usb v4l2 valgrind vcd video voice vorbis weak-algorithms wifi win32codecs wma wmp wxwindows x264 x86 xanim xattr xcomposite xext xface xine xml xmlreader xorg xrandr xscreensaver xulrunner xv xvid zeroconf zip zlib zsh-completion" ALSA_CARDS="hda-intel" 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" CAMERAS="sony_dscf1 sony_dscf55" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" LIRC_DEVICES="inputlirc macmini" USERLAND="GNU" VIDEO_CARDS="i810 vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

Comment 2 Albert Zeyer 2008-09-15 16:48:40 UTC
Perhaps again related to my case insensitive filesystem?

I first thought of something similar as in bug #237338 (libX11).

I will look into the details now.
Comment 3 Albert Zeyer 2008-09-15 18:20:36 UTC
sys/types.h includes the file features.h.

In icu/source/layout, there is the file Features.h. Probably it takes this header file instead of the system header features.h.
Comment 4 Albert Zeyer 2008-09-15 18:42:31 UTC
I extended the src_compile() in the ebuild a bit:


src_compile() {
    econf \
        --enable-static \
        $(use_enable debug) \
        $(use_enable examples samples)

    cd layout
    mv Features.h IcuFeatures.h
    sed -i -e "s/Features.h/IcuFeatures.h/g" *
    cd ..

    emake -j1 || die "emake failed"
}


It works with this small rename.