I'm trying to build the newest KDE beta 2 version using their Konstruct build environment [1]. I've succesfully built this version at home but at the office, the build fails with the message: parse.o(.text+0x13f0): In function `try_command': : undefined reference to `WIFEXITED' parse.o(.text+0x1400): In function `try_command': : undefined reference to `WEXITSTATUS' collect2: ld returned 1 exit status make[7]: *** [pkg-config] Error 1 Any suggestions what could be the problem? (Please cc me on responses.) I'm running Debian GNU/Linux and listed the versions of tools and libraries below [2]. Auke 1. http://developer.kde.org/build/konstruct/ 2. This should be a sufficient list of versions of packages, I think: jilderda@pc6607:~/shed/konstruct/kde/kdebase$ dpkg -l | grep gcc ii gcc 3.3.2-1 The GNU C compiler ii gcc-3.3 3.3.2-4 The GNU C compiler ii gcc-3.3-base 3.3.2-4 The GNU Compiler Collection (base package) ii gcc-3.3-doc 3.3.2-4 Documentation for the GNU compilers (gcc, go ii libgcc1 3.3.2-4 GCC support library jilderda@pc6607:~/shed/konstruct/kde/kdebase$ dpkg -l | grep cpp ii cpp 3.3.2-1 The GNU C preprocessor (cpp) ii cpp-3.3 3.3.2-4 The GNU C preprocessor jilderda@pc6607:~/shed/konstruct/kde/kdebase$ dpkg -l | grep libc ii libc-client200 2001adebian-6 UW c-client library for mail protocols ii libc6 2.3.2.ds1-10 GNU C Library: Shared libraries and Timezone ii libc6-dev 2.3.2.ds1-10 GNU C Library: Development Libraries and Hea ii libcap1 1.10-12 support for getting/setting POSIX.1e capabil ii libcapplet0 1.4.0.5-3 Library for Gnome Control Center applets ii libcapplet1 1.5.11-3 Library for Gnome Control Center applets ii libcdparanoia0 3a9.8-7 Shared libraries for cdparanoia (runtime lib ii libcgi-perl 2.76-20 modules for perl5, for use in writing CGI sc ii libcomerr1-ker 1.2.2-2 ComErr Libraries for Kerberos4 From KTH ii libcompress-zl 1.16-1.1 Perl module for creation and manipulation of ii libcupsys2 1.1.19final-1 Common UNIX Printing System(tm) - libs ii libcurl2 7.10.4-1 Multi-protocol file transfer library, now wi ii libdb1-compat 2.1.3-7 The Berkeley database routines [glibc 2.0/2. ii libgpmg1 1.19.6-12 General Purpose Mouse Library [libc6] jilderda@pc6607:~/shed/konstruct/kde/kdebase$ dpkg -l | grep libstd ii libstdc++2.10- 2.95.4-11woody The GNU stdc++ library rc libstdc++3 3.0.4-7 The GNU stdc++ library version 3 ii libstdc++5 3.3.2-4 The GNU Standard C++ Library v3 ii libstdc++5-3.3 3.3.2-4 The GNU Standard C++ Library v3 (development jilderda@pc6607:~/shed/konstruct/kde/kdebase$ -- PGP 0x4A34DD6D
jilderda@pc6607:~/shed/konstruct/kde/kdebase$ make install [===== NOW BUILDING: kdebase-3.1.94 =====] [fetch] complete for kdebase. [checksum] complete for kdebase. [extract] complete for kdebase. [patch] complete for kdebase. ==> Building kde/kdelibs as a dependency make[1]: Entering directory `/home/jilderda/shed/konstruct/kde/kdelibs' [===== NOW BUILDING: kdelibs-3.1.94 =====] [fetch] complete for kdelibs. [checksum] complete for kdelibs. [extract] complete for kdelibs. [patch] complete for kdelibs. ==> Building libs/arts as a dependency make[2]: Entering directory `/home/jilderda/shed/konstruct/libs/arts' [===== NOW BUILDING: arts-1.1.94 =====] [fetch] complete for arts. [checksum] complete for arts. [extract] complete for arts. [patch] complete for arts. ==> Building libs/glib as a dependency make[3]: Entering directory `/home/jilderda/shed/konstruct/libs/glib' [===== NOW BUILDING: glib-2.2.3 =====] [fetch] complete for glib. [checksum] complete for glib. [extract] complete for glib. [patch] complete for glib. ==> Building misc/pkgconfig as a dependency make[4]: Entering directory `/home/jilderda/shed/konstruct/misc/pkgconfig' [===== NOW BUILDING: pkgconfig-0.15.0 =====] [fetch] complete for pkgconfig. [checksum] complete for pkgconfig. [extract] complete for pkgconfig. [patch] complete for pkgconfig. [configure] complete for pkgconfig. ==> Running make in work/pkgconfig-0.15.0 make[5]: Entering directory `/home/jilderda/shed/konstruct/misc/pkgconfig/work/pkgconfig-0.15.0' make all-recursive make[6]: Entering directory `/home/jilderda/shed/konstruct/misc/pkgconfig/work/pkgconfig-0.15.0' Making all in glib-1.2.8 make[7]: Entering directory `/home/jilderda/shed/konstruct/misc/pkgconfig/work/pkgconfig-0.15.0/glib-1.2.8' make all-recursive make[8]: Entering directory `/home/jilderda/shed/konstruct/misc/pkgconfig/work/pkgconfig-0.15.0/glib-1.2.8' Making all in . make[9]: Entering directory `/home/jilderda/shed/konstruct/misc/pkgconfig/work/pkgconfig-0.15.0/glib-1.2.8' make[9]: Nothing to be done for `all-am'. make[9]: Leaving directory `/home/jilderda/shed/konstruct/misc/pkgconfig/work/pkgconfig-0.15.0/glib-1.2.8' Making all in gmodule make[9]: Entering directory `/home/jilderda/shed/konstruct/misc/pkgconfig/work/pkgconfig-0.15.0/glib-1.2.8/gmodule' make[9]: Nothing to be done for `all'. make[9]: Leaving directory `/home/jilderda/shed/konstruct/misc/pkgconfig/work/pkgconfig-0.15.0/glib-1.2.8/gmodule' Making all in gthread make[9]: Entering directory `/home/jilderda/shed/konstruct/misc/pkgconfig/work/pkgconfig-0.15.0/glib-1.2.8/gthread' make[9]: Nothing to be done for `all'. make[9]: Leaving directory `/home/jilderda/shed/konstruct/misc/pkgconfig/work/pkgconfig-0.15.0/glib-1.2.8/gthread' Making all in docs make[9]: Entering directory `/home/jilderda/shed/konstruct/misc/pkgconfig/work/pkgconfig-0.15.0/glib-1.2.8/docs' make[9]: Nothing to be done for `all'. make[9]: Leaving directory `/home/jilderda/shed/konstruct/misc/pkgconfig/work/pkgconfig-0.15.0/glib-1.2.8/docs' Making all in tests make[9]: Entering directory `/home/jilderda/shed/konstruct/misc/pkgconfig/work/pkgconfig-0.15.0/glib-1.2.8/tests' make[9]: Nothing to be done for `all'. make[9]: Leaving directory `/home/jilderda/shed/konstruct/misc/pkgconfig/work/pkgconfig-0.15.0/glib-1.2.8/tests' make[8]: Leaving directory `/home/jilderda/shed/konstruct/misc/pkgconfig/work/pkgconfig-0.15.0/glib-1.2.8' make[7]: Leaving directory `/home/jilderda/shed/konstruct/misc/pkgconfig/work/pkgconfig-0.15.0/glib-1.2.8' make[7]: Entering directory `/home/jilderda/shed/konstruct/misc/pkgconfig/work/pkgconfig-0.15.0' /bin/sh ./libtool --mode=link cc -I/usr/local/kde3.2-beta2/include -I/usr/X11R6/include -L/usr/local/kde3.2-beta2/lib -L/usr/X11R6/lib -O2 -pipe -I/usr/local/kde3.2-beta2/include -I/usr/X11R6/include -L/usr/local/kde3.2-beta2/lib -L/usr/X11R6/lib -O2 -pipe -I/usr/local/kde3.2-beta2/include -I/usr/X11R6/include -L/usr/local/kde3.2-beta2/lib -L/usr/X11R6/lib -O2 -pipe -I/usr/local/kde3.2-beta2/include -I/usr/X11R6/include -L/usr/local/kde3.2-beta2/lib -L/usr/X11R6/lib -O2 -pipe -I/usr/local/kde3.2-beta2/include -I/usr/X11R6/include -L/usr/local/kde3.2-beta2/lib -L/usr/X11R6/lib -O2 -pipe -L/usr/local/kde3.2-beta2/lib -L/usr/X11R6/lib -L/usr/local/kde3.2-beta2/lib -L/usr/X11R6/lib -L/usr/local/kde3.2-beta2/lib -L/usr/X11R6/lib -L/usr/local/kde3.2-beta2/lib -L/usr/X11R6/lib -L/usr/local/kde3.2-beta2/lib -L/usr/X11R6/lib -o pkg-config pkg.o partial-glib.o parse.o main.o findme.o popt.o poptconfig.o popthelp.o poptparse.o glib-1.2.8/libglib.la cc -I/usr/local/kde3.2-beta2/include -I/usr/X11R6/include -O2 -pipe -I/usr/local/kde3.2-beta2/include -I/usr/X11R6/include -O2 -pipe -I/usr/local/kde3.2-beta2/include -I/usr/X11R6/include -O2 -pipe -I/usr/local/kde3.2-beta2/include -I/usr/X11R6/include -O2 -pipe -I/usr/local/kde3.2-beta2/include -I/usr/X11R6/include -O2 -pipe -o pkg-config pkg.o partial-glib.o parse.o main.o findme.o popt.o poptconfig.o popthelp.o poptparse.o -L/usr/local/kde3.2-beta2/lib -L/usr/X11R6/lib glib-1.2.8/.libs/libglib.al parse.o(.text+0x13f0): In function `try_command': : undefined reference to `WIFEXITED' parse.o(.text+0x1400): In function `try_command': : undefined reference to `WEXITSTATUS' collect2: ld returned 1 exit status make[7]: *** [pkg-config] Error 1 make[7]: Leaving directory `/home/jilderda/shed/konstruct/misc/pkgconfig/work/pkgconfig-0.15.0' make[6]: *** [all-recursive] Error 1 make[6]: Leaving directory `/home/jilderda/shed/konstruct/misc/pkgconfig/work/pkgconfig-0.15.0' make[5]: *** [all-recursive-am] Error 2 make[5]: Leaving directory `/home/jilderda/shed/konstruct/misc/pkgconfig/work/pkgconfig-0.15.0' make[4]: *** [build-work/pkgconfig-0.15.0/Makefile] Error 2 make[4]: Leaving directory `/home/jilderda/shed/konstruct/misc/pkgconfig' make[3]: *** [dep-../../misc/pkgconfig] Error 2 make[3]: Leaving directory `/home/jilderda/shed/konstruct/libs/glib' make[2]: *** [dep-../../libs/glib] Error 2 make[2]: Leaving directory `/home/jilderda/shed/konstruct/libs/arts' make[1]: *** [dep-../../libs/arts] Error 2 make[1]: Leaving directory `/home/jilderda/shed/konstruct/kde/kdelibs' make: *** [dep-../../kde/kdelibs] Error 2 jilderda@pc6607:~/shed/konstruct/kde/kdebase$