On Mon, Jan 05, 2004 at 02:03:38PM +0100, Auke Jilderda wrote: > 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]. WIFEXITED and WEXITSTATUS are macros usually defined in /usr/include/sys/wait.h and these macros should have been expanded during the compilation stage of parse.c. At first have a look in config.h in /home/jilderda/shed/konstruct/misc/pkgconfig/work/pkgconfig-0.15.0 whether the macro HAVE_SYS_WAIT_H is defined to 1. If not have a look at config.log what went wrong and why the configure test didn't succeed. Then remove parse.o and run make in order to build it again. On my system it is running this command to compile parse.c: gcc -DHAVE_CONFIG_H -I. -I. -I. -DPKGLIBDIR="\"/usr/lib/pkgconfig\"" -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2 -c parse.c If make doesn't succeed you should just pre-process the input file and have a look at what gets included and why these macros aren't defined by running the command manually with specifying "-E -dD" instead of "-g -O2 -c" in the command line you see when running make. You might want to pipe the output through less or into a file. Perhaps you should post your question again to a pkg-config or Konstruct specific forum / mailing list as this is not per se a GCC issue. HTH -- Claudio Bley ASCII ribbon campaign (") Debian GNU/Linux user - against HTML email X http://www.cs.uni-magdeburg.de/~bley/ & vCards / \