[collectd] Compilation issue on Solaris 10

Maciej (Matchek) Bliziński maciej at opencsw.org
Sat Jun 2 01:53:03 CEST 2012


2012/6/1 Maciej (Matchek) Bliziński <maciej at opencsw.org>:
> I need to either come up with a fix for that, or work with a released
> tarball instead. To be continued.

I made some progress. Installing CSWpkgconfig fixed the ./configure
problem. I have a patch for nfs.c, which I'll send shortly. I'm
currently facing a problem with conflicting defines in headers. Here's
the error message:

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -DPREFIX=\"/opt/collectd\"
-DCONFIGFILE=\"/opt/collectd/etc/collectd.conf\"
-DLOCALSTATEDIR=\"/opt/collectd/var\"
-DPKGLOCALSTATEDIR=\"/opt/collectd/var/lib/collectd\"
-DPIDFILE=\"/opt/collectd/var/run/collectd.pid\"
-DPLUGINDIR=\"/opt/collectd/lib/collectd\"
-DPKGDATADIR=\"/opt/collectd/share/collectd\" -I/opt/csw/include -Wall
-Werror -g -Dsolaris2 -I. -I/usr/sfw/include -DSOLARIS2=10 -MT
snmp_la-snmp.lo -MD -MP -MF .deps/snmp_la-snmp.Tpo -c snmp.c  -fPIC
-DPIC -o .libs/snmp_la-snmp.o
In file included from snmp.c:29:0:
/usr/sfw/include/net-snmp/net-snmp-config.h:863:0: error:
"PACKAGE_BUGREPORT" redefined [-Werror]
In file included from collectd.h:26:0,
                 from snmp.c:22:
config.h:1373:0: note: this is the location of the previous definition

>From what I see, the PACKAGE_BUGREPORT macro is defined by autotools.
The culprit is probably /usr/sfw/include/net-snmp/net-snmp-config.h
which shouldn't define the macro, but it does, and I can't change it.
At collectd, the macro is not used for anything, maybe it can be
removed altogether?



More information about the collectd mailing list