g++ -march=athlon64 -O2 -pipe -fno-strict-aliasing -DDATA_DIR=\"/usr/share/games/eternal-lands/\" -DX86_64 -DUSE_ACTOR_DEFAULTS -DGL_EXTENSION_CHECK -DLINUX -DELC -Dccache -Dcollision-protect -Dcvs -Ddistlocks -Delog -Djava-strict -Dmetadata-transfer -Dmultilib-strict -Dsandbox -Dsfperms -Dsign -Dstrict -Dunmerge-orphans -Duserfetch -Duserpriv -Dusersandbox -DAFK_FIX -DALPHA_ACTORS -DATI_9200_FIX -DAUTO_UPDATE -DCLICKABLE_CONTINENT_MAP -DCLUSTER_INSIDES -DCOUNTERS -DCUSTOM_LOOK -DCUSTOM_UPDATE -DCXX_MISC -DEYE_CANDY -DFONTS_FIX -DFUZZY_PATHS -DIDLE_FIX -DMASKING -DMINES -DMINIMAP -DNEW_ACTOR_ANIMATION -DNEW_ACTOR_SCALE -DNEW_FILE_IO -DNEW_SOUND -DNEW_TEX -DNOTEPAD -DOGG_VORBIS -DOPTIONS_I18N -DPNG_SCREENSHOT -DPOPUP -DSFX -DSIMPLE_LOD -DUSE_INLINE -DUSE_SEND_VIDEO_INFO -DZLIB -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/libxml2 -fno-strict-aliasing -c -o cal3d_wrapper.o cal3d_wrapper.cpp <command-line>: warning: missing whitespace after the macro name <command-line>: warning: missing whitespace after the macro name <command-line>: warning: missing whitespace after the macro name <command-line>: warning: missing whitespace after the macro name <command-line>: warning: missing whitespace after the macro name In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/basic_ios.h:44, from /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/ios:50, from /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/ostream:45, from /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/iostream:45, from /usr/include/cal3d/platform.h:85, from /usr/include/cal3d/global.h:24, from /usr/include/cal3d/animation.h:15, from /usr/include/cal3d/cal3d.h:18, from cal3d_wrapper.cpp:1: /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:3525: error: expected identifier before numeric constant /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:3525: error: expected `}' before numeric constant /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:3525: error: expected unqualified-id before numeric constant /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:3528: error: uninitialized const ‘std::_S_default_pattern’ /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:3534: error: conflicting declaration ‘_S_end’ /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/ios_base.h:188: error: ‘std::_S_end’ has a previous declaration as ‘std::_Ios_Seekdir std::_S_end’ /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:3548: error: ‘locale’ has not been declared /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:3548: error: expected `{' before ‘facet’ /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:3548: error: function definition does not declare parameters /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:3597: error: invalid use of incomplete type ‘struct __moneypunct_cache<_CharT, _Intl>’ /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:3548: error: declaration of ‘struct __moneypunct_cache<_CharT, _Intl>’ /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:3615: error: ‘locale’ has not been declared /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:3615: error: expected `{' before ‘facet’ /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:3615: error: invalid type in declaration before ‘,’ token /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:3615: error: template declaration of ‘int facet’ /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:3963: error: ‘locale’ has not been declared /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:3963: error: expected constructor, destructor, or type conversion before ‘moneypunct’ /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:3966: error: template definition of non-template ‘const bool moneypunct<_CharT, _Intl>::intl’ /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:3969: error: invalid use of incomplete type ‘class moneypunct<char, true>’ /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:3615: error: declaration of ‘class moneypunct<char, true>’ /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:3972: error: invalid use of incomplete type ‘class moneypunct<char, false>’ /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:3615: error: declaration of ‘class moneypunct<char, false>’ /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:3976: error: invalid use of incomplete type ‘class moneypunct<char, true>’ /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:3615: error: declaration of ‘class moneypunct<char, true>’ /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:3976: error: ‘__c_locale’ was not declared in this scope /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:3976: error: expected primary-expression before ‘const’ /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:3980: error: invalid use of incomplete type ‘class moneypunct<char, false>’ /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:3615: error: declaration of ‘class moneypunct<char, false>’ /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:3980: error: ‘__c_locale’ was not declared in this scope /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:3980: error: expected primary-expression before ‘const’ /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:3984: error: invalid use of incomplete type ‘class moneypunct<wchar_t, true>’ /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:3615: error: declaration of ‘class moneypunct<wchar_t, true>’ /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:3987: error: invalid use of incomplete type ‘class moneypunct<wchar_t, false>’ /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:3615: error: declaration of ‘class moneypunct<wchar_t, false>’ /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:3991: error: invalid use of incomplete type ‘class moneypunct<wchar_t, true>’ /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:3615: error: declaration of ‘class moneypunct<wchar_t, true>’ /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:3991: error: ‘__c_locale’ was not declared in this scope /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:3992: error: expected primary-expression before ‘const’ /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:3996: error: invalid use of incomplete type ‘class moneypunct<wchar_t, false>’ /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:3615: error: declaration of ‘class moneypunct<wchar_t, false>’ /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:3996: error: ‘__c_locale’ was not declared in this scope /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:3997: error: expected primary-expression before ‘const’ /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:4006: error: expected ‘;’ before ‘<’ token /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h: In constructor ‘moneypunct_byname<_CharT, _Intl>::moneypunct_byname(const char*, size_t)’: /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:4016: error: ‘__c_locale’ was not declared in this scope /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:4016: error: expected `;' before ‘__tmp’ /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:4017: error: ‘__tmp’ was not declared in this scope /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h: At global scope: /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:4045: error: ‘locale’ has not been declared /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:4045: error: expected `{' before ‘facet’ /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:4045: error: function definition does not declare parameters /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:4179: error: ‘locale’ has not been declared /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:4179: error: expected constructor, destructor, or type conversion before ‘money_get’ /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:4194: error: ‘locale’ has not been declared /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:4194: error: expected `{' before ‘facet’ /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:4194: error: function definition does not declare parameters /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:4331: error: ‘locale’ has not been declared /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:4331: error: expected constructor, destructor, or type conversion before ‘money_put’ /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:4364: error: ‘locale’ has not been declared /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:4364: error: expected `{' before ‘facet’ /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:4364: error: invalid type in declaration before ‘,’ token /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:4364: error: template declaration of ‘int facet’ /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:4566: error: ‘locale’ has not been declared /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:4566: error: expected constructor, destructor, or type conversion before ‘messages’ /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:4571: error: expected constructor, destructor, or type conversion before ‘messages’ /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:4576: error: expected constructor, destructor, or type conversion before ‘messages’ /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:4585: error: expected ‘;’ before ‘<’ token /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_facets.h:4596: error: expected declaration before ‘}’ token make: *** [cal3d_wrapper.o] Error 1
# emerge --info Portage 2.1.4 (default-linux/amd64/2007.0, gcc-4.2.2, glibc-2.7-r1, 2.6.23-gentoo-r5 x86_64) ================================================================= System uname: 2.6.23-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3500+ Timestamp of tree: Mon, 14 Jan 2008 16:46: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_p33 dev-java/java-config: 1.3.7, 2.1.3 dev-lang/python: 2.5.1-r5 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.11 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.24 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -pipe -fno-strict-aliasing" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /opt/jetty/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/initng/daemon /etc/initng/net /etc/initng/system /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=athlon64 -O2 -pipe -fno-strict-aliasing" DISTDIR="/home/ftp/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps y" FEATURES="ccache collision-protect cvs distlocks elog java-strict metadata-transfer multilib-strict sandbox sfperms sign strict unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="ftp://mirror.switch.ch/mirror/gentoo/ " LANG="it_IT.UTF-8" LC_ALL="it_IT.UTF-8" LINGUAS="it" PKGDIR="/home/ftp/packages" PORTAGE_COMPRESS="bzip2" PORTAGE_COMPRESS_FLAGS="-9" PORTAGE_RSYNC_EXTRA_OPTS=" --timeout=800 --progress " PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/overlays/portage /usr/local/overlays/initng-portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow 3dnowext 3ds 7zip X a52 aac acl acpi alsa amd64 amr aoss apache2 arts asf audiofile avahi bash-completion berkdb bitmap-fonts bl branding bzip2 cairo cal3d caps ccache cdb cddb cdparanoia cdr cg chroot cli cpudetection cracklib crypt css cups curl custom-cflags dbus devhelp dga directfb disk-partition djvu dmi dovecot-sasl dri dts dv dvd dvdr dvdread emerald encode epydoc erandom esd exif expat extrafilters fame ffmpeg firefox flac fltk foomaticdb fortran gd gdbm ggi gif gimp gimpprint glib glibc-omitfp glitz glut gmp gnokii gnome gnutls gphoto2 gpm graphviz gsm gtk gtkhtml guile hal hbci howl-compat iconv idn ieee1394 imagemagick imlib ipv6 isc isdnlog ithreads java javacomm javascript jbig jce jikes jpeg jpeg2k justify kde kdeenablefinal kdehiddenvisibility kqemu lcms ldap libcaca libnotify linuxthreads-tls lm_sensors logitech-mouse logrotate lzo mad mailwrapper matroska mbox mdb mhash midi mikmod mjpeg mmap mmx mmxext mng motif mozdevelop mp3 mpeg mpm-worker mppe-mppc msn mudflap musepack musicbrainz mysql ncurses nfs nls nptl nptlonly nsplugin numeric nvidia odbc ode offensive ofx ogg ogre on-the-fly-crypt openexr opengl openmp oss pam parport pch pcre pdf perl php png povray ppds pppd pulseaudio python qa qt3 qt3support qt4 quicktime quotes rdesktop readline reflection resolvconf restrict-javascript rtc samba scanner sdl session slang slp smime sndfile snmp speex spell spl sse sse2 ssl startup-notification subversion svg sysfs syslog tcltk tcpd test tetex tga theora threads tidy tiff timidity tk truetype truetype-fonts type1-fonts unicode usb userlocales utempter v4l v4l2 vcd vda vorbis vorbis-psy wma wmf wmp xattr xcomposite xforms xine xinerama xml xorg xpm xprint xscreensaver xv xvid xvmc yv12 zeroconf zlib" ALSA_CARDS="intel8x0" 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_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" APACHE2_MPMS="worker" CAMERAS="canon directory panasonic pccam300" ELIBC="glibc" FOO2ZJS_DEVICES="hp1005" INPUT_DEVICES="mouse evdev keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" USERLAND="GNU" VIDEO_CARDS="nvidia nv" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LDFLAGS, MAKEOPTS
What is on line 44 in /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/basic_ios.h for you? (I don't have gcc 4.2.2 nor x86_64 myself, but still want a peek) :-)
(In reply to comment #2) > What is on line 44 in > /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/basic_ios.h for you? > (I don't have gcc 4.2.2 nor x86_64 myself, but still want a peek) :-) #include <bits/locale_facets.h> if it's a x86_64 only problem, maybe amd64 team could be interested.
This look like the same problem as in the 1.4.0 ebuild. http://bugs.gentoo.org/show_bug.cgi?id=180783#c17 See comment 21 on that bug for a potential fix.
(In reply to comment #4) > This look like the same problem as in the 1.4.0 ebuild. > http://bugs.gentoo.org/show_bug.cgi?id=180783#c17 > See comment 21 on that bug for a potential fix. addedd at the end of src_unpack: sed -i -e 's:FEATURES:EL_FEATURES:' make.defaults sed -i -e 's:FEATURES:EL_FEATURES:' Makefile.linux result: gcc -march=athlon64 -O2 -pipe -fno-strict-aliasing -DDATA_DIR=\"/usr/share/games /eternal-lands/\" -DX86_64 -DUSE_ACTOR_DEFAULTS -DGL_EXTENSION_CHECK -DLINUX -D ELC -Dccache -Dcollision-protect -Dcvs -Ddistlocks -Delog -Djava-strict - Dmetadata-transfer -Dmultilib-strict -Dsandbox -Dsfperms -Dsign -Dstrict - Dunmerge-orphans -Duserfetch -Duserpriv -Dusersandbox -I/usr/include/SDL -D_G NU_SOURCE=1 -D_REENTRANT -I/usr/include/libxml2 -fno-strict-aliasing -c -o cal. o cal.c <command-line>: warning: missing whitespace after the macro name <command-line>: warning: missing whitespace after the macro name <command-line>: warning: missing whitespace after the macro name <command-line>: warning: missing whitespace after the macro name <command-line>: warning: missing whitespace after the macro name In file included from actors.h:17, from cal.h:4, from cal.c:2: platform.h:15:1: warning: "X86_64" redefined <command-line>: warning: this is the location of the previous definition cal.c: In function ‘cal_actor_set_anim_delay’: cal.c:57: error: ‘struct cal_anim’ has no member named ‘duration_scale’ cal.c:57: error: ‘struct cal_anim’ has no member named ‘duration_scale’ make: *** [cal.o] Error 1
Created attachment 140999 [details] fixed ebuild Ok, looks like this is the problem. Try out the attached ebuild - if this works for you I'll commit it as -r1...
(In reply to comment #6) > Created an attachment (id=140999) [edit] > fixed ebuild > > Ok, looks like this is the problem. Try out the attached ebuild - if this > works for you I'll commit it as -r1... Ok, it works fine for me. Good work.
In portage now as -r1...
Closing.