Summary: | dev-libs/redland-1.0.17-r2 fails to build with >=dev-db/mysql-connector-c-8: rdf_storage_mysql.c:450:5: error: unknown type name 'my_bool' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Leonid Kopylov <leonchik1976> |
Component: | Current packages | Assignee: | Gentoo Sound Team <sound> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | andy.dalton, atoth, b.buschinski, chris.murtagh1, conardcox, dschridde+gentoobugs, eXt, fkrogh, frederik.schmid, gentoo, gentoo, gentoobugs, gerrshapovalov, holbugs, joerg.schaible, johannes.hirte, jstein, kroemmelbein, M4rkusXXL, maracay, mark+gentoobugs, moltonel, news, pascal.rebreyend, phils, scott, spikyatlinux, steven, tb, thomas.bettler, zeekec |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 692570 | ||
Attachments: |
build.log
patch to fix my_bool error fix to the suggested patch - should change my_bool to bool, not char redland-1.0.17-r2 patches to fix my_bool declaration (type no longer exists) net-snmp-5.8-r3 build log |
Description
Leonid Kopylov
2019-08-18 17:43:12 UTC
Created attachment 587364 [details]
build.log
Same problem here. Could it be related to mysql connector or to gcc 9.2? I´m using mariadb. I copied dev-libs/redland-1.0.17-r2 to my local overlay, and changed mysql? ( dev-db/mysql-connector-c:0= ) to mysql? ( dev-db/mariadb-connector-c:0= ) after that it builds fine. (In reply to Fabio Coatti from comment #2) > Same problem here. > Could it be related to mysql connector or to gcc 9.2? The log is not really readable, but I'd bet it's this error: /bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/usr/include/mysql -I/usr/include/db6.0 -I/usr/include/db6.0 -I/usr/include/raptor2 -I/usr/include/rasqal -I/usr/include/raptor2 -DREDLAND_MODULE_PATH="\""/usr/local/lib/redland:/usr/lib64/redland"\"" -DLIBRDF_INTERNAL=1 -O2 -march=bdver4 -msahf -mpopcnt -mlzcnt --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=1024 -mtune=bdver4 -ftree-vectorize -fvect-cost-model -pipe -c -o librdf_storage_mysql_la-rdf_storage_mysql.lo `test -f 'rdf_storage_mysql.c' || echo './'`rdf_storage_mysql.c libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/usr/include/mysql -I/usr/include/db6.0 -I/usr/include/db6.0 -I/usr/include/raptor2 -I/usr/include/rasqal -I/usr/include/raptor2 -DREDLAND_MODULE_PATH=\"/usr/local/lib/redland:/usr/lib64/redland\" -DLIBRDF_INTERNAL=1 -O2 -march=bdver4 -msahf -mpopcnt -mlzcnt --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=1024 -mtune=bdver4 -ftree-vectorize -fvect-cost-model -pipe -c rdf_storage_mysql.c -fPIC -DPIC -o .libs/librdf_storage_mysql_la-rdf_storage_mysql.o rdf_storage_mysql.c: In function 'librdf_storage_mysql_get_handle': rdf_storage_mysql.c:450:5: error: unknown type name 'my_bool'; did you mean 'bool'? 450 | my_bool value=(context->reconnect) ? 1 : 0; | ^~~~~~~ | bool make[3]: *** [Makefile:886: librdf_storage_mysql_la-rdf_storage_mysql.lo] Error 1 make[3]: Leaving directory '/var/tmp/portage/dev-libs/redland-1.0.17-r2/work/redland-1.0.17/src' make[2]: *** [Makefile:978: all-recursive] Error 1 make[2]: Leaving directory '/var/tmp/portage/dev-libs/redland-1.0.17-r2/work/redland-1.0.17/src' make[1]: *** [Makefile:667: all] Error 2 make[1]: Leaving directory '/var/tmp/portage/dev-libs/redland-1.0.17-r2/work/redland-1.0.17/src' make: *** [Makefile:624: all-recursive] Error 1 So it's related to dev-db/mysql-connector-c-8.0.17-r1 (In reply to SpikyAtLinux from comment #3) > I´m using mariadb. > > I copied dev-libs/redland-1.0.17-r2 to my local overlay, and changed > > mysql? ( dev-db/mysql-connector-c:0= ) > > to > > mysql? ( dev-db/mariadb-connector-c:0= ) > > after that it builds fine. I tried that and it didn't work for me. I still got the same error. Same here. And changing dependency from mysql-connector-c to mariadb-connector-c didn't work for me either. Created attachment 587428 [details, diff]
patch to fix my_bool error
Perhaps you can try this patch, its my 1st one, builds successfully on my system.
Copy patch to /etc/portage/patches/dev-libs/redland.
Regards
Thanks, patch works fine for me. (In reply to daniel from comment #8) > Thanks, patch works fine for me. Fine, thanks for feedback ;-) Same problem - suggested patch did _NOT_ work for me. With this latest round of 'emerge @world' updates on a different machine, I'm having a different 'mysql' problem which may be related: bug# 692610 The error there is: /usr/include/mysql/mysql_com.h:1005:10: fatal error: mysql/udf_registration_types.h: No such file or directory Patch works for me, thanks! Also here the patch seems ok, thanks! The patch substitutes my_bool to char, but it should be substituted to bool or maybe int. Patch works for me too! (In reply to Guy from comment #10) > Same problem - suggested patch did _NOT_ work for me. > > With this latest round of 'emerge @world' updates on a different machine, > I'm having a different 'mysql' problem which may be related: bug# 692610 > > The error there is: > /usr/include/mysql/mysql_com.h:1005:10: fatal error: > mysql/udf_registration_types.h: No such file or directory I was not clear here. I attempted and failed the approach suggested in comment #3. The timing was such that I tried this before comment #7 appeared. The patch suggested in comment #7 does work for me. Created attachment 589972 [details, diff]
fix to the suggested patch - should change my_bool to bool, not char
I confirm the problem and the patch working
*with the following change*:
char -> bool
(as it should be, and is even suggested by the compiler)
I can confirm the problem and the patch. Works. Thanks. I created a PR for upstream: https://github.com/dajobe/librdf/pull/14 mysql-connector-c:8 went stable now and redland still does not compile Same here. I have a verified working updated patch (attaching in a moment): Created attachment 614052 [details]
redland-1.0.17-r2 patches to fix my_bool declaration (type no longer exists)
Uncompressed tar file containing patches for redland-1.0.17-r2.ebuild and redland-1.0.17/src/rdf_storage_mysql.c
With mysql-connector-c-8.0.19 gone stable this will become a real problem! I would suggest increasing the priority of this bug. Unfortunately afaics the patch can not be readily used, because it will break the build of redmine with mysql-connector-c-6 installed. A temporary fix, which may work for you, is to disable USE=mysql. See https://forums.gentoo.org/viewtopic-p-8422134.html#8420920 I just tested this again, and redland 1.0.17-r2 successfully builds against mysql-connector-c 8.0.19. Perhaps something's changed in mysql-connector-c recently. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ab8c1f0f18b08e0d9a3cdcf99b08bf962a1a81f commit 4ab8c1f0f18b08e0d9a3cdcf99b08bf962a1a81f Author: David Seifert <soap@gentoo.org> AuthorDate: 2020-02-20 15:53:18 +0000 Commit: David Seifert <soap@gentoo.org> CommitDate: 2020-02-20 15:53:18 +0000 dev-libs/redland: Fix building against mysql 8 Closes: https://bugs.gentoo.org/692462 Package-Manager: Portage-2.3.89, Repoman-2.3.20 Acked-by: Andreas K. Hüttel <dilfridge@gentoo.org> Signed-off-by: David Seifert <soap@gentoo.org> .../redland/files/redland-1.0.17-mysql-8-my_bool.patch | 15 +++++++++++++++ dev-libs/redland/redland-1.0.17-r2.ebuild | 2 ++ 2 files changed, 17 insertions(+) Hi, The same thing happens to me with "dev-libs/redland" and after the patch it has been fixed. But it turns out that with "net-analyzer/net-snmp-5.8-r3" the same error occurs "unknown type name 'my_bool'." .... /bin/sh ../../libtool --mode=compile x86_64-pc-linux-gnu-gcc -I../../include -I/usr/include/libnl3 -march=haswell -O2 -pipe -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -DNETSNMP_REMOVE_U64 -march=haswell -O2 -pipe -Ulinux -Dlinux=linux -fwrapv -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/5.30.1/x86_64-linux/CORE -c -o inet6.lo inet6.c snmptrapd_sql.c:202:8: error: unknown type name 'my_bool' 202 | static my_bool _no_v3; | ^~~~~~~ snmptrapd_sql.c: In function 'netsnmp_mysql_init': snmptrapd_sql.c:455:5: warning: implicit declaration of function 'my_load_defaults' [-Wimplicit-function-declaration] 455 | my_load_defaults ("my", _sql.groups, ¬_argc, ¬_argv, 0); | ^~~~~~~~~~~~~~~~ snmptrapd_sql.c:532:50: warning: assignment to '_Bool *' from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 532 | _tbind[TBIND_v3_SECURITY_ENGINE].is_null = &_no_v3; | ^ make[1]: *** [Makefile:100: snmptrapd_sql.lo] Error 1 make[1]: *** Waiting for unfinished jobs.... .... Created attachment 614830 [details]
net-snmp-5.8-r3 build log
@VSC55: Please see this bug report: https://bugs.gentoo.org/show_bug.cgi?id=692478 For more instances the tracker is here: https://bugs.gentoo.org/709620 |