global-6.6.14 bug: compile error in libparser/asm_parse.c due to missing <stdint.h>
"Bockenfeld, Don" <[email protected]> Fri, 18 Jul 2025 16:57:03 +0000
| Newsgroups | gmane.comp.gnu.global.bugs |
|---|---|
| Message-ID | <BNAP110MB2239D385A225C650BB06C6878050A@BNAP110MB2239.NAMP110.PROD.OUTLOOK.COM> |
--_000_BNAP110MB2239D385A225C650BB06C6878050ABNAP110MB2239NAMP_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
I downloaded global-6.6.14 but got a compiler error when I built it:
...
gcc -std=3Dgnu99 -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 <=3D __STD_VERSION__
# include <stdint.h> /* INFRINGES ON USER NAME SPACE */
# define YY_STDINT_H
# endif
to
# if defined HAVE_STDINT_H && defined __STD_VERSION__ && 1999=
01 <=3D __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 expre=
ssion on line 202.
The build was successful after that.
I am forwarding this to your attention without altering the gnu source repo=
sitory 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/>
--_000_BNAP110MB2239D385A225C650BB06C6878050ABNAP110MB2239NAMP_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Aptos;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Aptos",sans-serif;
mso-ligatures:standardcontextual;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Aptos",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:11.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"#0563C1" vlink=3D"#954F72" style=3D"word-wrap:=
break-word">
<div class=3D"WordSection1">
<p class=3D"MsoNormal"><span lang=3D"EN-CA">I downloaded global-6.6.14 but =
got a compiler error when I built it:<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-CA"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-CA">…<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-CA">gcc -std=3Dgnu99 -DHAVE_CONFIG_=
H -I. -I.. </span>
-I../libparser -I../libltdl -I../libutil -I../libdb -I../libglibc -I ../lib=
util -g -O2 -MT asm_parse.o -MD -MP -MF $depbase.Tpo -c -o asm_parse.o asm_=
parse.c &&\<o:p></o:p></p>
<p class=3D"MsoNormal">mv -f $depbase.Tpo $depbase.Po<o:p></o:p></p>
<p class=3D"MsoNormal">asm_parse.c:203:57: stdint.h: No such file or direct=
ory<o:p></o:p></p>
<p class=3D"MsoNormal">make[2]: *** [asm_parse.o] Error 1<o:p></o:p></p>
<p class=3D"MsoNormal">…<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">However, ./configure did indeed notice that my syste=
m doesn’t have <stdint.h>.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal"><span lang=3D"EN-CA">I found it necessary to edit so=
urce file libparser/asm_parse.c as follows.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-CA">I changed lines 202-205 from<o:=
p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-CA"> &=
nbsp; # if defined __STD_VERSION_=
_ && 199901 <=3D __STD_VERSION__<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-CA"> &=
nbsp; # include <stdint.=
h> /* INFRINGES ON USER NAME SPACE */<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-CA"> &=
nbsp; # define YY_STDINT_H<=
o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-CA"> &=
nbsp; # endif<o:p></o:p></span></=
p>
<p class=3D"MsoNormal"><span lang=3D"EN-CA">to<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-CA"> &=
nbsp; # if defined HAVE_STDINT_H =
&& defined __STD_VERSION__ && 199901 <=3D __STD_VERSION_=
_<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-CA"> &=
nbsp; # include <stdint.=
h> /* INFRINGES ON USER NAME SPACE */<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-CA"> &=
nbsp; # define YY_STDINT_H<=
o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-CA"> &=
nbsp; # endif<o:p></o:p></span></=
p>
<p class=3D"MsoNormal"><span lang=3D"EN-CA"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-CA">The only change was to insert &=
#8220;defined HAVE_STDINT_H &&” into the #if expression on li=
ne 202.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-CA">The build was successful after =
that.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-CA"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-CA">I am forwarding this to your at=
tention without altering the gnu source repository myself.<o:p></o:p></span=
></p>
<p class=3D"MsoNormal"><span lang=3D"EN-CA"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-CA">Cheers,<o:p></o:p></span></p>
<p class=3D"MsoNormal"><b><span style=3D"font-size:9.0pt;font-family:"=
Arial",sans-serif;mso-ligatures:none">Don Bockenfeld<o:p></o:p></span>=
</b></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Ari=
al",sans-serif;color:#595959;mso-ligatures:none">Senior Software Engin=
eer<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Ari=
al",sans-serif;mso-ligatures:none"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><b><span style=3D"font-size:9.0pt;font-family:"=
Arial",sans-serif;mso-ligatures:none">CMC Electronics Aurora<o:p></o:p=
></span></b></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Ari=
al",sans-serif;color:#595959;mso-ligatures:none">84 N Dugan Rd<o:p></o=
:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"FR-CA" style=3D"font-size:9.0pt;font-f=
amily:"Arial",sans-serif;color:#595959;mso-ligatures:none">Sugar =
Grove, IL<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"FR-CA" style=3D"font-size:9.0pt;font-f=
amily:"Arial",sans-serif;color:#595959;mso-ligatures:none">60554-=
0250 USA<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Ari=
al",sans-serif;color:#8EAADB;mso-ligatures:none"><a href=3D"mailto:Don=
[email protected]"><span lang=3D"FR-CA">Don.Bockenfeld@CMCElect=
ronics.us</span></a></span><span lang=3D"FR-CA" style=3D"font-size:9.0pt;fo=
nt-family:"Arial",sans-serif;color:#8EAADB;mso-ligatures:none"><o=
:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Ari=
al",sans-serif;color:#595959;mso-ligatures:none"><a href=3D"http://www=
.cmcelectronics.ca/"><span style=3D"color:#595959">www.cmcelectronics.ca</s=
pan></a><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-CA"><o:p> </o:p></span></p>
</div>
</body>
</html>
--_000_BNAP110MB2239D385A225C650BB06C6878050ABNAP110MB2239NAMP_--