From kde-core-devel Wed Nov 28 02:03:04 2001 From: Hans Meine Date: Wed, 28 Nov 2001 02:03:04 +0000 To: kde-core-devel Subject: 2_2_BRANCH compile error on Solaris? X-MARC-Message: https://marc.info/?l=kde-core-devel&m=100693463116939 Hi! I got a strange compile error under Solaris with the current 2.2 tree, can somebody remember any change which could have caused this? ____________________________________________________________________ c++ -DHAVE_CONFIG_H -I. -I../../../kdelibs/kdecore -I.. -I../../../kdelibs/dcop -I../../../kdelibs/libltdl -I../../../kdelibs/kdecore -I../../../kdelibs/kdeui -I../../../kdelibs/kssl -I/software/qt-2.3.0/SunOS-5.6/include -I/software/kde-2.2/include -I/software/jpeg-6b/include -I/software/zlib-1.1.3/include -I/software/openssl-0.9.6b/SunOS-5.6/include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4 -DNDEBUG -O2 -fno-exceptions -fno-check-new -ftemplate-depth-99 -DQT_NO_TRANSLATION -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST -Wp,-MD,.deps/kapp.pp -c ../../../kdelibs/kdecore/kapp.cpp -fPIC -DPIC -o .libs/kapp.o In file included from /usr/include/netdb.h:98, from ../../../kdelibs/kdecore/kapp.cpp:103: /usr/include/sys/socket.h:61: declaration does not declare anything gmake[3]: *** [kapp.lo] Error 1 ____________________________________________________________________ Older 2.2 CVS (kapp.h from 2001/09/15) worked, though. If you are as curious as I was, the offending line is the second typedef in the following snippet: ____________________________________________________________________ #ifndef _SOCKLEN_T #define _SOCKLEN_T #if defined(_XPG4_2) && !defined(_XPG5) && !defined(_LP64) typedef size_t socklen_t; #else typedef uint32_t socklen_t; #endif /* defined(_XPG4_2) && !defined(_XPG5) && !defined(_LP64) */ ____________________________________________________________________ Hmm, seems to be some strange #define somewhere else. -- Ciao, / / /--/ / / ANS .,* Hamburg, Germany *,.