Re: gnunet mysql errors

Martin Schanzenbach <[email protected]> Wed, 01 Feb 2023 18:59:42 +0900
Newsgroups gmane.network.gnunet.devel
Message-ID <[email protected]>
Please try with
https://git.gnunet.org/gnunet.git/commit/?id=ac40efdae723f850bfff62c0cddad130a37f425e
on whatever system this failed for you.

Br

Christian Grothoff <[email protected]> writes:

> Well, I touched it because it didn't build on my system(s), and with my 
> fix it did. But of course, I didn't test all the various mysql versions...
>
> Maybe we should introduce a configure-level check for 'my_bool' instead 
> of relying on the MySQL version? Just reverting the code is sure to then 
> simply cause a similar FTBFS on one of my systems.
>
> On 2/1/23 01:19, Martin Schanzenbach wrote:
>> 
>> This is a regression introduced by Christian recently:
>> https://git.gnunet.org/gnunet.git/commit/?id=b73a7c5da48e09bd39c1d7c1dabec269dbacd1c8
>> 
>> I think the check before this commit was correct (and the comment
>> wrong).
>> 
>> Br
>> Martin
>> 
>> Nikita Ronja Gillmann <[email protected]> writes:
>> 
>>> mysql is correctly detected (version: mysql-client-8.0.31nb1).
>>>
>>> yet I run into this. any idea if this is on your side or mine?
>>>
>>> gmake[3]: Entering directory '/usr/work/net/gnunet/work/gnunet-0.19.2/src/mysql'
>>>     CC       mysql.lo
>>> In file included from mysql.c:28:
>>> mysql.c: In function 'iopen':
>>> ../../src/include/gnunet_mysql_compat.h:48:20: error: 'my_bool' undeclared (first use in this function); did you mean 'bool'?
>>>      48 | #define MYSQL_BOOL my_bool; //MySQL < 8 wants this
>>>         |                    ^~~~~~~
>>> mysql.c:224:3: note: in expansion of macro 'MYSQL_BOOL'
>>>     224 |   MYSQL_BOOL reconnect;
>>>         |   ^~~~~~~~~~
>>> ../../src/include/gnunet_mysql_compat.h:48:20: note: each undeclared identifier is reported only once for each function it appears in
>>>      48 | #define MYSQL_BOOL my_bool; //MySQL < 8 wants this
>>>         |                    ^~~~~~~
>>> mysql.c:224:3: note: in expansion of macro 'MYSQL_BOOL'
>>>     224 |   MYSQL_BOOL reconnect;
>>>         |   ^~~~~~~~~~
>>> mysql.c:224:14: error: 'reconnect' undeclared (first use in this function); did you mean 'connect'?
>>>     224 |   MYSQL_BOOL reconnect;
>>>         |              ^~~~~~~~~
>>>         |              connect
>>> gmake[3]: *** [Makefile:560: mysql.lo] Error 1
>>> gmake[3]: Leaving directory '/usr/work/net/gnunet/work/gnunet-0.19.2/src/mysql'
>>> gmake[2]: *** [Makefile:548: all-recursive] Error 1
>>> gmake[2]: Leaving directory '/usr/work/net/gnunet/work/gnunet-0.19.2/src'
>>> gmake[1]: *** [Makefile:599: all-recursive] Error 1
>>> gmake[1]: Leaving directory '/usr/work/net/gnunet/work/gnunet-0.19.2'
>>> gmake: *** [Makefile:510: all] Error 2
>>> *** Error code 2
>>>
>>> Stop.
>>> make[1]: stopped in /usr/pkgsrc/net/gnunet
>>> *** Error code 1
signature.asc (application/pgp-signature, 832 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEPREGPBD5jRS9JNFHCwmY74b1m2oFAmPaOA4ACgkQCwmY74b1
m2qZ6xAArKg2pKuubQefb6Hm7YTm4WsesLi2YAZqtWg+WLmzip181xUUOkwFLEQ1
pBtTQicHksJZYpDVm4JBlTj2z4LsTX6aV5y5NLsWbbEt77hjhyWuiGSFdl3Msx7/
3S+z1g+8w4vjPPiCP+g0bJFo6Vh6UJMF2XurthAdwIHBlAIfl+2S5woxu7jfuX6Z
0DLeMxA7SiGtTF2K5Xv/uuKaXx1u+kS+Z+LT7NJZf9DDTAHv352wybtxIGK2LgOq
zBraw6N6HLkuolp3hd7kASuBCpxFNPBS3BuQtbbj9uhr2pxyGCdOCQscRW09XYzG
9PKceMQiSy6SC8lYwwqXNrda3KqHwRtpzt9hRAMu0aQ9tB9hhxsYofMIZ6OBmHYg
kZluopNUS70+0pD+qBQKb4pkUb/FB2aMVWTUKkMf9VpKtz7CM1f0rCg5hHoXNUTK
irH+sY7gKjUTifsEorLiPGVRDi0NQbRPDcHMMt9m7GRbjTpB1Py+WTjjHQCHP9Za
k/k0KLlOe5Y2YaHvntxiWczmtcnu9BdPgPaoEZCtqJ2+JqRPEG6sO2D9jJGFnjep
/MP9bXNDo3NezvcsE+1/DnRLCRSZkyF9iJjPWGRgCGQ/+zBuWDoLAzbxRgpd5deD
fbVSPd9XlpS4Xgm6R3Ftu4GEGFbG3HHWW3qYm9mIAl13HrIIMCE=
=DSZK
-----END PGP SIGNATURE-----