[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with compiling sighandle.c on CVS 1.11.19 with GCC 3.2.2 on
Re: Problem with compiling sighandle.c on CVS 1.11.19 with GCC 3.2.2 on Solaris 9
Tue, 22 Mar 2005 09:51:29 -0500
Mozilla Thunderbird 1.0 (Windows/20041206)
-----BEGIN PGP SIGNED MESSAGE-----
mac a cody wrote:
| I trying to compile cvs 1.11.19 on a Sun workstation running
| Solaris 9 with GCC 3.2.2. After performing configure as follows...
| ./configure --prefix=/products/cvs-1.11.19/local
| ... and performing make, the following problem occurs while trying
| to compile sighandle.c:
| if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -g -O2 -MT
| sighandle.o \ -MD -MP -MF ".deps/signhandle.Tpo" -c -o sighandle.o
| sighandle.c; \ then mv -f ".deps/signhandle.Tpo"
| ".deps/signhandle.Po"; \ else rm -f ".deps/signhandle.Tpo" ; exit
| 1; fi In file included from system.h:15, from sighandle.c:34:
| /usr/include/sys/stat.h:274: error: parse error before "blksize_t"
| /usr/include/sys/stat.h:278: error: parse error before '}' token
| /usr/include/sys/stat.h:334: error: parse error before "blksize_t"
| /usr/include/sys/stat.h:335: error: conflicting types for
| 'st_blocks' /usr/include/sys/stat.h:275: error: previous
| declaration of 'st_blocks' /usr/include/sys/stat.h:338: error:
| parse error before '}' token make: *** [sighandle.o] Error 1
| make: Leaving directory '/products/cvs-1.11.19/lib' make: ***
| [all-recursive] Error 1 make: Leaving directory
| '/products/cvs-1.11.19' make: *** [all] Error 2
| Any ideas what the problem might be? I had no problem compiling
| cvs 1.11.11 last year with GCC 2.95.3 (IIRC). I didn't think I'd
| encounter this problem. Thanks in advance for help or pointers.
Only system headers and a little bit of other cruft should have been
included via src/cvs.h and lib/system.h by this point in the compile
process. Is it possible that something was defined in the ./config.h
created by configure (included from src/cvs.h) that interferes with
your system header in some way, but since this problem has not been
reported before and Solaris is a fairly common platform, I would guess
that your GCC installation is broken somehow.
The best place to start would probably be line 274 of your
/usr/include/sys/stat.h. There's probably some symbol incorrectly
defined on a preceding line that is causing the error message. See if
you can figure out how that symbol got defined. Other avenues to
investigate might be whether you have a sys/stat.h that isn't
protected against double-inclusion or perhaps that requires that some
other header be included first.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----