Version: (using KDE Devel) Installed from: Compiled sources Compiler: gcc version 2.95.3 20010315 (release) OS: Solaris Trying to compile kdebase on my Solaris 8 x86 box breaks at kdebase/kdesktop/lock/lockdlg.cc: source='lockdlg.cc' object='lockdlg.o' libtool=no \ depfile='.deps/lockdlg.Po' tmpdepfile='.deps/lockdlg.TPo' \ depmode=gcc /bin/ksh ../../admin/depcomp \ g++ -pipe -DHAVE_CONFIG_H -I. -I. -I../.. -I../../kcheckpass -I../../kdm/kfrontend -I/vol/kde-cvs/include -I/vol/qt-3.2.1/include -I/usr/openwin/include -I/vol/local/include -I/vol/graphics/include -I/vol/cups/include -I/vol/X11/include/freetype2 -DQT_THREAD_SUPPORT -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4 -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -fno-builtin -g -O2 -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -D_GNU_SOURCE -c -o lockdlg.o `test -f 'lockdlg.cc' || echo './'`lockdlg.cc In file included from lockprocess.h:21, from lockdlg.cc:11: /usr/openwin/include/X11/Xlib.h:32: warning: ignoring pragma: In file included from lockdlg.cc:46: /usr/openwin/include/X11/Xutil.h:56: warning: ignoring pragma: lockdlg.cc: In method `void PasswordDlg::gplugStart()': lockdlg.cc:424: `AF_LOCAL' undeclared (first use this function) lockdlg.cc:424: (Each undeclared identifier is reported only once lockdlg.cc:424: for each function it appears in.) make[3]: *** [lockdlg.o] Error 1 make[3]: Leaving directory `/vol/src/kde/cvs/kdebase/kdesktop/lock' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/vol/src/kde/cvs/kdebase/kdesktop' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/vol/src/kde/cvs/kdebase' make: *** [all] Error 2 Maybe there's a better place to do this, but adding the following lines to the beginning of this file seems to resolve this issue: --- snip --- #ifndef AF_LOCAL #define AF_LOCAL AF_UNIX #endif --- snip ---
The fix is correct. Can I commit it (frozen CVS and all...)?
Subject: kdebase/kdesktop/lock CVS commit by thiago: AF_LOCAL seems not to be present everywhere, even though it's the recommended value (POSIX)! CCMAIL: 68258-done@bugs.kde.org M +4 -0 lockdlg.cc 1.39 --- kdebase/kdesktop/lock/lockdlg.cc #1.38:1.39 @@ -48,4 +48,8 @@ #include <fixx11h.h> +#ifndef AF_LOCAL +# define AF_LOCAL AF_UNIX +#endif + #define PASSDLG_HIDE_TIMEOUT 10000