tested, as per josex request. I got an error trying to compile STLports. Reproducible: Always Steps to Reproduce: 1. emerge openoffice 1.1.3-r1 with gcc 3.4.3 (or -r1) 2. 3. Actual Results: fails relatively quickly Expected Results: compiled it Compilation that fails: c++ -pthread -fexceptions -I../stlport -Wall -W -Wno-sign-compare -Wno-unused -Wno-uninitialized -ftemplate-depth-32 -frtti -O -g -fPIC -D_STLP_DEBUG dll_main.cpp -c -o ../lib/obj/GCCppc/DebugSTLD/dll_main.o In file included from ../stlport/vector:40, from dll_main.cpp:39: ../stlport/stl/_vector.h:95: error: template class without a name ../stlport/stl/_vector.h:198: error: expected unqualified-id before "const" ../stlport/stl/_vector.h:198: error: expected `)' before "const" ../stlport/stl/_vector.h:201: error: expected `)' before "__n" ../stlport/stl/_vector.h:207: error: expected `)' before "__n" ../stlport/stl/_vector.h:212: error: expected unqualified-id before "const" ../stlport/stl/_vector.h:212: error: expected `)' before "const" ../stlport/stl/_vector.h:243: error: expected `)' before "__first" ../stlport/stl/_vector.h:243: error: expected `;' before "__first" ../stlport/stl/_vector.h:258: error: expected class-name before "__attribute__" ../stlport/stl/_vector.h:260: error: expected unqualified-id before '<' token ../stlport/stl/_vector.h:340: error: expected identifier before '<' token ../stlport/stl/_vector.h:340: error: expected `,' or `...' before '<' token ../stlport/stl/_vector.h:340: error: ISO C++ forbids declaration of `parameter' with no type ../stlport/stl/_vector.h:549: warning: `altivec' attribute ignored ../stlport/stl/_vector.h: In member function `void _STL::<anonymous class><_Tp, _Alloc>::swap(int __vector__)': ../stlport/stl/_vector.h:341: error: `__x' undeclared (first use this function) ../stlport/stl/_vector.h:341: error: (Each undeclared identifier is reported only once for each function it appears in.) ../stlport/stl/_vector.h: At global scope: ../stlport/stl/_vector.h:96: error: an anonymous union cannot have function members ../stlport/stl/_vector.h:549: error: abstract declarator `_STL::<anonymous class><_Tp, _Alloc>' used as declaration In file included from ../stlport/stl/_vector.h:553, from ../stlport/vector:40, from dll_main.cpp:39: ../stlport/stl/_relops_cont.h:7: error: expected `,' or `...' before '<' token ../stlport/stl/_relops_cont.h:8: error: ISO C++ forbids declaration of `parameter' with no type ../stlport/stl/_relops_cont.h:8: error: `bool _STL::operator==(int __vector__)' must have an argument of class or enumerated type ../stlport/stl/_relops_cont.h:8: error: `bool _STL::operator==(int __vector__)' must take exactly two arguments ../stlport/stl/_relops_cont.h: In function `bool _STL::operator==(int __vector__)': ../stlport/stl/_relops_cont.h:9: error: `__x' undeclared (first use this function) ../stlport/stl/_relops_cont.h:9: error: `__y' undeclared (first use this function) ../stlport/stl/_relops_cont.h:10: error: no matching function for call to `equal(<type error>, <type error>, <type error>)' ../stlport/stl/_relops_cont.h: At global scope: ../stlport/stl/_relops_cont.h:15: error: expected `,' or `...' before '<' token ../stlport/stl/_relops_cont.h:16: error: ISO C++ forbids declaration of `parameter' with no type ../stlport/stl/_relops_cont.h:16: error: `bool _STL::operator<(int __vector__)' must have an argument of class or enumerated type ../stlport/stl/_relops_cont.h:16: error: `bool _STL::operator<(int __vector__)' must take exactly two arguments ../stlport/stl/_relops_cont.h: In function `bool _STL::operator<(int __vector__)': ../stlport/stl/_relops_cont.h:17: error: `__x' undeclared (first use this function) ../stlport/stl/_relops_cont.h:18: error: `__y' undeclared (first use this function) ../stlport/stl/_relops_cont.h:18: error: no matching function for call to `lexicographical_compare(<type error>, <type error>, <type error>, <type error>)' ../stlport/stl/_algobase.h:458: note: candidates are: bool _STL::lexicographical_compare(const unsigned char*, const unsigned char*, const unsigned char*, const unsigned char*) ../stlport/stl/_algobase.h:472: note: bool _STL::lexicographical_compare(const char*, const char*, const char*, const char*) ../stlport/stl/_relops_cont.h: At global scope: ../stlport/stl/_relops_cont.h:21: error: expected `,' or `...' before '<' token ../stlport/stl/_relops_cont.h:21: error: ISO C++ forbids declaration of `parameter' with no type ../stlport/stl/_relops_cont.h:21: error: `bool _STL::operator!=(int __vector__)' must have an argument of class or enumerated type ../stlport/stl/_relops_cont.h:21: error: `bool _STL::operator!=(int __vector__)' must take exactly two arguments ../stlport/stl/_relops_cont.h: In function `bool _STL::operator!=(int __vector__)': ../stlport/stl/_relops_cont.h:21: error: `__x' undeclared (first use this function) ../stlport/stl/_relops_cont.h:21: error: `__y' undeclared (first use this function) ../stlport/stl/_relops_cont.h: At global scope: ../stlport/stl/_relops_cont.h:21: error: expected `,' or `...' before '<' token ../stlport/stl/_relops_cont.h:21: error: ISO C++ forbids declaration of `parameter' with no type ../stlport/stl/_relops_cont.h:21: error: `bool _STL::operator>(int __vector__)' must have an argument of class or enumerated type ../stlport/stl/_relops_cont.h:21: error: `bool _STL::operator>(int __vector__)' must take exactly two arguments ../stlport/stl/_relops_cont.h: In function `bool _STL::operator>(int __vector__)': ../stlport/stl/_relops_cont.h:21: error: `__y' undeclared (first use this function) ../stlport/stl/_relops_cont.h:21: error: `__x' undeclared (first use this function) ../stlport/stl/_relops_cont.h: At global scope: ../stlport/stl/_relops_cont.h:21: error: expected `,' or `...' before '<' token ../stlport/stl/_relops_cont.h:21: error: ISO C++ forbids declaration of `parameter' with no type ../stlport/stl/_relops_cont.h:21: error: `bool _STL::operator<=(int __vector__)' must have an argument of class or enumerated type ../stlport/stl/_relops_cont.h:21: error: `bool _STL::operator<=(int __vector__)' must take exactly two arguments ../stlport/stl/_relops_cont.h: In function `bool _STL::operator<=(int __vector__)': ../stlport/stl/_relops_cont.h:21: error: `__y' undeclared (first use this function) ../stlport/stl/_relops_cont.h:21: error: `__x' undeclared (first use this function) ../stlport/stl/_relops_cont.h: At global scope: ../stlport/stl/_relops_cont.h:21: error: expected `,' or `...' before '<' token ../stlport/stl/_relops_cont.h:21: error: ISO C++ forbids declaration of `parameter' with no type ../stlport/stl/_relops_cont.h:21: error: `bool _STL::operator>=(int __vector__)' must have an argument of class or enumerated type ../stlport/stl/_relops_cont.h:21: error: `bool _STL::operator>=(int __vector__)' must take exactly two arguments ../stlport/stl/_relops_cont.h: In function `bool _STL::operator>=(int __vector__)': ../stlport/stl/_relops_cont.h:21: error: `__x' undeclared (first use this function) ../stlport/stl/_relops_cont.h:21: error: `__y' undeclared (first use this function) ../stlport/stl/_relops_cont.h: At global scope: ../stlport/stl/_relops_cont.h:25: error: variable or field `swap' declared void ../stlport/stl/_relops_cont.h:25: error: `_STL::swap' declared as an `inline' variable ../stlport/stl/_relops_cont.h:25: error: template declaration of `int _STL::swap' ../stlport/stl/_relops_cont.h:25: error: expected primary-expression before "__attribute__" ../stlport/stl/_relops_cont.h:25: error: expected primary-expression before '>' token ../stlport/stl/_relops_cont.h:25: error: `__x' was not declared in this scope ../stlport/stl/_relops_cont.h:26: error: expected primary-expression before "__attribute__" ../stlport/stl/_relops_cont.h:26: error: expected primary-expression before '>' token ../stlport/stl/_relops_cont.h:26: error: `__y' was not declared in this scope ../stlport/stl/_relops_cont.h:26: error: expected `;' before '{' token In file included from ../stlport/stl/_vector.h:571, from ../stlport/vector:40, from dll_main.cpp:39: ../stlport/stl/_vector.c:45: error: expected unqualified-id before '<' token ../stlport/stl/_vector.c:45: error: expected `;' before '<' token ../stlport/stl/_vector.c:61: error: expected unqualified-id before '<' token ../stlport/stl/_vector.c:61: error: expected `;' before '<' token ../stlport/stl/_vector.c:89: error: expected unqualified-id before '<' token ../stlport/stl/_vector.c:89: error: expected `;' before '<' token ../stlport/stl/_vector.c:114: error: expected unqualified-id before '<' token ../stlport/stl/_vector.c:114: error: expected `;' before '<' token In file included from ../stlport/stl/_vector.h:575, from ../stlport/vector:40, from dll_main.cpp:39: ../stlport/stl/_bvector.h:314: error: expected identifier before '<' token ../stlport/stl/_bvector.h:314: error: expected unqualified-id before '<' token ../stlport/stl/_bvector.h:314: error: expected `;' before '<' token ../stlport/stl/_bvector.h:789: error: expected unqualified-id before '<' token ../stlport/stl/_bvector.h:789: error: expected `,' or `;' before '<' token In file included from ../stlport/stl/_vector.h:579, from ../stlport/vector:40, from dll_main.cpp:39: ../stlport/stl/debug/_vector.h:96: error: expected class-name before "__attribute__" ../stlport/stl/debug/_vector.h:96: error: expected `{' before "__attribute__" ../stlport/stl/debug/_vector.h:96: error: expected unqualified-id before '<' token ../stlport/stl/debug/_vector.h:96: error: expected `;' before '<' token dll_main.cpp:169: error: expected identifier before '<' token dll_main.cpp:169: error: expected unqualified-id before '<' token dll_main.cpp:171: error: explicit instantiation of `class _STL::vector<void*, _STL::allocator<void*> >' before definition of template make: *** [../lib/obj/GCCppc/DebugSTLD/dll_main.o] Error 1 dmake: Error code 2, while making './unxlngppc.pro/misc/build/so_built_so_stlport' ---* TG_SLO.MK *--- ERROR: Error 65280 occurred while making /var/tmp/portage/openoffice-1.1.3-r1/work/OOo_1.1.3_src/stlport !!! ERROR: app-office/openoffice-1.1.3-r1 failed. !!! Function src_compile, Line 363, Exitcode 1 !!! Build failed! !!! If you need support, post the topmost build error, NOT this status message.
standalone STLport 4.6.2-r2 gives the same error: c++ -pthread -fexceptions -I../stlport -W -Wno-sign-compare -Wno-unused -Wno-uninitialized -D_STLP_USE_GLIBC -D_GNU_SOURCE -O2 -mcpu=7450 -maltivec -mabi=altivec -pipe -g -fPIC -D_STLP_DEBUG -fPIC dll_main.cpp -c -o ../lib/obj/GCC-LINUX/DebugSTLD/dll_main.o In file included from ../stlport/vector:40, from dll_main.cpp:39: ../stlport/stl/_vector.h:95: error: template class without a name ../stlport/stl/_vector.h:198: error: expected unqualified-id before "const" ../stlport/stl/_vector.h:198: error: expected `)' before "const" ../stlport/stl/_vector.h:201: error: expected `)' before "__n" ../stlport/stl/_vector.h:207: error: expected `)' before "__n" ../stlport/stl/_vector.h:212: error: expected unqualified-id before "const" ../stlport/stl/_vector.h:212: error: expected `)' before "const" ../stlport/stl/_vector.h:243: error: expected `)' before "__first" ../stlport/stl/_vector.h:243: error: expected `;' before "__first" ../stlport/stl/_vector.h:258: error: expected class-name before "__attribute__" ../stlport/stl/_vector.h:260: error: expected unqualified-id before '<' token ../stlport/stl/_vector.h:340: error: expected identifier before '<' token ../stlport/stl/_vector.h:340: error: expected `,' or `...' before '<' token ../stlport/stl/_vector.h:340: error: ISO C++ forbids declaration of `parameter' with no type ../stlport/stl/_vector.h:549: warning: `altivec' attribute ignored ../stlport/stl/_vector.h: In member function `void _STL::<anonymous class><_Tp, _Alloc>::swap(int __vector__)': ../stlport/stl/_vector.h:341: error: `__x' undeclared (first use this function) ../stlport/stl/_vector.h:341: error: (Each undeclared identifier is reported only once for each function it appears in.) ../stlport/stl/_vector.h: At global scope: ../stlport/stl/_vector.h:96: error: an anonymous union cannot have function members ../stlport/stl/_vector.h:549: error: abstract declarator `_STL::<anonymous class><_Tp, _Alloc>' used as declaration In file included from ../stlport/stl/_vector.h:553, from ../stlport/vector:40, from dll_main.cpp:39: ../stlport/stl/_relops_cont.h:7: error: expected `,' or `...' before '<' token ../stlport/stl/_relops_cont.h:8: error: ISO C++ forbids declaration of `parameter' with no type ../stlport/stl/_relops_cont.h:8: error: `bool _STL::operator==(int __vector__)' must have an argument of class or enumerated type ../stlport/stl/_relops_cont.h:8: error: `bool _STL::operator==(int __vector__)' must take exactly two arguments ../stlport/stl/_relops_cont.h: In function `bool _STL::operator==(int __vector__)': ../stlport/stl/_relops_cont.h:9: error: `__x' undeclared (first use this function) ../stlport/stl/_relops_cont.h:9: error: `__y' undeclared (first use this function) ../stlport/stl/_relops_cont.h:10: error: no matching function for call to `equal(<type error>, <type error>, <type error>)' ../stlport/stl/_relops_cont.h: At global scope: ../stlport/stl/_relops_cont.h:15: error: expected `,' or `...' before '<' token ../stlport/stl/_relops_cont.h:16: error: ISO C++ forbids declaration of `parameter' with no type ../stlport/stl/_relops_cont.h:16: error: `bool _STL::operator<(int __vector__)' must have an argument of class or enumerated type ../stlport/stl/_relops_cont.h:16: error: `bool _STL::operator<(int __vector__)' must take exactly two arguments ../stlport/stl/_relops_cont.h: In function `bool _STL::operator<(int __vector__)': ../stlport/stl/_relops_cont.h:17: error: `__x' undeclared (first use this function) ../stlport/stl/_relops_cont.h:18: error: `__y' undeclared (first use this function) ../stlport/stl/_relops_cont.h:18: error: no matching function for call to `lexicographical_compare(<type error>, <type error>, <type error>, <type error>)' ../stlport/stl/_algobase.h:458: note: candidates are: bool _STL::lexicographical_compare(const unsigned char*, const unsigned char*, const unsigned char*, const unsigned char*) ../stlport/stl/_algobase.h:472: note: bool _STL::lexicographical_compare(const char*, const char*, const char*, const char*) ../stlport/stl/_relops_cont.h: At global scope: ../stlport/stl/_relops_cont.h:21: error: expected `,' or `...' before '<' token ../stlport/stl/_relops_cont.h:21: error: ISO C++ forbids declaration of `parameter' with no type ../stlport/stl/_relops_cont.h:21: error: `bool _STL::operator!=(int __vector__)' must have an argument of class or enumerated type ../stlport/stl/_relops_cont.h:21: error: `bool _STL::operator!=(int __vector__)' must take exactly two arguments ../stlport/stl/_relops_cont.h: In function `bool _STL::operator!=(int __vector__)': ../stlport/stl/_relops_cont.h:21: error: `__x' undeclared (first use this function) ../stlport/stl/_relops_cont.h:21: error: `__y' undeclared (first use this function) ../stlport/stl/_relops_cont.h: At global scope: ../stlport/stl/_relops_cont.h:21: error: expected `,' or `...' before '<' token ../stlport/stl/_relops_cont.h:21: error: ISO C++ forbids declaration of `parameter' with no type ../stlport/stl/_relops_cont.h:21: error: `bool _STL::operator>(int __vector__)' must have an argument of class or enumerated type ../stlport/stl/_relops_cont.h:21: error: `bool _STL::operator>(int __vector__)' must take exactly two arguments ../stlport/stl/_relops_cont.h: In function `bool _STL::operator>(int __vector__)': ../stlport/stl/_relops_cont.h:21: error: `__y' undeclared (first use this function) ../stlport/stl/_relops_cont.h:21: error: `__x' undeclared (first use this function) ../stlport/stl/_relops_cont.h: At global scope: ../stlport/stl/_relops_cont.h:21: error: expected `,' or `...' before '<' token ../stlport/stl/_relops_cont.h:21: error: ISO C++ forbids declaration of `parameter' with no type ../stlport/stl/_relops_cont.h:21: error: `bool _STL::operator<=(int __vector__)' must have an argument of class or enumerated type ../stlport/stl/_relops_cont.h:21: error: `bool _STL::operator<=(int __vector__)' must take exactly two arguments ../stlport/stl/_relops_cont.h: In function `bool _STL::operator<=(int __vector__)': ../stlport/stl/_relops_cont.h:21: error: `__y' undeclared (first use this function) ../stlport/stl/_relops_cont.h:21: error: `__x' undeclared (first use this function) ../stlport/stl/_relops_cont.h: At global scope: ../stlport/stl/_relops_cont.h:21: error: expected `,' or `...' before '<' token ../stlport/stl/_relops_cont.h:21: error: ISO C++ forbids declaration of `parameter' with no type ../stlport/stl/_relops_cont.h:21: error: `bool _STL::operator>=(int __vector__)' must have an argument of class or enumerated type ../stlport/stl/_relops_cont.h:21: error: `bool _STL::operator>=(int __vector__)' must take exactly two arguments ../stlport/stl/_relops_cont.h: In function `bool _STL::operator>=(int __vector__)': ../stlport/stl/_relops_cont.h:21: error: `__x' undeclared (first use this function) ../stlport/stl/_relops_cont.h:21: error: `__y' undeclared (first use this function) ../stlport/stl/_relops_cont.h: At global scope: ../stlport/stl/_relops_cont.h:25: error: variable or field `swap' declared void ../stlport/stl/_relops_cont.h:25: error: `_STL::swap' declared as an `inline' variable ../stlport/stl/_relops_cont.h:25: error: template declaration of `int _STL::swap' ../stlport/stl/_relops_cont.h:25: error: expected primary-expression before "__attribute__" ../stlport/stl/_relops_cont.h:25: error: expected primary-expression before '>' token ../stlport/stl/_relops_cont.h:25: error: `__x' was not declared in this scope ../stlport/stl/_relops_cont.h:26: error: expected primary-expression before "__attribute__" ../stlport/stl/_relops_cont.h:26: error: expected primary-expression before '>' token ../stlport/stl/_relops_cont.h:26: error: `__y' was not declared in this scope ../stlport/stl/_relops_cont.h:26: error: expected `;' before '{' token In file included from ../stlport/stl/_vector.h:571, from ../stlport/vector:40, from dll_main.cpp:39: ../stlport/stl/_vector.c:45: error: expected unqualified-id before '<' token ../stlport/stl/_vector.c:45: error: expected `;' before '<' token ../stlport/stl/_vector.c:61: error: expected unqualified-id before '<' token ../stlport/stl/_vector.c:61: error: expected `;' before '<' token ../stlport/stl/_vector.c:89: error: expected unqualified-id before '<' token ../stlport/stl/_vector.c:89: error: expected `;' before '<' token ../stlport/stl/_vector.c:114: error: expected unqualified-id before '<' token ../stlport/stl/_vector.c:114: error: expected `;' before '<' token In file included from ../stlport/stl/_vector.h:575, from ../stlport/vector:40, from dll_main.cpp:39: ../stlport/stl/_bvector.h:314: error: expected identifier before '<' token ../stlport/stl/_bvector.h:314: error: expected unqualified-id before '<' token ../stlport/stl/_bvector.h:314: error: expected `;' before '<' token ../stlport/stl/_bvector.h:789: error: expected unqualified-id before '<' token ../stlport/stl/_bvector.h:789: error: expected `,' or `;' before '<' token In file included from ../stlport/stl/_vector.h:579, from ../stlport/vector:40, from dll_main.cpp:39: ../stlport/stl/debug/_vector.h:96: error: expected class-name before "__attribute__" ../stlport/stl/debug/_vector.h:96: error: expected `{' before "__attribute__" ../stlport/stl/debug/_vector.h:96: error: expected unqualified-id before '<' token ../stlport/stl/debug/_vector.h:96: error: expected `;' before '<' token dll_main.cpp:169: error: expected identifier before '<' token dll_main.cpp:169: error: expected unqualified-id before '<' token dll_main.cpp:171: error: explicit instantiation of `class _STL::vector<void*, _STL::allocator<void*> >' before definition of template make: *** [../lib/obj/GCC-LINUX/DebugSTLD/dll_main.o] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: dev-libs/STLport-4.6.2-r2 failed. !!! Function src_compile, Line 28, Exitcode 2 !!! Compile failed !!! If you need support, post the topmost build error, NOT this status message.
same error with openoffice-ximian-1.3.6: c++ -pthread -fexceptions -I../stlport -Wall -W -Wno-sign-compare -Wno-unused -Wno-uninitialized -ftemplate-depth-32 -frtti -O -g -fPIC -D_STLP_DEBUG dll_main.cpp -c -o ../lib/obj/GCCppc/DebugSTLD/dll_main.o In file included from ../stlport/vector:40, from dll_main.cpp:39: ../stlport/stl/_vector.h:95: error: template class without a name ../stlport/stl/_vector.h:198: error: expected unqualified-id before "const" ../stlport/stl/_vector.h:198: error: expected `)' before "const" ../stlport/stl/_vector.h:201: error: expected `)' before "__n" ../stlport/stl/_vector.h:207: error: expected `)' before "__n" ../stlport/stl/_vector.h:212: error: expected unqualified-id before "const" ../stlport/stl/_vector.h:212: error: expected `)' before "const" ../stlport/stl/_vector.h:243: error: expected `)' before "__first" ../stlport/stl/_vector.h:243: error: expected `;' before "__first" ../stlport/stl/_vector.h:258: error: expected class-name before "__attribute__" ../stlport/stl/_vector.h:260: error: expected unqualified-id before '<' token ../stlport/stl/_vector.h:340: error: expected identifier before '<' token ../stlport/stl/_vector.h:340: error: expected `,' or `...' before '<' token ../stlport/stl/_vector.h:340: error: ISO C++ forbids declaration of `parameter' with no type ../stlport/stl/_vector.h:549: warning: `altivec' attribute ignored ../stlport/stl/_vector.h: In member function `void _STL::<anonymous class><_Tp, _Alloc>::swap(int __vector__)': ../stlport/stl/_vector.h:341: error: `__x' undeclared (first use this function) ../stlport/stl/_vector.h:341: error: (Each undeclared identifier is reported only once for each function it appears in.) ../stlport/stl/_vector.h: At global scope: ../stlport/stl/_vector.h:96: error: an anonymous union cannot have function members ../stlport/stl/_vector.h:549: error: abstract declarator `_STL::<anonymous class><_Tp, _Alloc>' used as declaration In file included from ../stlport/stl/_vector.h:553, from ../stlport/vector:40, from dll_main.cpp:39: ../stlport/stl/_relops_cont.h:7: error: expected `,' or `...' before '<' token ../stlport/stl/_relops_cont.h:8: error: ISO C++ forbids declaration of `parameter' with no type ../stlport/stl/_relops_cont.h:8: error: `bool _STL::operator==(int __vector__)' must have an argument of class or enumerated type ../stlport/stl/_relops_cont.h:8: error: `bool _STL::operator==(int __vector__)' must take exactly two arguments ../stlport/stl/_relops_cont.h: In function `bool _STL::operator==(int __vector__)': ../stlport/stl/_relops_cont.h:9: error: `__x' undeclared (first use this function) ../stlport/stl/_relops_cont.h:9: error: `__y' undeclared (first use this function) ../stlport/stl/_relops_cont.h:10: error: no matching function for call to `equal(<type error>, <type error>, <type error>)' ../stlport/stl/_relops_cont.h: At global scope: ../stlport/stl/_relops_cont.h:15: error: expected `,' or `...' before '<' token ../stlport/stl/_relops_cont.h:16: error: ISO C++ forbids declaration of `parameter' with no type ../stlport/stl/_relops_cont.h:16: error: `bool _STL::operator<(int __vector__)' must have an argument of class or enumerated type ../stlport/stl/_relops_cont.h:16: error: `bool _STL::operator<(int __vector__)' must take exactly two arguments ../stlport/stl/_relops_cont.h: In function `bool _STL::operator<(int __vector__)': ../stlport/stl/_relops_cont.h:17: error: `__x' undeclared (first use this function) ../stlport/stl/_relops_cont.h:18: error: `__y' undeclared (first use this function) ../stlport/stl/_relops_cont.h:18: error: no matching function for call to `lexicographical_compare(<type error>, <type error>, <type error>, <type error>)' ../stlport/stl/_algobase.h:458: note: candidates are: bool _STL::lexicographical_compare(const unsigned char*, const unsigned char*, const unsigned char*, const unsigned char*) ../stlport/stl/_algobase.h:472: note: bool _STL::lexicographical_compare(const char*, const char*, const char*, const char*) ../stlport/stl/_relops_cont.h: At global scope: ../stlport/stl/_relops_cont.h:21: error: expected `,' or `...' before '<' token ../stlport/stl/_relops_cont.h:21: error: ISO C++ forbids declaration of `parameter' with no type ../stlport/stl/_relops_cont.h:21: error: `bool _STL::operator!=(int __vector__)' must have an argument of class or enumerated type ../stlport/stl/_relops_cont.h:21: error: `bool _STL::operator!=(int __vector__)' must take exactly two arguments ../stlport/stl/_relops_cont.h: In function `bool _STL::operator!=(int __vector__)': ../stlport/stl/_relops_cont.h:21: error: `__x' undeclared (first use this function) ../stlport/stl/_relops_cont.h:21: error: `__y' undeclared (first use this function) ../stlport/stl/_relops_cont.h: At global scope: ../stlport/stl/_relops_cont.h:21: error: expected `,' or `...' before '<' token ../stlport/stl/_relops_cont.h:21: error: ISO C++ forbids declaration of `parameter' with no type ../stlport/stl/_relops_cont.h:21: error: `bool _STL::operator>(int __vector__)' must have an argument of class or enumerated type ../stlport/stl/_relops_cont.h:21: error: `bool _STL::operator>(int __vector__)' must take exactly two arguments ../stlport/stl/_relops_cont.h: In function `bool _STL::operator>(int __vector__)': ../stlport/stl/_relops_cont.h:21: error: `__y' undeclared (first use this function) ../stlport/stl/_relops_cont.h:21: error: `__x' undeclared (first use this function) ../stlport/stl/_relops_cont.h: At global scope: ../stlport/stl/_relops_cont.h:21: error: expected `,' or `...' before '<' token ../stlport/stl/_relops_cont.h:21: error: ISO C++ forbids declaration of `parameter' with no type ../stlport/stl/_relops_cont.h:21: error: `bool _STL::operator<=(int __vector__)' must have an argument of class or enumerated type ../stlport/stl/_relops_cont.h:21: error: `bool _STL::operator<=(int __vector__)' must take exactly two arguments ../stlport/stl/_relops_cont.h: In function `bool _STL::operator<=(int __vector__)': ../stlport/stl/_relops_cont.h:21: error: `__y' undeclared (first use this function) ../stlport/stl/_relops_cont.h:21: error: `__x' undeclared (first use this function) ../stlport/stl/_relops_cont.h: At global scope: ../stlport/stl/_relops_cont.h:21: error: expected `,' or `...' before '<' token ../stlport/stl/_relops_cont.h:21: error: ISO C++ forbids declaration of `parameter' with no type ../stlport/stl/_relops_cont.h:21: error: `bool _STL::operator>=(int __vector__)' must have an argument of class or enumerated type ../stlport/stl/_relops_cont.h:21: error: `bool _STL::operator>=(int __vector__)' must take exactly two arguments ../stlport/stl/_relops_cont.h: In function `bool _STL::operator>=(int __vector__)': ../stlport/stl/_relops_cont.h:21: error: `__x' undeclared (first use this function) ../stlport/stl/_relops_cont.h:21: error: `__y' undeclared (first use this function) ../stlport/stl/_relops_cont.h: At global scope: ../stlport/stl/_relops_cont.h:25: error: variable or field `swap' declared void ../stlport/stl/_relops_cont.h:25: error: `_STL::swap' declared as an `inline' variable ../stlport/stl/_relops_cont.h:25: error: template declaration of `int _STL::swap' ../stlport/stl/_relops_cont.h:25: error: expected primary-expression before "__attribute__" ../stlport/stl/_relops_cont.h:25: error: expected primary-expression before '>' token ../stlport/stl/_relops_cont.h:25: error: `__x' was not declared in this scope ../stlport/stl/_relops_cont.h:26: error: expected primary-expression before "__attribute__" ../stlport/stl/_relops_cont.h:26: error: expected primary-expression before '>' token ../stlport/stl/_relops_cont.h:26: error: `__y' was not declared in this scope ../stlport/stl/_relops_cont.h:26: error: expected `;' before '{' token In file included from ../stlport/stl/_vector.h:571, from ../stlport/vector:40, from dll_main.cpp:39: ../stlport/stl/_vector.c:45: error: expected unqualified-id before '<' token ../stlport/stl/_vector.c:45: error: expected `;' before '<' token ../stlport/stl/_vector.c:61: error: expected unqualified-id before '<' token ../stlport/stl/_vector.c:61: error: expected `;' before '<' token ../stlport/stl/_vector.c:89: error: expected unqualified-id before '<' token ../stlport/stl/_vector.c:89: error: expected `;' before '<' token ../stlport/stl/_vector.c:114: error: expected unqualified-id before '<' token ../stlport/stl/_vector.c:114: error: expected `;' before '<' token In file included from ../stlport/stl/_vector.h:575, from ../stlport/vector:40, from dll_main.cpp:39: ../stlport/stl/_bvector.h:314: error: expected identifier before '<' token ../stlport/stl/_bvector.h:314: error: expected unqualified-id before '<' token ../stlport/stl/_bvector.h:314: error: expected `;' before '<' token ../stlport/stl/_bvector.h:789: error: expected unqualified-id before '<' token ../stlport/stl/_bvector.h:789: error: expected `,' or `;' before '<' token In file included from ../stlport/stl/_vector.h:579, from ../stlport/vector:40, from dll_main.cpp:39: ../stlport/stl/debug/_vector.h:96: error: expected class-name before "__attribute__" ../stlport/stl/debug/_vector.h:96: error: expected `{' before "__attribute__" ../stlport/stl/debug/_vector.h:96: error: expected unqualified-id before '<' token ../stlport/stl/debug/_vector.h:96: error: expected `;' before '<' token dll_main.cpp:169: error: expected identifier before '<' token dll_main.cpp:169: error: expected unqualified-id before '<' token dll_main.cpp:171: error: explicit instantiation of `class _STL::vector<void*, _STL::allocator<void*> >' before definition of template make: *** [../lib/obj/GCCppc/DebugSTLD/dll_main.o] Error 1 dmake: Error code 2, while making './unxlngppc.pro/misc/build/so_built_so_stlport' ---* TG_SLO.MK *--- ERROR: Error 65280 occurred while making /var/tmp/portage/openoffice-ximian-1.3.6/work/OOo_1.1.3_src/stlport !!! ERROR: app-office/openoffice-ximian-1.3.6 failed. !!! Function src_compile, Line 419, Exitcode 1 !!! Build failed! !!! If you need support, post the topmost build error, NOT this status message.
Could you please provide the output of "emerge info" Also cc-ing ppc-team, as this only seems to happen on ppc
Created attachment 45736 [details] Output of emerge info Attached the output of emerge info, as requested
openoffice-ximian-1.3.6 builds with gcc-3.4.1-r3, FYI I'll eventually try openoffice-1.1.3-r1 too. Where should I report a bug in xOO.o but not in OO.o ? (F5 during slide show brings the navigation window *below* the slide show, making it unusable. It is still there in 1.3.6)
Andreas: Can you confirm that this bug doesn't effect other arches with GCC 3.4.3? I can only replicate this bug with GCC 3.4.3, but only have ppc to test with.
@Joe: At least for x86 this bug does not show up
Maybe a ppc guy could try to track down the patches that are used by the openoffice.org ppc porting team. I know that those builds normally use patches over the official builds. Besides it could very well be that the patches on the makefile ignore ppc and only work for ix86 architectures. Could a ppc person check that the patches on stlport are actually applied. Is this bug only present with 3.4.3 or also with other 3.4.x versions of gcc?
I suggest tests on patches are done with stlport-4.6.2-r2, as it fails with the same error, and it is much less cumbersome to build. I can test things, time permitting, but I'm just a user with a TiBook and little free hard disk. Re: your question, 3.4.1 (stable ppc) works for openoffice and stlport. It is failing with 3.4.3, I have not tested 3.4.2, but all versions are masked except 3.4.1 and 3.4.3.
I have an athlon XP and this bug does not show up. The current unmasked ebuild (openoffice-1.1.3 at the time of this writing) does not accept gcc 3.4.3, so I came to look around and look for bugs, then I tried to build it anyway, and yes it works on x86.
Okay, so the problem here is a namespace issue, strangely, filtering out altivec doesn't seem to fix the problem. It appears that the STLport people have fixed this in the CVS version of STLport, I'll try and backport the fix.
Well, maybe I was wrong with the last post. I've found that not setting _STLP_DEBUG allows for compilation of the STLport with gcc-3.4.3. We could remove this on the debug builds (only build with -g) but I'm not sure if this is acceptable. I'll try and figure out why _STLP_DEBUG breaks things, but for now it may be better to just remove it.
Created attachment 47747 [details, diff] PPC STLport vector workaround Okay, the above patch seems to fix the STLport problem on ppc. I'm not sure if it breaks the debug use flag or if it has any other issues, but it seems to allow compilation with gcc 3.4.3 on ppc. I'll add the patch for ppc only, if my compile completes sucessfully that is. (Wait a few more hours :P)
Yep, it fixes the problem. Tested okay (21 hours later. :P), although I'm still not sure about the debug use flag. I've added the fix to CVS. Feel free to reopen if you've got a better solution.
no better solution but may be it is that '};' on line 93 of _vector.h? (on 550 may be too) i had to change it to '}' with karchiver-3.0.10 on x86 at one point. bug #55763 i may be wrong. but no ppc box to test. anyone?
with the solution suggested in the previous comment I get a whole new set of errors. Trying now the patch suggested by Joe Jezak. I'lll report when it finishes.
It kept building after I called with LC_ALL=es_ES sudo ebuild ... as there are still some .java files with ISO-8859-1 characters, which will not compile under a UTF-8 LC_CTYPE, giving sun.io.MalformedInputException. Still not finished, but I already passed the STLport builds and the java stuff.