Thank you for the report.
If the following conditions are met, the C99 standard is valid and
stdint.h should exist:

       if defined __STD_VERSION__ && 199901 <= __STD_VERSION__

So perhaps the problem lies in the absence of stdint.h in your environment?

Regards,
Shigio

On Sat, Jul 19, 2025 at 3:25 AM Bockenfeld, Don
<[email protected]> wrote:
>
> 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]
>
> www.cmcelectronics.ca
>
>



-- 
Shigio YAMAGUCHI <[email protected]>
PGP fingerprint:
26F6 31B4 3D62 4A92 7E6F  1C33 969C 3BE3 89DD A6EB

Reply via email to