Check if header are self contained failed

Stephan Kulow coolo at kde.org
Wed Feb 21 14:48:26 GMT 2007


Am Mittwoch, 21. Februar 2007 11:55 schrieb Stephan Kulow:
> Hi!
>
> I checked (for a beginning kdecore) if the headers compile in itself.
> network especially does not:
>
> ./../network/ksocks.h:105: error: ‘kde_socklen_t’ has not been declared
> ./../network/ksocks.h:121: error: ‘kde_socklen_t’ has not been declared
> ./../network/ksocks.h:127: error: ‘kde_socklen_t’ has not been declared
> ./../network/ksocks.h:142: error: ‘kde_socklen_t’ has not been declared
> ./../network/ksocks.h:147: error: ‘kde_socklen_t’ has not been declared
> ./../network/ksocks.h:152: error: ‘kde_socklen_t’ has not been declared
> ./../network/ksocks.h:170: error: ‘kde_socklen_t’ has not been declared
> ./../network/ksocks.h:172: error: ‘kde_socklen_t’ has not been declared
> ./../network/syssocket.h:100: error: ‘::ioctl’ has not been declared
> ./../network/kmulticastsocketdevice.h:29:31: error: knetworkinterface.h:
> Datei oder Verzeichnis nicht gefunden
> ./../network/kmulticastsocket.h:67: error: ISO C++ forbids declaration
> of ‘KMulticastSocketImpl’ with no type
>
> kmulti* looks dead - but installed. And the other headers may require some
> installed config header?
>
Hi!

I extended this check now to all of kdelibs and put my scripts in svn (so my 
evil hack can be fixed by cmake gurus - at least excluded for 
non-UNIX/non-gcc).

I created a blacklist with header files that do not compile self contained 
atm. Some don't compile because the include paths do not fit, some because
they are broken. So the goal is to get the blacklist to a minimum.

To use it:
cd $srcdir/includetests
./update.sh
makeobj

If you take out files from the blacklist.txt and run ./update.sh again you 
should see the errors.

Greetings, Stephan




More information about the kde-core-devel mailing list