[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [virt-tools-list] nagios-virt-0.2.0 - can't compile



Well the workaround here was -

# cp -p nagios-virt.c nagios-virt.c.orig
# vi nagios-virt.c
...
# diff -u nagios-virt.c.orig nagios-virt.c
--- nagios-virt.c.orig  2013-07-03 14:12:24.141730413 +1000
+++ nagios-virt.c       2013-07-03 14:03:54.355044393 +1000
@@ -30,6 +30,7 @@
 #include <string.h>
 #include <libgen.h>
 #include <sys/types.h>
+#include <sys/stat.h>
 #include <errno.h>
 #include <assert.h>

# make
gcc -g -O2 -Wall -Werror -I/usr/include/libxml2 -DNV_DATADIR=\"/usr/local/share/nagios-virt-0.2.0\"   -c -o nagios-virt.o nagios-virt.c
gcc -g -O2 -Wall -Werror -I/usr/include/libxml2 -DNV_DATADIR=\"/usr/local/share/nagios-virt-0.2.0\" nagios-virt.o  -lvirt  -lxml2 -lz -lm -o nagios-virt




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]