Hello,

I'm trying to install Qt 4.5.2 on OpenSolaris snv_123 and I can't get it to compile.

I've tried wth both SunStudio 12u1 and gcc-4.3.2.

After editing mkspecs/solaris-g++/qmake.conf to point to the correct binaries and paths I issued:

Qt Code:
  1. ./configure -prefix /opt/qt452 -opensource -fast -platform solaris-g++
To copy to clipboard, switch view to plain text mode 

which now completes successfully. After that I run
Qt Code:
  1. gmake -sj2
To copy to clipboard, switch view to plain text mode 
and after a while I get:
Qt Code:
  1. /usr/include/sys/regset.h:105:1: warning: this is the location of the previous definition
  2. /usr/lib/gcc/i386-pc-solaris2.11/4.3.2/../../../../include/c++/4.3.2/bits/boost_concept_check.h: In member function ‘void __gnu_cxx::_ComparableConcept<_Tp>::__constraints() [with _Tp = WebCore::TimerHeapIterator]’:
  3. /usr/lib/gcc/i386-pc-solaris2.11/4.3.2/../../../../include/c++/4.3.2/bits/boost_concept_check.h:62: instantiated from ‘void __gnu_cxx::__function_requires() [with _Concept = __gnu_cxx::_ComparableConcept<WebCore::TimerHeapIterator>]’
  4. /usr/lib/gcc/i386-pc-solaris2.11/4.3.2/../../../../include/c++/4.3.2/bits/boost_concept_check.h:529: instantiated from ‘void __gnu_cxx::_RandomAccessIteratorConcept<_Tp>::__constraints() [with _Tp = WebCore::TimerHeapIterator]’
  5. /usr/lib/gcc/i386-pc-solaris2.11/4.3.2/../../../../include/c++/4.3.2/bits/boost_concept_check.h:62: instantiated from ‘void __gnu_cxx::__function_requires() [with _Concept = __gnu_cxx::_RandomAccessIteratorConcept<WebCore::TimerHeapIterator>]’
  6. /usr/lib/gcc/i386-pc-solaris2.11/4.3.2/../../../../include/c++/4.3.2/bits/boost_concept_check.h:553: instantiated from ‘void __gnu_cxx::_Mutable_RandomAccessIteratorConcept<_Tp>::__constraints() [with _Tp = WebCore::TimerHeapIterator]’
  7. /usr/lib/gcc/i386-pc-solaris2.11/4.3.2/../../../../include/c++/4.3.2/bits/boost_concept_check.h:62: instantiated from ‘void __gnu_cxx::__function_requires() [with _Concept = __gnu_cxx::_Mutable_RandomAccessIteratorConcept<WebCore::TimerHeapIterator>]’
  8. /usr/lib/gcc/i386-pc-solaris2.11/4.3.2/../../../../include/c++/4.3.2/bits/stl_heap.h:162: instantiated from ‘void std::push_heap(_RAIter, _RAIter) [with _RAIter = WebCore::TimerHeapIterator]’
  9. platform/Timer.cpp:230: instantiated from here
  10. /usr/lib/gcc/i386-pc-solaris2.11/4.3.2/../../../../include/c++/4.3.2/bits/boost_concept_check.h:267: error: no match for ‘operator>’ in ‘((__gnu_cxx::_ComparableConcept<WebCore::TimerHeapIterator>*)this)->__gnu_cxx::_ComparableConcept<WebCore::TimerHeapIterator>::__a > ((__gnu_cxx::_ComparableConcept<WebCore::TimerHeapIterator>*)this)->__gnu_cxx::_ComparableConcept<WebCore::TimerHeapIterator>::__b’
  11. /usr/lib/gcc/i386-pc-solaris2.11/4.3.2/../../../../include/c++/4.3.2/bits/boost_concept_check.h:268: error: no match for ‘operator<=’ in ‘((__gnu_cxx::_ComparableConcept<WebCore::TimerHeapIterator>*)this)->__gnu_cxx::_ComparableConcept<WebCore::TimerHeapIterator>::__a <= ((__gnu_cxx::_ComparableConcept<WebCore::TimerHeapIterator>*)this)->__gnu_cxx::_ComparableConcept<WebCore::TimerHeapIterator>::__b’
  12. /usr/lib/gcc/i386-pc-solaris2.11/4.3.2/../../../../include/c++/4.3.2/bits/boost_concept_check.h:269: error: no match for ‘operator>=’ in ‘((__gnu_cxx::_ComparableConcept<WebCore::TimerHeapIterator>*)this)->__gnu_cxx::_ComparableConcept<WebCore::TimerHeapIterator>::__a >= ((__gnu_cxx::_ComparableConcept<WebCore::TimerHeapIterator>*)this)->__gnu_cxx::_ComparableConcept<WebCore::TimerHeapIterator>::__b’
  13. /usr/lib/gcc/i386-pc-solaris2.11/4.3.2/../../../../include/c++/4.3.2/bits/boost_concept_check.h: In member function ‘void __gnu_cxx::_ForwardIteratorConcept<_Tp>::__constraints() [with _Tp = WebCore::TimerHeapIterator]’:
  14. /usr/lib/gcc/i386-pc-solaris2.11/4.3.2/../../../../include/c++/4.3.2/bits/boost_concept_check.h:62: instantiated from ‘void __gnu_cxx::__function_requires() [with _Concept = __gnu_cxx::_ForwardIteratorConcept<WebCore::TimerHeapIterator>]’
  15. /usr/lib/gcc/i386-pc-solaris2.11/4.3.2/../../../../include/c++/4.3.2/bits/boost_concept_check.h:502: instantiated from ‘void __gnu_cxx::_BidirectionalIteratorConcept<_Tp>::__constraints() [with _Tp = WebCore::TimerHeapIterator]’
  16. /usr/lib/gcc/i386-pc-solaris2.11/4.3.2/../../../../include/c++/4.3.2/bits/boost_concept_check.h:62: instantiated from ‘void __gnu_cxx::__function_requires() [with _Concept = __gnu_cxx::_BidirectionalIteratorConcept<WebCore::TimerHeapIterator>]’
  17. /usr/lib/gcc/i386-pc-solaris2.11/4.3.2/../../../../include/c++/4.3.2/bits/boost_concept_check.h:528: instantiated from ‘void __gnu_cxx::_RandomAccessIteratorConcept<_Tp>::__constraints() [with _Tp = WebCore::TimerHeapIterator]’
  18. /usr/lib/gcc/i386-pc-solaris2.11/4.3.2/../../../../include/c++/4.3.2/bits/boost_concept_check.h:62: instantiated from ‘void __gnu_cxx::__function_requires() [with _Concept = __gnu_cxx::_RandomAccessIteratorConcept<WebCore::TimerHeapIterator>]’
  19. /usr/lib/gcc/i386-pc-solaris2.11/4.3.2/../../../../include/c++/4.3.2/bits/boost_concept_check.h:553: instantiated from ‘void __gnu_cxx::_Mutable_RandomAccessIteratorConcept<_Tp>::__constraints() [with _Tp = WebCore::TimerHeapIterator]’
  20. /usr/lib/gcc/i386-pc-solaris2.11/4.3.2/../../../../include/c++/4.3.2/bits/boost_concept_check.h:62: instantiated from ‘void __gnu_cxx::__function_requires() [with _Concept = __gnu_cxx::_Mutable_RandomAccessIteratorConcept<WebCore::TimerHeapIterator>]’
  21. /usr/lib/gcc/i386-pc-solaris2.11/4.3.2/../../../../include/c++/4.3.2/bits/stl_heap.h:162: instantiated from ‘void std::push_heap(_RAIter, _RAIter) [with _RAIter = WebCore::TimerHeapIterator]’
  22. platform/Timer.cpp:230: instantiated from here
  23. /usr/lib/gcc/i386-pc-solaris2.11/4.3.2/../../../../include/c++/4.3.2/bits/boost_concept_check.h:483: error: invalid initialization of non-const reference of type ‘WebCore::TimerHeapElement&’ from a temporary of type ‘WebCore::TimerHeapElement’
  24. gmake[1]: *** [.obj/release-shared/Timer.o] Error 1
  25. gmake[1]: *** Waiting for unfinished jobs....
  26. gmake: *** [sub-webkit-make_default-ordered] Error 2
  27. andrnils@t61p /export/src/qt-x11-opensource-src-4.5.2 =2
To copy to clipboard, switch view to plain text mode 

I've seen others with this problem on other 'exotic' platforms. Is there a workaround?