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

Bug 55908

Summary: gcc 3.4 break compilation of realvnc 4
Product: Gentoo Linux Reporter: Aris Basic <aris.basic>
Component: [OLD] GCC PortingAssignee: Please assign to toolchain <gcc-porting>
Status: RESOLVED INVALID    
Severity: normal CC: morfic
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Aris Basic 2004-07-02 12:36:59 UTC
when i try to compile realvnc 4 with my gcc3.4 it stops with this error:
g++   -I.. -DHAVE_VSNPRINTF -O2 -Wall -c HTTPServer.cxx
In file included from /usr/lib/gcc/x86_64-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/x86_64-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/x86_64-pc-linux-gnu/3.4.0/include/g++-v3/bits/stl_bvector.h:522: error: expected unqualified-id before '(' token
/usr/lib/gcc/x86_64-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/x86_64-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/x86_64-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/x86_64-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/x86_64-pc-linux-gnu/3.4.0/include/g++-v3/bits/vector.tcc:307: error: expected unqualified-id before '(' token
/usr/lib/gcc/x86_64-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/x86_64-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 `/home/aris/opensource/vnc-4.0-unixsrc/rfb'
make: *** [all] Error 1


if i try to use gcc3.3 it compiles fine (im jsut wondering will vnc.so module compiled iwth 3.3 work with 3.4 compile Xorg server)

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Aris Basic 2004-07-07 12:50:58 UTC
same error with gcc 3.4.1
Comment 2 Disenchanted (RETIRED) gentoo-dev 2004-07-08 22:32:51 UTC
Can You Please Try tightvnc-4.0_beta20031113.ebuild ?
It is essentially RealVNC 4 or at least identifies itself as such and works smoothly with my RealVNC 4 viewer i have at work

and is this using an ebuild or is this you trying the source downloaded using a manual ./configure and make process?

thank you in advance for your feedback
Comment 3 Disenchanted (RETIRED) gentoo-dev 2004-07-11 15:55:15 UTC
if you use sources that do not come from portage, please file bugs with upstream to have them fix their code so gcc-3.4 can compile it

thank you for reporting this
Comment 4 jack_mort 2004-07-17 11:58:07 UTC
I also tried to emerge realvnc 4.0 by just renaming the 3.3.7 ebuild and suppressing few lines (old patches, sed on Makefile.ini, etc). And the compilation failed... But I find the solution : just apply the patch for tightvnc, named tightvnc-4.0_gcc-3.4.patch, and it compiles fine ;-)