pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/54304: sysutils/collectd-dns build fails due to dlt.h multiple inclusion



>Number:         54304
>Category:       pkg
>Synopsis:       sysutils/collectd-dns build fails due to dlt.h multiple inclusion
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 18 07:00:01 +0000 2019
>Originator:     Frédéric Fauberteau
>Release:        pkgsrc-current
>Organization:
>Environment:
System: NetBSD hydralisk.triaxx.org 8.99.42 NetBSD 8.99.42 (HYDRALISK) #0: Thu Jun  6 16:35:49 CEST 2019  triaxx%hydralisk.triaxx.org@localhost:/mnt/ccd0/netbsd/sysbuild/amd64/obj/mnt/ccd0/netbsd/tags/HEAD/src/sys/arch/amd64/compile/HYDRALISK amd64
Architecture: x86_64
Machine: amd64
>Description:
The build of sysutils/collectd-dns fails because both /usr/include/net/if.h (NetBSD) and /usr/pkg/include/pcap.h (pkgsrc) include dlt.h that defines DLT_IEEE802_15_4. I noticed that libpcap from NetBSD does not contain dlt.h (contrary to net/libpcap).

===> Building for collectd-dns-5.8.0nb1
--- src/.dirstamp ---
--- src/.deps/.dirstamp ---
--- src/dns_la-dns.lo ---
--- src/dns_la-utils_dns.lo ---
--- src/dns_la-dns.lo ---
  CC       src/dns_la-dns.lo
--- src/dns_la-utils_dns.lo ---
  CC       src/dns_la-utils_dns.lo
In file included from /usr/pkgsrc/sysutils/collectd-dns/work/.buildlink/include/pcap/bpf.h:113:0,
                 from /usr/pkgsrc/sysutils/collectd-dns/work/.buildlink/include/pcap/pcap.h:51,
                 from /usr/pkgsrc/sysutils/collectd-dns/work/.buildlink/include/pcap.h:43,
                 from src/utils_dns.c:97:
/usr/pkgsrc/sysutils/collectd-dns/work/.buildlink/include/pcap/dlt.h:748:0: error: "DLT_IEEE802_15_4" redefined [-Werror]
 #define DLT_IEEE802_15_4 195
 
In file included from /usr/include/net/if.h:84:0,
                 from src/utils_dns.c:48:
/usr/include/net/dlt.h:755:0: note: this is the location of the previous definition
 #define DLT_IEEE802_15_4  DLT_IEEE802_15_4_WITHFCS
 
cc1: all warnings being treated as errors
*** [src/dns_la-utils_dns.lo] Error code 1

make: stopped in /usr/pkgsrc/sysutils/collectd-dns/work/collectd-5.8.0
1 error

make: stopped in /usr/pkgsrc/sysutils/collectd-dns/work/collectd-5.8.0
*** Error code 2

Stop.
make[1]: stopped in /usr/pkgsrc/sysutils/collectd-dns
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/sysutils/collectd-dns
>How-To-Repeat:
cd /usr/pkgsrc/sysutils/collectd-dns && make build
>Fix:



Home | Main Index | Thread Index | Old Index