From kde-devel Thu Jun 17 10:41:20 2004 From: Damien Uern Date: Thu, 17 Jun 2004 10:41:20 +0000 To: kde-devel Subject: Re: KDE With Sun Forte C++ Message-Id: <200406171959.26067.morpheus_2606 () internode ! on ! net> X-MARC-Message: https://marc.info/?l=kde-devel&m=108749434915007 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, 16 Jun 2004 07:39 pm, Adriaan de Groot wrote: > I'm trying to build KDE with CC: Sun C++ 5.5 Patch 113817-07 2004/03/23 - > vaguely supposing that this is a supported compiler - and it's not going > very quickly. Here and there I've made changes to get stuff to compile, > like > > class A > { > private: > class B; > typedef QValueList BList; > > class B > { > private: > BList *m_list; > } > } > > which CC complains about (since BList is private in A) and gcc doesn't. > Library modules typically need -lCstd -lCrun -lc added. > > Anyway, questions: > > 1) Has anyone managed to compile KDE with Sun Forte C++? > 2) Which compiler is right wrt. the nesting issue above? > 3) I'm now working on kssl, and getting things like this: > > "kopenssl.cc", line 450: Error: Cannot assign rsa_st*(*)(int,unsigned > long,void(*)(int,int,void*),void*) to extern "C" rsa_st*(*)(int,unsigned > long,extern "C" void(*)(int,int,void*),void*). > "kopenssl.cc", line 451: Warning (Anachronism): Assigning int(*) > (__FILE*,X509_req_st*) to extern "C" int(*)(__FILE*,X509_req_st*). > "kopenssl.cc", line 452: Warning (Anachronism): Assigning void(*)() to > extern "C" void(*)(). > > > now, this tells me that Forte considers 'extern "C"' an additional type > modifier (instead of just linkage info), and that it's being a pain about > type coercion. For this bit of code, would it make sense to add the 'extern > "C"' s where needed? The packages for Sun Solaris hosted at kde.org are built with Sun's Forte compiler. I have no idea how the guy got it to work, but new packages for Solaris 8 built with Forte were recently announced on the kde-solaris mailing list. Damien - -- Bender: Life is hilariously cruel. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFA0XKDXHT3QsqXjYQRApHYAKCW3GqrfxL61d5XN/TAqDvxzIP9zACdHAkP Y17Md88CoXmfGA7UbQWNwvM= =4zIG -----END PGP SIGNATURE----- >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<