Re: Failure to install

[email protected] (Greg Sabino Mullane) Wed, 4 Sep 2024 13:04:36 -0400
Newsgroups perl.dbi.users
Message-ID <CAKAnmmKy3JB6T=JFi47OChPPb72HRxViYxPrmV8QJgiUnpSZAQ@mail.gmail.com>
--000000000000712b4406214e2d1b
Content-Type: text/plain; charset="UTF-8"

Looks like Perl redefined cbool from something sensible to this new flavor:

#define cBOOL(cbool) ((bool) (cbool))


Which causes all sorts of compiler complaints, as you have seen. I'm not
sure what the proper solution is: some places like
https://www.spinics.net/lists/linux-perf-users/msg27894.html seem to
suggest that ignoring that warning is the way forward at this point. I
think it was a poor decision to change cBOOL like that, but not sure if
there is anything that can be done at the DBI level. As a first step, try
taking -Wbad-function-cast out of $opts{DEFINE} in Makefile.PL and see if
that at least gets it to compile.

Cheers,
Greg

--000000000000712b4406214e2d1b
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Looks like Perl redefined cbool from something sensible to=
 this new flavor:<div><br></div><div><pre class=3D"gmail-aLF-aPX-K0-aPE" st=
yle=3D"font-family:&quot;Courier New&quot;,Courier,monospace,arial,sans-ser=
if;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);font-size:14px">#defin=
e cBOOL(cbool) ((bool) (cbool))</pre><pre class=3D"gmail-aLF-aPX-K0-aPE" st=
yle=3D"font-family:&quot;Courier New&quot;,Courier,monospace,arial,sans-ser=
if;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);font-size:14px"><br></=
pre></div>Which causes all sorts of compiler complaints, as you have seen. =
I&#39;m not sure what the proper solution is: some places like=C2=A0<a href=
=3D"https://www.spinics.net/lists/linux-perf-users/msg27894.html">https://w=
ww.spinics.net/lists/linux-perf-users/msg27894.html</a> seem to suggest tha=
t ignoring that warning is the way forward at this point. I think it was a =
poor decision to change cBOOL like that, but not sure if there is anything =
that can be done at the DBI level. As a first step, try taking=C2=A0<span s=
tyle=3D"color:rgb(0,0,0)">-Wbad-function-cast out of $opts{DEFINE} in Makef=
ile.PL and see if that at least gets it to compile.</span><div><span style=
=3D"color:rgb(0,0,0)"><br></span></div><div><span style=3D"color:rgb(0,0,0)=
">Cheers,</span></div><div><span style=3D"color:rgb(0,0,0)">Greg</span></di=
v><div><span style=3D"color:rgb(0,0,0)"><br></span></div></div>

--000000000000712b4406214e2d1b--