Apache OpenOffice (AOO) Bugzilla – Issue 693
STLport4 on Solaris - not building
Last modified: 2003-12-06 14:52:34 UTC
I know this is not the right place to complain but since the build documents tell me that STLport4 is required for building I will file a bug here in case someone can help me. I have huge problems building STLport4 with Forte 6U1 (even with EA 6U2). This must have been done before so if anyone is willing to help I'd appreciate. [doehrm@sun9 ~/STLport-4.0/src]$ CC -V CC: Sun WorkShop 6 update 1 C++ 5.2 Patch 109509-02 2001/03/04 doehrm@sun9 ~/STLport-4.0/src]$ gmake -f sunpro6.mak mkdir -p obj/SUN/Release CC -mt -library=%none,Crun -template=wholeclass -I. -I/export/home/doehrm/STLpor t-4.0/src/../stlport -D__SGI_STL_OWN_IOSTREAMS -O2 -Qoption iropt -R,-Ml30,-Ms30 ,-Mi1000000,-Mm1000000,-Mr1000000,-Ma1000000,-Mc1000000,-Mt1000000 complex.cpp - c -o obj/SUN/Release/complex.o "/export/home/doehrm/STLport-4.0/src/../stlport/stl/_iterator_base.h", line 69: Error: Invalid template parameter default. "/export/home/doehrm/STLport-4.0/src/../stlport/stl/_iterator_base.h", line 69: Error: Invalid template parameter default. "/export/home/doehrm/STLport-4.0/src/../stlport/stl/_iterator_base.h", line 79: Error: Too many arguments for template _STL::iterator. "/export/home/doehrm/STLport-4.0/src/../stlport/stl/_iterator_base.h", line 185: Error: Too many arguments for template _STL::iterator. "/export/home/doehrm/STLport-4.0/src/../stlport/stl/_iterator_base.h", line 187: Error: Too many arguments for template _STL::iterator. "/export/home/doehrm/STLport-4.0/src/../stlport/stl/_iterator_base.h", line 189: Error: Too many arguments for template _STL::iterator. "/export/home/doehrm/STLport-4.0/src/../stlport/stl/_iterator_base.h", line 195: Error: Templates can only declare classes or functions. "/export/home/doehrm/STLport-4.0/src/../stlport/stl/_iterator_base.h", line 195: Error: Use ";" to terminate statements. "/export/home/doehrm/STLport-4.0/src/../stlport/stl/_iterator_base.h", line 195: Error: A declaration was expected instead of "return". "/export/home/doehrm/STLport-4.0/src/../stlport/stl/_iterator_base.h", line 195: Error: ")" expected instead of "*". "/export/home/doehrm/STLport-4.0/src/../stlport/stl/_iterator_base.h", line 205: Error: iterator is not defined. "/export/home/doehrm/STLport-4.0/src/../stlport/stl/_iterator_base.h", line 205: Error: "," expected instead of "<". "/export/home/doehrm/STLport-4.0/src/../stlport/stl/_iterator_base.h", line 205: Error: Use ";" to terminate declarations. "/export/home/doehrm/STLport-4.0/src/../stlport/stl/_iterator_base.h", line 205: Error: A declaration was expected instead of "<". "/export/home/doehrm/STLport-4.0/src/../stlport/stl/_iterator_base.h", line 205: Error: Use ";" to terminate declarations. "/export/home/doehrm/STLport-4.0/src/../stlport/stl/_iterator_base.h", line 205: Error: A declaration does not specify a tag or an identifier. "/export/home/doehrm/STLport-4.0/src/../stlport/stl/_iterator_base.h", line 205: Error: Use ";" to terminate declarations. "/export/home/doehrm/STLport-4.0/src/../stlport/stl/_iterator_base.h", line 205: Error: A declaration was expected instead of ",". "/export/home/doehrm/STLport-4.0/src/../stlport/stl/_iterator_base.h", line 205: Error: A declaration does not specify a tag or an identifier. "/export/home/doehrm/STLport-4.0/src/../stlport/stl/_iterator_base.h", line 205: Error: Use ";" to terminate declarations. "/export/home/doehrm/STLport-4.0/src/../stlport/stl/_iterator_base.h", line 205: Error: A declaration was expected instead of ",". "/export/home/doehrm/STLport-4.0/src/../stlport/stl/_iterator_base.h", line 205: Error: A declaration does not specify a tag or an identifier. "/export/home/doehrm/STLport-4.0/src/../stlport/stl/_iterator_base.h", line 205: Error: Use ";" to terminate declarations. "/export/home/doehrm/STLport-4.0/src/../stlport/stl/_iterator_base.h", line 205: Error: A declaration was expected instead of ",". "/export/home/doehrm/STLport-4.0/src/../stlport/stl/_iterator_base.h", line 205: Error: A declaration does not specify a tag or an identifier. Compilation aborted, too many Error messages. gmake: *** [obj/SUN/Release/complex.o] Error 1 Are here any gurus available that could give me a hint? Thanx alot!
Markus, this is the right place to complain. I forward this to our Solaris-builder. Sander, are you a guru? ;-)
I tried now to build with WS 5.0 (latest patches from http://access1.sun.com/forte/workshop5-patches.html), it's now building. Since WS 6U1 is required it should be possible to build STLport 4.0 (or greater) with this compiler. If you need more information please contact me.
But it *IS* possible to build STLport4 with WS6U1 - just make sure your amend include path the makefile to point at /usr/include Strictly speaking, this is a STLport4 (distribution) bug, but oh well... Clsoe the issue if this fixes it.
sorry, but really don't get it... *sigh* The path is set to STL_INCL= -I. -I${PWD}/../stlport I tried all variants, at first position, at last, in the middle. It then complains about a missing <stl/_config.h> and <complex> that is in ../stlport so this path _must_ be included. But including that gives me the stated error. I think you asume that 6U1 comes with its own STL implementation of certain headers that should be used right? Couldn't this have something to do with the marko D__USE_SGI_STL_OWN_IOSTREAM? Or with -library=%none%,Crun ? I'm not soooo deep into this compiler.. *deep-sigh*
If you take a look at the docs, they would tell you to put a /SC5 after I${PWD}/../stlport
WOW, it's building! STL_INCL= -I/usr/include -I. -I${PWD}/../stlport/SC5 is what I set. IMHO this should be add to the build documentation. Thank you _very_ much for you help!
As agreed on I will close these resolved fixed issues now. If you have trouble with that, please re-open the issue.