Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 37186

Summary: fluxbox-0.9.7 compile problems (parse errors)
Product: Gentoo Linux Reporter: Daniel Drake (RETIRED) <dsd>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Daniel Drake (RETIRED) gentoo-dev 2004-01-04 05:49:14 UTC
When trying to compile fluxbox-0.9.7:

g++ -DHAVE_CONFIG_H -I. -I. -I../..     -march=athlon-xp -O2 -pipe -fomit-frame-pointer -msse -mfpmath=sse,387 -mmmx -m3dnow  -I/usr/X11R6/include -DSHAPE  -I/usr/X11R6/include -I/usr/include/freetype2    -c -o Button.o `test -f Button.cc || echo './'`Button.cc
source='TextButton.cc' object='TextButton.o' libtool=no \
depfile='.deps/TextButton.Po' tmpdepfile='.deps/TextButton.TPo' \
depmode=gcc3 /bin/sh ../../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I../..     -march=athlon-xp -O2 -pipe -fomit-frame-pointer -msse -mfpmath=sse,387 -mmmx -m3dnow  -I/usr/X11R6/include -DSHAPE  -I/usr/X11R6/include -I/usr/include/freetype2    -c -o TextButton.o `test -f TextButton.cc || echo './'`TextButton.cc
In file included from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/g++-v3/map:67,
                 from Image.hh:29,
                 from ThemeItems.hh:34,
                 from Theme.cc:29:
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/g++-v3/bits/stl_map.h:191: error: type
   specifier omitted for parameter `st'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/g++-v3/bits/stl_map.h:191: error: parse
   error before `&' token
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/g++-v3/bits/stl_map.h:211: error: ISO
   C++ forbids defining types within return type
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/g++-v3/bits/stl_map.h:211: error: syntax
   error before `&' token
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/g++-v3/bits/stl_map.h:212: error: parse
   error before `&' token
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/g++-v3/bits/stl_map.h:213: error: `
   int& std::operator=(...)' must be a nonstatic member function
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/g++-v3/bits/stl_map.h:213: error: `
   int& std::operator=(...)' must take exactly two arguments
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/g++-v3/bits/stl_map.h: In 
   function `int& std::operator=(...)':
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/g++-v3/bits/stl_map.h:214: error: `
   _M_t' undeclared (first use this function)

[ ... many more errors like this... ]

/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/g++-v3/bits/stl_map.h:430: error: previous
   declaration of `int swap'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/g++-v3/bits/stl_map.h:430: error: previous
   non-function declaration `int swap'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/g++-v3/bits/stl_map.h:658: error: conflicts
   with function declaration `template<class _Key, class _Tp, class _Compare, 
   class _Alloc> void swap(...)'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/g++-v3/bits/stl_map.h:659: error: parse
   error before `}' token
make[4]: *** [Theme.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory `/var/tmp/portage/fluxbox-0.9.7/work/fluxbox-0.9.7/src/FbTk'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/fluxbox-0.9.7/work/fluxbox-0.9.7/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/fluxbox-0.9.7/work/fluxbox-0.9.7/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/fluxbox-0.9.7/work/fluxbox-0.9.7'
make: *** [all] Error 2

!!! ERROR: x11-wm/fluxbox-0.9.7 failed.
!!! Function src_compile, Line 34, Exitcode 2
!!! make failed

Reproducible: Always
Steps to Reproduce:
1. ACCEPT_KEYWORDS="~x86" emerge fluxbox
Actual Results:  
Compile error


I was compiling with these flags:
-nls -xinerama +truetype +kde +gnome

Portage 2.0.49-r20 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r3, 2.6.1-rc1-mm1)
=================================================================
System uname: 2.6.1-rc1-mm1 i686 AMD Athlon(tm) 
Gentoo Base System version 1.4.3.10p1
distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -msse -mfpmath=sse,387
-mmmx -m3dnow"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3/share/config /usr/kde/cvs/share/config
/usr/share/config /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -msse -mfpmath=sse,387
-mmmx -m3dnow"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc sandbox"
GENTOO_MIRRORS="http://192.168.0.1/gentoo/
ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo
http://194.83.57.11/sites/www.ibiblio.org/gentoo/
http://trumpetti.atm.tut.fi/gentoo/
http://194.83.57.15/sites/www.ibiblio.org/gentoo/
ftp://ftp.uninett.no/pub/linux/Gentoo"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://192.168.0.1/gentoo-portage"
USE="3dnow X aalib alsa apm arts avi berkdb cdr cups directfb encode foomaticdb
gdbm ggi gif gphoto2 gpm gtk gtk2 imlib java jpeg ldap libg++ libwww mad mikmod
mmx motif mpeg nas ncurses oggvorbis opengl oss pdflib perl png python qt
quicktime readline sdl slang spell sse ssl svga tcltk tcpd tetex truetype x86
xml2 xmms xv zlib"
Comment 1 Daniel Drake (RETIRED) gentoo-dev 2004-01-04 06:23:37 UTC
Looks like something  in my distcc setup was wrong. merging with FEATURES="-distcc" fixed the problem.