public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Undefined reference to `WIFEXITED'
@ 2004-01-05 12:58 Auke Jilderda
  2004-01-05 19:05 ` Claudio Bley
  0 siblings, 1 reply; 3+ messages in thread
From: Auke Jilderda @ 2004-01-05 12:58 UTC (permalink / raw)
  To: gcc-help

[-- Attachment #1: Type: text/plain, Size: 2875 bytes --]

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

[-- Attachment #2: build.log --]
[-- Type: text/x-log, Size: 6460 bytes --]

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$

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Undefined reference to `WIFEXITED'
  2004-01-05 12:58 Undefined reference to `WIFEXITED' Auke Jilderda
@ 2004-01-05 19:05 ` Claudio Bley
  2004-01-06 22:12   ` Auke Jilderda
  0 siblings, 1 reply; 3+ messages in thread
From: Claudio Bley @ 2004-01-05 19:05 UTC (permalink / raw)
  To: Auke Jilderda; +Cc: gcc-help

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 / \

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Undefined reference to `WIFEXITED'
  2004-01-05 19:05 ` Claudio Bley
@ 2004-01-06 22:12   ` Auke Jilderda
  0 siblings, 0 replies; 3+ messages in thread
From: Auke Jilderda @ 2004-01-06 22:12 UTC (permalink / raw)
  To: Claudio Bley; +Cc: gcc-help

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thank you, that helped. :-)  Turns out, configure had concluded that I didn't 
have the wait.h header file on my system.  Weird since I'm quite sure it has 
been there all the time but anyway, cleaning before rerunning configure set 
the macro and the build succeeded.  Thanks again!


Auke

On Monday 05 January 2004 20:04, Claudio Bley wrote:
>
> 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

- -- 
PGP 0x4A34DD6D
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)

iD8DBQE/+zK8CiAumEo03W0RAv4pAJ9CqQC20zA6UQTZLRV/B6aZvs8nUQCfdp9s
NlHlZrl4y+SYBXjTIwepAOI=
=4Gpw
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-01-06 22:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-05 12:58 Undefined reference to `WIFEXITED' Auke Jilderda
2004-01-05 19:05 ` Claudio Bley
2004-01-06 22:12   ` Auke Jilderda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).