Open onkelbeh opened 3 years ago
While trying to recompile after gcc upgrade:
* Package: net-analyzer/nagios_hpilo_engine-1.5.0 * Repository: STREICHER-Overlay * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox >>> Unpacking source... * Repository id: HewlettPackard_nagios-plugins-hpilo.git * To override fetched repository properties, use: * EGIT_OVERRIDE_REPO_HEWLETTPACKARD_NAGIOS_PLUGINS_HPILO * EGIT_OVERRIDE_BRANCH_HEWLETTPACKARD_NAGIOS_PLUGINS_HPILO * EGIT_OVERRIDE_COMMIT_HEWLETTPACKARD_NAGIOS_PLUGINS_HPILO * EGIT_OVERRIDE_COMMIT_DATE_HEWLETTPACKARD_NAGIOS_PLUGINS_HPILO * * Fetching https://github.com/HewlettPackard/nagios-plugins-hpilo.git ... git fetch https://github.com/HewlettPackard/nagios-plugins-hpilo.git +HEAD:refs/git-r3/HEAD git symbolic-ref refs/git-r3/net-analyzer/nagios_hpilo_engine/0/__main__ refs/git-r3/HEAD * Checking out https://github.com/HewlettPackard/nagios-plugins-hpilo.git to /var/tmp/portage/net-analyzer/nagios_hpilo_engine-1.5.0/work/nagios_hpilo_engine-1.5.0 ... git checkout --quiet refs/git-r3/HEAD GIT update --> repository: https://github.com/HewlettPackard/nagios-plugins-hpilo.git at the commit: 7617b2736a95c7f354198f092febe37e7005c677 >>> Source unpacked in /var/tmp/portage/net-analyzer/nagios_hpilo_engine-1.5.0/work >>> Preparing source in /var/tmp/portage/net-analyzer/nagios_hpilo_engine-1.5.0/work/nagios_hpilo_engine-1.5.0 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/net-analyzer/nagios_hpilo_engine-1.5.0/work/nagios_hpilo_engine-1.5.0 ... ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --docdir=/usr/share/doc/nagios_hpilo_engine-1.5.0 --htmldir=/usr/share/doc/nagios_hpilo_engine-1.5.0/html --libdir=/usr/lib64 checking for a BSD-compatible install... /usr/lib/portage/python3.9/ebuild-helpers/xattr/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of x86_64-pc-linux-gnu-gcc... none checking for snmp_sess_init in -lnetsnmp... yes checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for unistd.h... (cached) yes checking for nmap... /usr/bin/nmap checking for namp version >= 5.20... yes checking for size_t... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking for memset... yes checking for strdup... yes checking for strstr... yes configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating action-url/Makefile config.status: creating conf.d/Makefile config.status: creating scripts/Makefile config.status: creating scripts/nagios_hpeilo_cfg_generator config.status: creating scripts/nagios_hpeilo_traps config.status: creating scripts/hpeilo_nagios_config config.status: creating config.h config.status: config.h is unchanged config.status: executing depfiles commands >>> Source configured. >>> Compiling source in /var/tmp/portage/net-analyzer/nagios_hpilo_engine-1.5.0/work/nagios_hpilo_engine-1.5.0 ... make -j60 --load-average=60 make all-recursive make[1]: Entering directory '/var/tmp/portage/net-analyzer/nagios_hpilo_engine-1.5.0/work/nagios_hpilo_engine-1.5.0' Making all in src make[2]: Entering directory '/var/tmp/portage/net-analyzer/nagios_hpilo_engine-1.5.0/work/nagios_hpilo_engine-1.5.0/src' x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../src/include -Wno-deprecated-declarations -march=nocona -mtune=corei7-avx -O2 -pipe -c nagios_hpilo_engine.c x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../src/include -Wno-deprecated-declarations -march=nocona -mtune=corei7-avx -O2 -pipe -c nagios_hpilo_snmp.c nagios_hpilo_snmp.c: In function ‘is_hex_str’: nagios_hpilo_snmp.c:35:12: warning: implicit declaration of function ‘isprint’ [-Wimplicit-function-declaration] 35 | if (!isprint(str[i]) && !isspace(str[i])) | ^~~~~~~ nagios_hpilo_snmp.c:35:32: warning: implicit declaration of function ‘isspace’ [-Wimplicit-function-declaration] 35 | if (!isprint(str[i]) && !isspace(str[i])) | ^~~~~~~ nagios_hpilo_snmp.c: In function ‘get_netsnmp_var’: nagios_hpilo_snmp.c:101:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 101 | dest->integer = (int) &src->val.counter64; | ^ nagios_hpilo_snmp.c:105:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 105 | dest->integer = (int) &src->val.counter64; | ^ nagios_hpilo_snmp.c:109:7: warning: implicit declaration of function ‘asprintf’; did you mean ‘vsprintf’? [-Wimplicit-function-declaration] 109 | asprintf(&dest->string, "%d.%d.%d.%d", src->val.string[0], | ^~~~~~~~ | vsprintf nagios_hpilo_snmp.c: At top level: nagios_hpilo_snmp.c:454:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 454 | service_details_print_oid_info (struct ilo_oid_list **oid_list_ptr, int *oid) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nagios_hpilo_snmp.c: In function ‘service_details_print_oid_info’: nagios_hpilo_snmp.c:465:14: warning: assignment to ‘char **’ from incompatible pointer type ‘char * (*)[18]’ [-Wincompatible-pointer-types] 465 | table_ele = &ps_tbl_ele; | ^ nagios_hpilo_snmp.c:468:14: warning: assignment to ‘char **’ from incompatible pointer type ‘char * (*)[12]’ [-Wincompatible-pointer-types] 468 | table_ele = &fan_tbl_ele; | ^ nagios_hpilo_snmp.c:471:14: warning: assignment to ‘char **’ from incompatible pointer type ‘char * (*)[8]’ [-Wincompatible-pointer-types] 471 | table_ele = &temp_tbl_ele; | ^ nagios_hpilo_snmp.c:474:14: warning: assignment to ‘char **’ from incompatible pointer type ‘char * (*)[43]’ [-Wincompatible-pointer-types] 474 | table_ele = &st_tbl_ele; | ^ nagios_hpilo_snmp.c:477:14: warning: assignment to ‘char **’ from incompatible pointer type ‘char * (*)[14]’ [-Wincompatible-pointer-types] 477 | table_ele = &mem_tbl_ele; | ^ nagios_hpilo_snmp.c:480:14: warning: assignment to ‘char **’ from incompatible pointer type ‘char * (*)[31]’ [-Wincompatible-pointer-types] 480 | table_ele = &pro_tbl_ele; | ^ nagios_hpilo_snmp.c:483:14: warning: assignment to ‘char **’ from incompatible pointer type ‘char * (*)[42]’ [-Wincompatible-pointer-types] 483 | table_ele = &net_tbl_ele; | ^ nagios_hpilo_engine.c:76:3: warning: initialization of ‘enum Nagios_status (*)(void **, int *)’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types] 76 | "NULL", 0}, | ^~~~~~ nagios_hpilo_engine.c:76:3: note: (near initialization for ‘ilo_oid_info_table[0].parse_status_fn_ptr’) nagios_hpilo_engine.c:79:3: warning: initialization of ‘enum Nagios_status (*)(void **, int *)’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types] 79 | "NULL", 0}, | ^~~~~~ nagios_hpilo_engine.c:79:3: note: (near initialization for ‘ilo_oid_info_table[1].parse_status_fn_ptr’) nagios_hpilo_engine.c:82:3: warning: initialization of ‘enum Nagios_status (*)(void **, int *)’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types] 82 | "NULL", 0}, | ^~~~~~ nagios_hpilo_engine.c:82:3: note: (near initialization for ‘ilo_oid_info_table[2].parse_status_fn_ptr’) nagios_hpilo_engine.c:85:3: warning: initialization of ‘enum Nagios_status (*)(void **, int *)’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types] 85 | "NULL", 0}, | ^~~~~~ nagios_hpilo_engine.c:85:3: note: (near initialization for ‘ilo_oid_info_table[3].parse_status_fn_ptr’) nagios_hpilo_engine.c:88:17: warning: initialization of ‘enum Nagios_status (*)(void **, int *)’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types] 88 | "NULL", 0}, | ^~~~~~ nagios_hpilo_engine.c:88:17: note: (near initialization for ‘ilo_oid_info_table[4].parse_status_fn_ptr’) nagios_hpilo_engine.c:91:17: warning: initialization of ‘enum Nagios_status (*)(void **, int *)’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types] 91 | "NULL", 0}, | ^~~~~~ nagios_hpilo_engine.c:91:17: note: (near initialization for ‘ilo_oid_info_table[5].parse_status_fn_ptr’) nagios_hpilo_engine.c:94:17: warning: initialization of ‘enum Nagios_status (*)(void **, int *)’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types] 94 | "NULL", 0}, | ^~~~~~ nagios_hpilo_engine.c:94:17: note: (near initialization for ‘ilo_oid_info_table[6].parse_status_fn_ptr’) nagios_hpilo_engine.c: In function ‘get_oid_str’: nagios_hpilo_engine.c:259:2: warning: implicit declaration of function ‘free_oid_list’; did you mean ‘free_etimelist’? [-Wimplicit-function-declaration] 259 | free_oid_list(oid_list); | ^~~~~~~~~~~~~ | free_etimelist In file included from ../src/include/nagios_hpilo_engine.h:25, from nagios_hpilo_engine.c:23: nagios_hpilo_engine.c: In function ‘parse_status’: ../src/include/nagios_hpilo_common.h:62:3: warning: implicit declaration of function ‘asprintf’; did you mean ‘vsprintf’? [-Wimplicit-function-declaration] 62 | asprintf(ppError, "[Error]: " fmt, ## args); \ | ^~~~~~~~ nagios_hpilo_engine.c:366:4: note: in expansion of macro ‘ILO_ERR_DEBUG’ 366 | ILO_ERR_DEBUG(&priv_ptr->err_str, "[%s] OidList is NULL", __func__); | ^~~~~~~~~~~~~ nagios_hpilo_engine.c: In function ‘get_failed_component_status’: nagios_hpilo_engine.c:433:3: warning: implicit declaration of function ‘get_ilo_oid_list’ [-Wimplicit-function-declaration] 433 | get_ilo_oid_list(priv_ptr->session, generic_oid_info_ptr->oid, | ^~~~~~~~~~~~~~~~ nagios_hpilo_engine.c: In function ‘main’: nagios_hpilo_engine.c:617:3: warning: implicit declaration of function ‘init_priv_data’ [-Wimplicit-function-declaration] 617 | init_priv_data(&snmp_priv); | ^~~~~~~~~~~~~~ nagios_hpilo_engine.c:652:7: warning: implicit declaration of function ‘init_ilo_snmp_session’ [-Wimplicit-function-declaration] 652 | if((init_ilo_snmp_session(&snmp_priv)) != NAGIOS_ILO_SUCCESS_STATUS) | ^~~~~~~~~~~~~~~~~~~~~ nagios_hpilo_engine.c:677:7: warning: implicit declaration of function ‘service_details_print_oid_info’ [-Wimplicit-function-declaration] 677 | service_details_print_oid_info(&snmp_priv.oid_list, &oid_idx); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nagios_hpilo_engine.c:698:46: warning: unknown escape sequence: '\}' 698 | printf ("\}\';\n\nvar serviceID = %d;\n", oid_idx); | ^ nagios_hpilo_engine.c:726:14: warning: implicit declaration of function ‘print_oid_info’; did you mean ‘print_oid_report’? [-Wimplicit-function-declaration] 726 | status = print_oid_info(status, &snmp_priv.oid_list); | ^~~~~~~~~~~~~~ | print_oid_report nagios_hpilo_engine.c:728:3: warning: implicit declaration of function ‘free_priv_data’ [-Wimplicit-function-declaration] 728 | free_priv_data(&snmp_priv); | ^~~~~~~~~~~~~~ In file included from /usr/include/string.h:519, from ../src/include/nagios_hpilo_common.h:28, from ../src/include/nagios_hpilo_snmp.h:25, from nagios_hpilo_snmp.c:23: In function ‘strncpy’, inlined from ‘service_details_print_oid_info’ at nagios_hpilo_snmp.c:519:5: /usr/include/bits/string_fortified.h:95:10: warning: ‘__builtin_strncpy’ specified bound depends on the length of the source argument [-Wstringop-overflow=] 95 | return __builtin___strncpy_chk (__dest, __src, __len, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 96 | __glibc_objsize (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~ nagios_hpilo_snmp.c: In function ‘service_details_print_oid_info’: nagios_hpilo_snmp.c:519:5: note: length computed here 519 | strncpy(instance->json_doc,buf,strlen(buf)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:519, from ../src/include/nagios_hpilo_common.h:28, from ../src/include/nagios_hpilo_snmp.h:25, from nagios_hpilo_snmp.c:23: In function ‘strncpy’, inlined from ‘service_details_print_oid_info’ at nagios_hpilo_snmp.c:595:4: /usr/include/bits/string_fortified.h:95:10: warning: ‘__builtin_strncpy’ specified bound depends on the length of the source argument [-Wstringop-overflow=] 95 | return __builtin___strncpy_chk (__dest, __src, __len, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 96 | __glibc_objsize (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~ nagios_hpilo_snmp.c: In function ‘service_details_print_oid_info’: nagios_hpilo_snmp.c:595:4: note: length computed here 595 | strncpy(json_c,buf,strlen(buf)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -march=nocona -mtune=corei7-avx -O2 -pipe -Wl,-O1 -Wl,--as-needed -o nagios_hpeilo_engine nagios_hpilo_engine.o nagios_hpilo_snmp.o -lnetsnmp /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: nagios_hpilo_snmp.o:(.bss+0x0): multiple definition of `glist'; nagios_hpilo_engine.o:(.bss+0x8): first defined here collect2: error: ld returned 1 exit status make[2]: *** [Makefile:255: nagios_hpeilo_engine] Error 1 make[2]: Leaving directory '/var/tmp/portage/net-analyzer/nagios_hpilo_engine-1.5.0/work/nagios_hpilo_engine-1.5.0/src' make[1]: *** [Makefile:280: all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/net-analyzer/nagios_hpilo_engine-1.5.0/work/nagios_hpilo_engine-1.5.0' make: *** [Makefile:220: all] Error 2
Build environment:
Gentoo Linux Portage 3.0.20 (python 3.9.5-final-0, default/linux/amd64/17.1, gcc-10.3.0, glibc-2.33, 4.19.86-STR_kernel x86_64) ================================================================= System uname: Linux-4.19.86-STR_kernel-x86_64-Intel-R-_Xeon-R-_Gold_5218_CPU_@_2.30GHz-with-glibc2.33 KiB Mem: 65602864 total, 26136868 free KiB Swap: 33554428 total, 24454908 free Timestamp of repository gentoo: Tue, 22 Jun 2021 08:45:01 +0000 Head commit of repository gentoo: feef8c126febfdc0db351c30e7aa8d8d74eb1be2 sh bash 5.1_p8 ld GNU ld (Gentoo 2.35.2 p1) 2.35.2 ccache version 4.3 [disabled] app-shells/bash: 5.1_p8::gentoo dev-lang/perl: 5.32.1::gentoo dev-lang/python: 3.9.5_p2::gentoo dev-util/ccache: 4.3::gentoo dev-util/cmake: 3.18.5::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/openrc: 0.42.1-r1::gentoo sys-apps/sandbox: 2.24::gentoo sys-devel/autoconf: 2.69-r5::gentoo sys-devel/automake: 1.16.3-r1::gentoo sys-devel/binutils: 2.35.2::gentoo sys-devel/gcc: 10.3.0::gentoo sys-devel/gcc-config: 2.4::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers) sys-libs/glibc: 2.33::gentoo CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -mtune=corei7-avx -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CPPFLAGS="-Wno-deprecated-declarations" CXXFLAGS="-march=nocona -mtune=corei7-avx -O2 -pipe" FCFLAGS="-O2 -pipe" FFLAGS="-O2 -pipe" LANG="de_DE.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed"
While trying to recompile after gcc upgrade:
Build environment: