This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: cvs build problem with 2.95
- From: Daniel Jacobowitz <drow at false dot org>
- To: gdb at sources dot redhat dot com
- Date: Sat, 17 Apr 2004 10:35:53 -0400
- Subject: Re: cvs build problem with 2.95
- References: <20040417135354.GB7050@ata.cs.hun.edu.tr>
On Sat, Apr 17, 2004 at 03:53:54PM +0200, Baurjan Ismagulov wrote:
> Hello,
>
> I'm trying to build the latest cvs with gcc 2.95 on a Debian woody/sid
> system. Compilation of tcl/generic/tclPipe.c fails at the line 281 with
> an error of "storage size of `waitStatus' isn't known". The variable is
> declared as "WAIT_STATUS_TYPE waitStatus", which expands to "union
> wait". NO_SYS_WAIT_H is set, and sys/wait.h doesn't get included from
> tcl/unix/tclUnixPort.h.
>
> configure invoked from make in one of subdirectories says "checking for
> sys/wait.h... no". An excerpt from tcl/unix/config.log is given below. I
> am not sure why gcc -E should return a non-zero exit status in case of
> warnings. Besides, I've tried to reproduce the problem by preprocessing
> the sample from config.log with a confdefs.h from libiberty/config.log;
> the sample compiled without problems and gcc -E returned 0.
>
> So, the questions:
>
> 1. How should I correct this problem? I want to compile the latest cvs.
>
> 2. Where is the correct confdefs.h? I want to be able to reproduce
> configure tests.
Fix your headers. Your <linux/compiler.h> is bad. I don't know what
you're running, but it looks like you grabbed an old version of
linux-kernel-headers from Debian/sid - get a newer one.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer