summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9f3d864)
raw | patch | inline | side by side (parent: 9f3d864)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Tue, 11 Mar 2008 00:10:23 +0000 (00:10 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Tue, 11 Mar 2008 00:10:23 +0000 (00:10 +0000) |
redefinition warnings. Fixed helper ar error in ./configure
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1938 f882894a-f735-0410-b71e-b25c423dba1c
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1938 f882894a-f735-0410-b71e-b25c423dba1c
diff --git a/configure.in b/configure.in
index 6d94582cfc4e8528206d83b8b5fe0ae039a689a2..32e9411e0a5927b678baca96bf0c568cf97e01c1 100644 (file)
--- a/configure.in
+++ b/configure.in
gl_INIT
dnl Some helpful common compile errors checked here
-if test "$ac_cv_uname_s" = 'SunOS' -a "$ac_cv_prog_ac_ct_AR" = 'false' ; then
+if test "$ac_cv_uname_s" = 'SunOS' -a \( "x$ac_cv_prog_ac_ct_AR" = "x" -o "$ac_cv_prog_ac_ct_AR" = 'false' \) ; then
AC_MSG_ERROR(No ar found for Solaris - is /usr/ccs/bin in PATH?)
fi
diff --git a/lib/utils_base.c b/lib/utils_base.c
index a36eb68082fb13d7f866b4109df9d7e318e351eb..d1453c6717c0f11ccc05107df8f485d53f64d86a 100644 (file)
--- a/lib/utils_base.c
+++ b/lib/utils_base.c
*
*****************************************************************************/
-#include <stdarg.h>
#include "common.h"
+#include <stdarg.h>
#include "utils_base.h"
void
index 3e6ee43dc607bec82e591216b3f4a309582bb0a4..83c064873f3be859c24c2c6ea35dfe1b048c7f1d 100644 (file)
--- a/plugins-root/Makefile.am
+++ b/plugins-root/Makefile.am
# the actual targets
check_dhcp_LDADD = $(NETLIBS)
check_icmp_LDADD = $(NETLIBS) $(SOCKETLIBS)
+# -m64 needed at compiler and linker phase
pst3_CFLAGS = @PST3CFLAGS@
+pst3_LDFLAGS = @PST3CFLAGS@
pst3_LDADD = -lkvm
check_dhcp_DEPENDENCIES = check_dhcp.c $(NETOBJS) $(DEPLIBS)
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 151eacac37b0a3644bb377d500f24eecbb829c5b..b3d2ae397897135ccb369c799bf96c4eed02c8c1 100644 (file)
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
const char *copyright = "1999-2008";
const char *email = "nagiosplug-devel@lists.sourceforge.net";
-#include <ctype.h>
-
#include "common.h"
#include "netutils.h"
#include "utils.h"
#include "base64.h"
+#include <ctype.h>
#define INPUT_DELIMITER ";"
diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c
index 3310bcebcfce7cd1b548fb4be87f963a8a13f76a..97208b0587cb4674ff9dc970600818edaa8560be 100644 (file)
--- a/plugins/check_smtp.c
+++ b/plugins/check_smtp.c
const char *copyright = "2000-2007";
const char *email = "nagiosplug-devel@lists.sourceforge.net";
-#include <ctype.h>
-
#include "common.h"
#include "netutils.h"
#include "utils.h"
#include "base64.h"
+#include <ctype.h>
+
#ifdef HAVE_SSL
int check_cert = FALSE;
int days_till_exp;
diff --git a/plugins/common.h b/plugins/common.h
index 39a28a9d08f79f9d66cb10d2c97c4d87f9c8e3eb..0711dbf13939ae465a15620559dc2c55add10c4f 100644 (file)
--- a/plugins/common.h
+++ b/plugins/common.h
#define _COMMON_H_
#include "config.h"
-/* This needs to be removed for Solaris servers, where 64 bit files, but 32 bit architecture
- This needs to be done early on because subsequent system includes use _FILE_OFFSET_BITS
- Cannot remove from config.h because is included by regex.c from lib/ */
-#if __sun__ && !defined(_LP64) && _FILE_OFFSET_BITS == 64
-#undef _FILE_OFFSET_BITS
-#endif
#ifdef HAVE_FEATURES_H
#include <features.h>