[collectd] Problems building with gentoo linux / --with-libiptc=shipped
Andreas K. Huettel
mail at akhuettel.de
Sun Nov 15 18:30:34 CET 2009
Hi,
I'm packaging the current collectd version for Gentoo Linux. As a source-based
distribution, Gentoo has all the libs and includes, so I use --with-
libiptc=shipped.
However, the problem is that make still tries to compile the libiptc packaged
with collectd (which makes no sense once this switch is used). [Compile failes
because then of some type redefinition.]
I went around the problem by patching the Makefile.am's, see below. This works
nicely. However, may I suggest for future releases that in the case of --with-
libiptc=shipped the co-packaged libiptc is not even built anymore?!
Thanks for your consideration...
Best, Andreas
diff -r -u collectd-4.8.1.orig/Makefile.am collectd-4.8.1/Makefile.am
--- collectd-4.8.1.orig/Makefile.am 2009-10-04 09:46:13.000000000 +0200
+++ collectd-4.8.1/Makefile.am 2009-11-14 18:26:28.000000000 +0100
@@ -1,4 +1,4 @@
-ACLOCAL_AMFLAGS = -I libltdl/m4
+ACLOCAL_AMFLAGS = -I libltdl
SUBDIRS = libltdl src bindings
diff -r -u collectd-4.8.1.orig/src/Makefile.am collectd-4.8.1/src/Makefile.am
--- collectd-4.8.1.orig/src/Makefile.am 2009-10-04 09:46:19.000000000 +0200
+++ collectd-4.8.1/src/Makefile.am 2009-11-14 18:35:40.000000000 +0100
@@ -1,7 +1,4 @@
SUBDIRS = libcollectdclient
-if BUILD_WITH_OWN_LIBIPTC
-SUBDIRS += owniptc
-endif
if BUILD_WITH_OWN_LIBOCONFIG
SUBDIRS += liboconfig
endif
@@ -373,12 +370,7 @@
iptables_la_SOURCES = iptables.c
iptables_la_CPPFLAGS = $(AM_CPPFLAGS) $(BUILD_WITH_LIBIPTC_CPPFLAGS)
iptables_la_LDFLAGS = -module -avoid-version $(BUILD_WITH_LIBIPTC_LDFLAGS)
-if BUILD_WITH_OWN_LIBIPTC
-iptables_la_LIBADD = owniptc/libiptc.la
-iptables_la_DEPENDENCIES = owniptc/libiptc.la
-else
iptables_la_LIBADD = -liptc
-endif
collectd_LDADD += "-dlopen" iptables.la
collectd_DEPENDENCIES += iptables.la
endif
--
Dr. Andreas K. Huettel
Institute for Experimental and Applied Physics
University of Regensburg
D-93040 Regensburg
Germany
tel. +49 151 241 67748 (mobile)
e-mail mail at akhuettel.de
http://www.akhuettel.de/research/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20091115/b69f627a/attachment.pgp
More information about the collectd
mailing list