Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 51601 - tightvnc 4.0_beta20031113 compile failure gcc-3.4
Summary: tightvnc 4.0_beta20031113 compile failure gcc-3.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 48528
  Show dependency tree
 
Reported: 2004-05-20 17:04 UTC by Ed Catmur
Modified: 2004-05-31 20:43 UTC (History)
0 users

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


Attachments
4.0/gcc-3.4.patch (gcc-3.4.patch,262 bytes, patch)
2004-05-20 18:41 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 2004-05-20 17:04:02 UTC
g++   -I.. -DHAVE_VSNPRINTF -O3 -pipe -march=athlon-xp -mmmx -msse -m3dnow -mfpmath=387 -momit-leaf-frame-pointer -ftracer -fweb -fomit-frame-pointer -ffast-math -falign-functions=64 -falign-loops=4 -falign-jumps=4 -funroll-loops -fprefetch-loop-arrays -Wall -c HTTPServer.cxx
In file included from /usr/lib/gcc/i686-pc-linux-gnu/3.4.0/include/g++-v3/vector:72,
                 from ../rfb/Region.h:25,
                 from ../rfb/UpdateTracker.h:23,
                 from ../rfb/HTTPServer.h:32,
                 from HTTPServer.cxx:19:
/usr/lib/gcc/i686-pc-linux-gnu/3.4.0/include/g++-v3/bits/stl_bvector.h: In member function `void std::vector<bool, _Alloc>::_M_insert_range(std::_Bit_iterator, _ForwardIterator, _ForwardIterator, std::forward_iterator_tag)':
/usr/lib/gcc/i686-pc-linux-gnu/3.4.0/include/g++-v3/bits/stl_bvector.h:522: error: expected unqualified-id before '(' token
/usr/lib/gcc/i686-pc-linux-gnu/3.4.0/include/g++-v3/bits/stl_bvector.h: In member function `void std::vector<bool, _Alloc>::_M_fill_insert(std::_Bit_iterator, size_t, bool)':
/usr/lib/gcc/i686-pc-linux-gnu/3.4.0/include/g++-v3/bits/stl_bvector.h:823: error: expected unqualified-id before '(' token
In file included from /usr/lib/gcc/i686-pc-linux-gnu/3.4.0/include/g++-v3/vector:75,
                 from ../rfb/Region.h:25,
                 from ../rfb/UpdateTracker.h:23,
                 from ../rfb/HTTPServer.h:32,
                 from HTTPServer.cxx:19:
/usr/lib/gcc/i686-pc-linux-gnu/3.4.0/include/g++-v3/bits/vector.tcc: In member function `void std::vector<_Tp, _Alloc>::_M_fill_insert(__gnu_cxx::__normal_iterator<_Tp*, std::vector<_Tp, _Alloc> >, size_t, const _Tp&)':
/usr/lib/gcc/i686-pc-linux-gnu/3.4.0/include/g++-v3/bits/vector.tcc:307: error: expected unqualified-id before '(' token
/usr/lib/gcc/i686-pc-linux-gnu/3.4.0/include/g++-v3/bits/vector.tcc: In member function `void std::vector<_Tp, _Alloc>::_M_range_insert(__gnu_cxx::__normal_iterator<_Tp*, std::vector<_Tp, _Alloc> >, _ForwardIterator, _ForwardIterator, std::forward_iterator_tag)':
/usr/lib/gcc/i686-pc-linux-gnu/3.4.0/include/g++-v3/bits/vector.tcc:384: error: expected unqualified-id before '(' token
make[1]: *** [HTTPServer.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/tightvnc-4.0_beta20031113/work/vnc-4.0b4-unixsrc/rfb'

Looks like an idiot-#defining-max problem (http://gcc.gnu.org/ml/gcc-bugs/2003-09/msg00752.html)

I'll see if #undef'ing max before the include lets it work.
Comment 1 Ed Catmur 2004-05-20 18:41:11 UTC
Created attachment 31786 [details, diff]
4.0/gcc-3.4.patch

Seems to work fine.
Comment 2 Tuan Van (RETIRED) gentoo-dev 2004-05-24 15:02:43 UTC
thanks for the patch. It gets me going a little far but not to the end, and I don't have clue how to fix it:)

c++ -m32 -o XFree86 -O2 -march=pentium4 -pipe  -fPIC -ansi -pedantic -Wall -Wpointer-arith -Wundef     -L../../exports/lib  -L/usr/X11R6/lib xkb/xf86KillSrv.o xkb/xf86VT.o xkb/xf86Private.o          ../../programs/Xserver/hw/xfree86/common/xf86Init.o ../../programs/Xserver/hw/xfree86/common/xf86IniExt.o ../../programs/Xserver/hw/xfree86/common/libxf86.a      ../../programs/Xserver/hw/xfree86/parser/libxf86config.a ../../programs/Xserver/hw/xfree86/os-support/libxf86_os.a ../../programs/Xserver/hw/xfree86/loader/libloader.a           ../../programs/Xserver/hw/xfree86/common/libxf86.a dix/libdix.a os/libos.a ../../exports/lib/libXau.a ../../exports/lib/libXdmcp.a         ../../lib/font/fontbase.o                  ../../lib/font/libfontbase.a Xext/libexts.a xkb/libxkb.a Xi/libxinput.a                   lbx/liblbx.a                   ../../lib/lbxutil/liblbxutil.a vnc/libvnc.a ../../../rfb/librfb.a                    ../../../Xregion/libXregion.a                    ../../../network/libnetwork.a                    ../../../rdr/librdr.a ../../programs/Xserver/hw/xfree86/common/libxf86.a               Xext/libexts.a xkb/libxkb.a Xi/libxinput.a                   lbx/liblbx.a                   ../../lib/lbxutil/liblbxutil.a vnc/libvnc.a ../../../rfb/librfb.a                    ../../../Xregion/libXregion.a                    ../../../network/libnetwork.a                    ../../../rdr/librdr.a randr/librandr.a render/librender.a dix/libxpstubs.a mi/libmi.a Xext/libexts.a xkb/libxkb.a Xi/libxinput.a                   lbx/liblbx.a                   ../../lib/lbxutil/liblbxutil.a vnc/libvnc.a ../../../rfb/librfb.a                    ../../../Xregion/libXregion.a                    ../../../network/libnetwork.a                    ../../../rdr/librdr.a randr/librandr.a render/librender.a  ../../programs/Xserver/hw/xfree86/os-support/libxf86_os.a    -ljpeg -lz -lm                       -rdynamic -ldl  -Wl,-rpath-link,../../exports/lib
c++: ../../programs/Xserver/hw/xfree86/os-support/libxf86_os.a: No such file or directory
c++: ../../programs/Xserver/hw/xfree86/os-support/libxf86_os.a: No such file or directory
make[4]: *** [XFree86] Error 1
make[4]: Target `all' not remade because of errors.
c++ -m32 -o Xvfb -O2 -march=pentium4 -pipe  -fPIC -ansi -pedantic -Wall -Wpointer-arith -Wundef     -L../../exports/lib  -L/usr/X11R6/lib hw/vfb/stubs.o hw/vfb/miinitext.o hw/vfb/dpmsstubs.o      dix/libdix.a os/libos.a ../../exports/lib/libXau.a ../../exports/lib/libXdmcp.a  hw/vfb/libvfb.a fb/libfb.a mfb/libmfb.a dix/libxpstubs.a mi/libmi.a Xext/libexts.a xkb/libxkb.a Xi/libxinput.a                   lbx/liblbx.a                   ../../lib/lbxutil/liblbxutil.a vnc/libvnc.a ../../../rfb/librfb.a                    ../../../Xregion/libXregion.a                    ../../../network/libnetwork.a                    ../../../rdr/librdr.a randr/librandr.a render/librender.a mi/libmi.a   Xext/libext.a dbe/libdbe.a record/librecord.a                    XTrap/libxtrap.a os/libcwrapper.o    -ljpeg ../../lib/font/libXfont.a  dix/libxpstubs.a  -lz -lm                    -Wl,-rpath-link,../../exports/lib
rm -f Xserver._man
/usr/bin/cpp -undef -traditional  -D__apploaddir__=/usr/X11R6/lib/X11/app-defaults -D__filemansuffix__=5x -D__libmansuffix__=3x -D__miscmansuffix__=7 -D__drivermansuffix__=4 -D__projectroot__=/usr/X11R6 -D__xorgversion__='"Release 6.6" "X Version 11"' -D__vendorversion__="`echo 4 3 0 | sed -e 's/ /./g' -e 's/^/Version /'` XFree86"  <Xserver.man | sed -e '/^#  *[0-9][0-9]*  *.*$/d' -e '/^XCOMM$/s//#/' -e '/^XCOMM[^a-zA-Z0-9_]/s/^XCOMM/#/' >Xserver._man
rm -f Xserver.1x.html Xserver.1x-html
../../config/util/rman -f HTML < Xserver._man \
  > Xserver.1x-html && mv -f Xserver.1x-html Xserver.1x.html
macro "in" not recognized -- ignoring
make[4]: Leaving directory `/var/tmp/portage/tightvnc-4.0_beta20031113/work/vnc-4.0b4-unixsrc/xc/programs/Xserver'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/var/tmp/portage/tightvnc-4.0_beta20031113/work/vnc-4.0b4-unixsrc/xc/programs'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/tightvnc-4.0_beta20031113/work/vnc-4.0b4-unixsrc/xc'
make[1]: *** [World] Error 2
make[1]: Leaving directory `/var/tmp/portage/tightvnc-4.0_beta20031113/work/vnc-4.0b4-unixsrc/xc'
make: *** [World] Error 2

!!! ERROR: net-misc/tightvnc-4.0_beta20031113 failed.
!!! Function src_compile, Line 82, Exitcode 2
!!! (no error message)
Comment 3 Ed Catmur 2004-05-24 15:31:12 UTC
If you have 2.6 kernel headers, see bug 51701
Comment 4 Tuan Van (RETIRED) gentoo-dev 2004-05-24 16:09:42 UTC
I came a cross the other bug couple time but totally forgot it :(. Thanks for pointing it out. Agh, I just wasted about 1 hour compiling for nothing ;).
Comment 5 Daniel Ahlberg (RETIRED) gentoo-dev 2004-05-24 16:28:03 UTC
In CVS, thanks!