|
From: | Nikita Ronja Gillmann |
Subject: | Re: gnunet mysql errors |
Date: | Wed, 1 Feb 2023 19:49:09 +0100 |
User-agent: | Mozilla/5.0 (X11; NetBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 |
On 2/1/23 19:34, Nikita Ronja Gillmann wrote:
never mind, I forgot that I don't rebuild configure in what I run there. I'll get back to youMartin Schanzenbach transcribed 3.7K bytes:Please try withhttps://git.gnunet.org/gnunet.git/commit/?id=ac40efdae723f850bfff62c0cddad130a37f425eon whatever system this failed for you.similar issues for me with this patch:
gmake[4]: Entering directory '/usr/work/net/gnunet/work/gnunet-0.19.2' /bin/sh ./config.status --recheck gmake[4]: Leaving directory '/usr/work/net/gnunet/work/gnunet-0.19.2' CC mysql.lo mysql.c: In function 'iopen':mysql.c:224:3: error: unknown type name 'MYSQL_BOOL'; did you mean 'MYSQL_BIND'?224 | MYSQL_BOOL reconnect; | ^~~~~~~~~~ | MYSQL_BIND gmake[3]: *** [Makefile:560: mysql.lo] Error 1gmake[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 2Br Christian Grothoff <grothoff@gnunet.org> writes:Well, I touched it because it didn't build on my system(s), and with myfix 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' insteadof relying on the MySQL version? Just reverting the code is sure to thensimply 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=b73a7c5da48e09bd39c1d7c1dabec269dbacd1c8I think the check before this commit was correct (and the comment wrong). Br Martin Nikita Ronja Gillmann <nikita@NetBSD.org> 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 in48 | #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 1gmake[3]: Leaving directory '/usr/work/net/gnunet/work/gnunet-0.19.2/src/mysql'gmake[2]: *** [Makefile:548: all-recursive] Error 1gmake[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
[Prev in Thread] | Current Thread | [Next in Thread] |