libtool: compile: x86_64-pc-linux-gnu-gcc -I../include -I. -I../agent -I../agent/helpers -I../agent/mibgroup -I/usr/include/libnl3 -I../snmplib -I/usr/include/mysql -I/usr/include/libnl3 -march=native -mfpmath=sse,387 -mtune=intel -O3 -frecord-gcc-switches -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -DNETSNMP_REMOVE_U64 -march=native -mfpmath=sse,387 -mtune=intel -O3 -frecord-gcc-switches -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/5.30.0/x86_64-linux-thread-multi/CORE -c snmptrapd_sql.c -fPIC -DPIC -o .libs/snmptrapd_sql.o 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] Fehler 1 make[1]: Verzeichnis „/var/tmp/portage/net-analyzer/net-snmp-5.8-r1/work/net-snmp-5.8/apps“ wird verlassen make: *** [Makefile:663: subdirs] Fehler 1 * ERROR: net-analyzer/net-snmp-5.8-r1::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=net-analyzer/net-snmp-5.8-r1::gentoo'`, * the complete build log and the output of `emerge -pqv '=net-analyzer/net-snmp-5.8-r1::gentoo'`. * The complete build log is located at '/var/tmp/portage/net-analyzer/net-snmp-5.8-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-analyzer/net-snmp-5.8-r1/temp/environment'. * Working directory: '/var/tmp/portage/net-analyzer/net-snmp-5.8-r1/work/net-snmp-5.8' * S: '/var/tmp/portage/net-analyzer/net-snmp-5.8-r1/work/net-snmp-5.8' >>> Failed to emerge net-analyzer/net-snmp-5.8-r1, Log file: >>> '/var/tmp/portage/net-analyzer/net-snmp-5.8-r1/temp/build.log' * Messages for package net-analyzer/net-snmp-5.8-r1: * ERROR: net-analyzer/net-snmp-5.8-r1::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=net-analyzer/net-snmp-5.8-r1::gentoo'`, * the complete build log and the output of `emerge -pqv '=net-analyzer/net-snmp-5.8-r1::gentoo'`. * The complete build log is located at '/var/tmp/portage/net-analyzer/net-snmp-5.8-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-analyzer/net-snmp-5.8-r1/temp/environment'. * Working directory: '/var/tmp/portage/net-analyzer/net-snmp-5.8-r1/work/net-snmp-5.8' * S: '/var/tmp/portage/net-analyzer/net-snmp-5.8-r1/work/net-snmp-5.8'
Created attachment 587374 [details] build.log
Created attachment 587426 [details, diff] patch to fix my_bool error Put the attached patch to /etc/portage/patches/net-analyzer/net-snmp Regards
(In reply to SpikyAtLinux from comment #2) > Created attachment 587426 [details, diff] [details, diff] > patch to fix my_bool error > > Put the attached patch to /etc/portage/patches/net-analyzer/net-snmp > > Regards Thanks! Patch works for me.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5fc1dd13d685e60d88b767b4ea589f7072bc842c commit 5fc1dd13d685e60d88b767b4ea589f7072bc842c Author: Jeroen Roovers <jer@gentoo.org> AuthorDate: 2019-08-19 20:36:02 +0000 Commit: Jeroen Roovers <jer@gentoo.org> CommitDate: 2019-08-19 20:38:37 +0000 net-analyzer/net-snmp: Fix building against dev-db/mysql-connector-c-8.* Package-Manager: Portage-2.3.71, Repoman-2.3.17 Fixes: https://bugs.gentoo.org/692478 Signed-off-by: Jeroen Roovers <jer@gentoo.org> .../net-snmp/files/net-snmp-5.8-my_bool.patch | 23 +++ net-analyzer/net-snmp/net-snmp-5.8-r2.ebuild | 199 +++++++++++++++++++++ 2 files changed, 222 insertions(+)
Got the exact same bug with net-snmp-5.8-r3 and mysql-connector-c-8.0.19, because the patch is not applied there. Please reopen until -r4 or -r5 is stable.
Not resolved/fixed. Still same bug with net-snmp-5.8-r3 and mysql-connector-c-8.0.19.
Same bug here as well, with mysql flag enabled.
*** Bug 710064 has been marked as a duplicate of this bug. ***
As a temporary workround mkdir -p /etc/portage/patches/net-analyzer/net-snmp-5.8-r3 cp files/net-snmp-5.8-my_bool.patch /etc/portage/patches/net-analyzer/net-snmp-5.8-r3
(In reply to Neil Bothwick from comment #9) > As a temporary workround > > mkdir -p /etc/portage/patches/net-analyzer/net-snmp-5.8-r3 > cp files/net-snmp-5.8-my_bool.patch > /etc/portage/patches/net-analyzer/net-snmp-5.8-r3 tnx Neil, it's working.
Hi, The ebuild of version 5.8-r3 has a bug. You are not applying the "net-snmp-5.8-my_bool.patch" patch.
Created attachment 614960 [details, diff] Ebuild modified to apply the "my_bool" patch.
Unmasking net-analyzer/net-snmp-5.8-r4 and updating works for me. Thanks!
Unmasking net-analyzer/net-snmp-5.8-r4 and updating works for me too