Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 707454 - net-analyzer/nagios-plugins-snmp-0.6.0-r2 : fails to build with -fno-common or gcc-10
Summary: net-analyzer/nagios-plugins-snmp-0.6.0-r2 : fails to build with -fno-common o...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sysadmin Bugs
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: -fno-common
  Show dependency tree
 
Reported: 2020-01-30 19:17 UTC by Toralf Förster
Modified: 2020-05-21 11:37 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,16.60 KB, text/plain)
2020-01-30 19:17 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,164.95 KB, text/plain)
2020-01-30 19:17 UTC, Toralf Förster
Details
environment (environment,70.35 KB, text/plain)
2020-01-30 19:17 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,14.43 KB, application/x-bzip)
2020-01-30 19:17 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,6.04 KB, application/x-bzip)
2020-01-30 19:17 UTC, Toralf Förster
Details
net-analyzer:nagios-plugins-snmp-0.6.0-r2:20200130-095042.log (net-analyzer:nagios-plugins-snmp-0.6.0-r2:20200130-095042.log,23.00 KB, text/plain)
2020-01-30 19:17 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,20.45 KB, application/x-bzip)
2020-01-30 19:17 UTC, Toralf Förster
Details
nagios-plugins-snmp-0.6.0-fno-common.patch (nagios-plugins-snmp-0.6.0-fno-common.patch,2.42 KB, patch)
2020-05-21 11:37 UTC, Jeroen Roovers
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-01-30 19:17:30 UTC
nagios_common_snmp.c:1081:7: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result]
 1081 |  else asprintf (&p_output,"%s %s",p_output,data);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
x86_64-pc-linux-gnu-gcc  -O2 -pipe -march=native -fno-common -O2 -pipe -march=native -fno-common -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -DNETSNMP_REMOVE_U64 -O2 -pipe -march=native -fno-common -Ulinux -Dlinux=linux -I. -I/usr/include  -Wl,-O1 -Wl,--as-needed -o check_snmp_int check_snmp_int.o nagios_common_snmp.o  -L/usr/lib64 -lnetsnmp -lcrypto -lm
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: nagios_common_snmp.o:(.bss+0x288): multiple definition of `o_host'; check_snmp_int.o:(.bss+0x288): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: nagios_common_snmp.o:(.bss+0x280): multiple definition of `o_verb'; check_snmp_int.o:(.bss+0x280): first defined here

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_systemd-20200126-201521

  -------------------------------------------------------------------

  Please see the tracker bug for details.

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.2.0 *

clang:
clang version 9.0.1 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/9/bin
llvm:
9.0.1
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.6
  [3]   python3.7 (fallback)
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.40.0 *
java-config:
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.242_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm
ghc:
The Glorious Glasgow Haskell Compilation System, version 8.0.2

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Thu, 30 Jan 2020 08:17:27 +0000

emerge -qpvO net-analyzer/nagios-plugins-snmp
[ebuild  N    ] net-analyzer/nagios-plugins-snmp-0.6.0-r2
Comment 1 Toralf Förster gentoo-dev 2020-01-30 19:17:33 UTC
Created attachment 609026 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-30 19:17:36 UTC
Created attachment 609028 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-01-30 19:17:38 UTC
Created attachment 609030 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-01-30 19:17:41 UTC
Created attachment 609032 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-01-30 19:17:44 UTC
Created attachment 609034 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-01-30 19:17:48 UTC
Created attachment 609036 [details]
net-analyzer:nagios-plugins-snmp-0.6.0-r2:20200130-095042.log
Comment 7 Toralf Förster gentoo-dev 2020-01-30 19:17:51 UTC
Created attachment 609038 [details]
temp.tbz2
Comment 8 Jeroen Roovers gentoo-dev 2020-05-21 11:37:49 UTC
Created attachment 640734 [details, diff]
nagios-plugins-snmp-0.6.0-fno-common.patch