Package Details: bandwidthd 1:2.0.13-2

Git Clone URL: https://aur.archlinux.org/bandwidthd.git (read-only, click to copy)
Package Base: bandwidthd
Description: Daemon for graphing traffic of subnet machines
Upstream URL: https://codeberg.org/pf-graveyard/bandwidthd
Keywords: bandwidth bandwidthd monitoring traffic
Licenses: GPL-2.0-or-later
Submitter: post-factum
Maintainer: None
Last Packager: post-factum
Votes: 1
Popularity: 0.111033
First Submitted: 2020-04-09 14:38 (UTC)
Last Updated: 2024-10-13 20:46 (UTC)

Latest Comments

jmsq commented on 2024-11-09 21:41 (UTC)

Currently fails to build:

ninja: Entering directory `build'
[7/8] Compiling C object bandwidthd.p/bandwidthd.c.o
FAILED: bandwidthd.p/bandwidthd.c.o
cc -Ibandwidthd.p -I. -I../bandwidthd -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/webp -I/usr/include/rav1e -I/usr/include/svt-av1 -I/usr/include/libnl3 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -Werror '-DCONFIG_FILE="/etc/bandwidthd/bandwidthd.conf"' '-DHTDOCS_DIR="/var/lib/bandwidthd/htdocs"' '-DLOG_DIR="/var/lib/bandwidthd"' -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fPIE -pthread -DAVIF_DLL -DEB_DLL -MD -MQ bandwidthd.p/bandwidthd.c.o -MF bandwidthd.p/bandwidthd.c.o.d -o bandwidthd.p/bandwidthd.c.o -c ../bandwidthd/bandwidthd.c
../bandwidthd/bandwidthd.c: In function ‘main’:
../bandwidthd/bandwidthd.c:366:17: error: ‘__builtin_strncpy’ specified bound 16 equals destination size [-Werror=stringop-truncation]
  366 |                 strncpy(subnet, inet_ntoa(addr), 16);
      |                 ^
../bandwidthd/bandwidthd.c:367:17: error: ‘__builtin_strncpy’ specified bound 16 equals destination size [-Werror=stringop-truncation]
  367 |                 strncpy(mask, inet_ntoa(addr2), 16);
      |                 ^
cc1: all warnings being treated as errors
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: bandwidthd-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
bandwidthd - exit status 4

post-factum commented on 2020-07-25 23:06 (UTC)

@rageltman please check new pkg revision.

rageltman commented on 2020-07-25 21:27 (UTC)

Build is failing due to multiple definitions of iptable and subnettable:

[2020-07-25T20:14:21.504Z] gcc -Wall -std=gnu89 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -I/usr/local/include -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2  -c -o extensions.o extensions.c
[2020-07-25T20:14:21.507Z] gcc -Wall -std=gnu89 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -I/usr/local/include -DHAVE_CONFIG_H bandwidthd.o graph.o conf.tab.o conf.l.o pgsql.o sqlite.o extensions.o -o bandwidthd -L/usr/local/lib -lsqlite3 -lpcap -lgd -lpng -lm -lresolv -lnsl  
[2020-07-25T20:14:21.509Z] /usr/bin/ld: graph.o:(.bss+0x14000e0): multiple definition of `SubnetTable'; bandwidthd.o:(.bss+0x1400420): first defined here
[2020-07-25T20:14:21.512Z] /usr/bin/ld: graph.o:(.bss+0xe0): multiple definition of `IpTable'; bandwidthd.o:(.bss+0x420): first defined here
[2020-07-25T20:14:21.514Z] /usr/bin/ld: conf.tab.o:(.bss+0x20): multiple definition of `IpTable'; bandwidthd.o:(.bss+0x420): first defined here
[2020-07-25T20:14:21.517Z] /usr/bin/ld: conf.tab.o:(.bss+0x1400020): multiple definition of `SubnetTable'; bandwidthd.o:(.bss+0x1400420): first defined here
[2020-07-25T20:14:21.520Z] /usr/bin/ld: pgsql.o:(.bss+0xe0): multiple definition of `IpTable'; bandwidthd.o:(.bss+0x420): first defined here
[2020-07-25T20:14:21.523Z] /usr/bin/ld: pgsql.o:(.bss+0x14000e0): multiple definition of `SubnetTable'; bandwidthd.o:(.bss+0x1400420): first defined here
[2020-07-25T20:14:21.526Z] /usr/bin/ld: sqlite.o:(.bss+0x0): multiple definition of `IpTable'; bandwidthd.o:(.bss+0x420): first defined here
[2020-07-25T20:14:21.529Z] /usr/bin/ld: sqlite.o:(.bss+0x1400000): multiple definition of `SubnetTable'; bandwidthd.o:(.bss+0x1400420): first defined here
[2020-07-25T20:14:21.532Z] /usr/bin/ld: extensions.o:(.bss+0x0): multiple definition of `IpTable'; bandwidthd.o:(.bss+0x420): first defined here
[2020-07-25T20:14:21.534Z] /usr/bin/ld: extensions.o:(.bss+0x1400000): multiple definition of `SubnetTable'; bandwidthd.o:(.bss+0x1400420): first defined here
[2020-07-25T20:14:21.537Z] collect2: error: ld returned 1 exit status
[2020-07-25T20:14:21.540Z] make: *** [Makefile:25: bandwidthd] Error 1
[2020-07-25T20:14:21.542Z] ==> ERROR: A failure occurred in build().
[2020-07-25T20:14:21.544Z]     Aborting...
script returned exit code 255