I downloaded global-6.6.14 but got a compiler error when I built it:
...
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I../libparser -I../libltdl
-I../libutil -I../libdb -I../libglibc -I ../libutil -g -O2 -MT asm_parse.o -MD
-MP -MF $depbase.Tpo -c -o asm_parse.o asm_parse.c &&\
mv -f $depbase.Tpo $depbase.Po
asm_parse.c:203:57: stdint.h: No such file or directory
make[2]: *** [asm_parse.o] Error 1
...
However, ./configure did indeed notice that my system doesn't have <stdint.h>.
I found it necessary to edit source file libparser/asm_parse.c as follows.
I changed lines 202-205 from
# if defined __STD_VERSION__ && 199901 <= __STD_VERSION__
# include <stdint.h> /* INFRINGES ON USER NAME SPACE */
# define YY_STDINT_H
# endif
to
# if defined HAVE_STDINT_H && defined __STD_VERSION__ && 199901
<= __STD_VERSION__
# include <stdint.h> /* INFRINGES ON USER NAME SPACE */
# define YY_STDINT_H
# endif
The only change was to insert "defined HAVE_STDINT_H &&" into the #if
expression on line 202.
The build was successful after that.
I am forwarding this to your attention without altering the gnu source
repository myself.
Cheers,
Don Bockenfeld
Senior Software Engineer
CMC Electronics Aurora
84 N Dugan Rd
Sugar Grove, IL
60554-0250 USA
[email protected]<mailto:[email protected]>
www.cmcelectronics.ca<http://www.cmcelectronics.ca/>