Compile error in kdirwatch

Ingo Klöcker kloecker at kde.org
Wed Oct 19 21:02:16 BST 2005


Hi,

compiling kdirwatch.cpp fails as seen below. And yes, this problem does 
still exist in trunk because kdirwatch*.* was changed the last time 13 
days ago. The problem is caused by the fact the I use DNOTIFY but not 
INOTIFY. Therefore the following code _obviously_ can't compile:

#ifdef HAVE_DNOTIFY

  // if we have inotify, disable dnotify.
  // otherwise, not guilty until proven guilty.
  supports_dnotify = !supports_inotify;

because in order to save one bit of memory supports_inotify is not 
declared in KDirWatchPrivate if HAVE_INOTIFY is 0.

Am I pissed? You can be damn sure I'm pissed because how am I supposed 
to port KMail if you hinder me by breaking compilation in the snapshot.

31% 
compiling /home/kde4/svn/kde/branches/work/kdelibs4_snapshot/kio/kio/kdirwatch.cpp
g++ -DHAVE_CONFIG_H -I./kio/kio 
-I/home/kde4/svn/kde/branches/work/kdelibs4_snapshot/kio/kio -I. 
-I/home/kde4/svn/kde/branches/work/kdelibs4_snapshot 
-I/home/kde4/svn/kde/branches/work/kdelibs4_snapshot/kio/kio/.. 
-I/home/kde4/svn/kde/branches/work/kdelibs4_snapshot/kdecore/network 
-I/home/kde4/svn/kde/branches/work/kdelibs4_snapshot/kio/kio/../kssl 
-I./kio/kio/../kssl 
-I/home/kde4/svn/kde/branches/work/kdelibs4_snapshot/kio/kio/../../interfaces 
-I/home/kde4/svn/kde/branches/work/kdelibs4_snapshot/dcop 
-I/home/kde4/svn/kde/branches/work/kdelibs4_snapshot/libltdl 
-I/home/kde4/svn/kde/branches/work/kdelibs4_snapshot/kdefx -I./kdecore 
-I/home/kde4/svn/kde/branches/work/kdelibs4_snapshot/kdecore 
-I/home/kde4/svn/kde/branches/work/kdelibs4_snapshot/kdeui 
-I/home/kde4/svn/kde/branches/work/kdelibs4_snapshot/kio 
-I/home/kde4/svn/kde/branches/work/kdelibs4_snapshot/kio/kio 
-I/home/kde4/svn/kde/branches/work/kdelibs4_snapshot/kio/kfile 
-I/home/kde4/svn/kde/branches/work/kdelibs4_snapshot 
-I/opt/qt4-copy/include -I/opt/qt4-copy/include/Qt 
-I/opt/qt4-copy/include/QtCore -I/opt/qt4-copy/include/QtGui 
-I/opt/qt4-copy/include/Qt3Support -I/usr/X11R6/include 
-I/opt/kde4-svn/include -D_LARGEFILE64_SOURCE -DQT_THREAD_SUPPORT 
-D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi 
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion 
-Wchar-subscripts -Wall -W -Wpointer-arith -g3 -fno-inline 
-Wformat-security -Wmissing-format-attribute -fno-exceptions 
-fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_CAST_TO_ASCII 
-DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DQT3_SUPPORT -fPIC 
-DPIC 
-c /home/kde4/svn/kde/branches/work/kdelibs4_snapshot/kio/kio/kdirwatch.cpp 
-o ./kio/kio/.libs/kdirwatch.o -Wp,-MD,./kio/kio/.deps/kdirwatch.TUlo
/home/kde4/svn/kde/branches/work/kdelibs4_snapshot/kio/kio/kdirwatch.cpp: 
In
   constructor `KDirWatchPrivate::KDirWatchPrivate()':
/home/kde4/svn/kde/branches/work/kdelibs4_snapshot/kio/kio/kdirwatch.cpp:266: 
error: `
   supports_inotify' undeclared (first use this function)
/home/kde4/svn/kde/branches/work/kdelibs4_snapshot/kio/kio/kdirwatch.cpp:266: 
error: (Each
   undeclared identifier is reported only once for each function it 
appears
   in.)
Error creating ./kio/kio/kdirwatch.lo. Exit status 1.

Regards,
Ingo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20051019/ebf96733/attachment.sig>


More information about the kde-core-devel mailing list