[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 1.875c install problem on solaris 2.9.
From: |
Laurence Finston |
Subject: |
Re: 1.875c install problem on solaris 2.9. |
Date: |
Thu, 05 Aug 2004 00:12:52 +0200 |
User-agent: |
IMHO/0.98.3+G (Webmail for Roxen) |
-------------------
> I'm trying to install bison 1.875c on a solaris 2.9 and I've run into a
little
> problem. The configure correctly detects that stdint.h doesn't exist:
>
> $ ./configure
> checking for a BSD-compatible install... config/install-sh -c
> checking whether build environment is sane... yes
> checking for gawk... gawk
>
> [ blah blah blah ]
>
> checking for inttypes.h... yes
> checking for stdint.h... no
> checking for unistd.h... yes
>
> [ blah blah blah ]
>
> config.status: creating po/Makefile
> config.status: executing tests/atconfig commands
>
> $
>
> but the compile goes ahead and uses it anyway:
>
> $ make
> make all-recursive
>
> [ blah blah blah ]
>
> Making all in src
> make[2]: Entering directory `/home/rclayton/local/src/bison-1.875c/src'
> make all-am
> make[3]: Entering directory `/home/rclayton/local/src/bison-1.875c/src'
> gcc -DHAVE_CONFIG_H -DPKGDATADIR="/usr/local/share/bison"
> -DLOCALEDIR="/usr/local/share/locale" -I. -I. -I.. -I.. -I../lib
> -I/usr/local/include -g -O2 -MT LR0.o -MD -MP -MF .deps/LR0.Tpo -c -o
LR0.o
> LR0.c
>
> [ blah blah blah ]
>
> gcc -DHAVE_CONFIG_H -DPKGDATADIR="/usr/local/share/bison"
> -DLOCALEDIR="/usr/local/share/locale" -I. -I. -I.. -I.. -I../lib
> -I/usr/local/include -g -O2 -MT scan-gram.o -MD -MP -MF
.deps/scan-gram.Tpo
> -c -o scan-gram.o scan-gram.c
> scan-gram.c:36:55: stdint.h: No such file or directory
> make[3]: *** [scan-gram.o] Error 1
> make[3]: Leaving directory `/home/rclayton/local/src/bison-1.875c/src'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/home/rclayton/local/src/bison-1.875c/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/rclayton/local/src/bison-1.875c'
> make: *** [all] Error 2
>
> $ uname -a
> SunOS clayton 5.9 Generic_112233-06 sun4u sparc
>
> $ g++ -v
> Reading specs from
/usr/local2/bin/../lib/gcc-lib/sparc-sun-solaris2.9/3.3.2/specs
> Configured with: ./configure --prefix=/usr/local2/stow/gcc-3.3.2
> Thread model: posix
> gcc version 3.3.2
>
> $
>
> I have the full details if you want them.
>
When autoconf detects that a header file doesn't exist, a C preprocessor
variable will be undefined, e.g.,
#undef HAVE_STDINT_H (actually, I think it will just not be defined, but it
comes to the same thing).
If the `#include <stdint.h>' command isn't put inside in a conditional
construction like this:
#ifdef HAVE_STDINT_H
#include <stdint.h>
#else
...
#endif
then the C preprocessor will try to include it, which will cause the error.
I suggest just commenting out the `#include' command, but if this header file
contains declarations that are needed for compilation, it won't be long before
the next error occurs.
Am I correct in assuming that you're not using GCC and the GNU C standard
library? Have you checked that Bison has been ported to Solaris?
Laurence Finston