Package: nsmon
Severity: normal
Tags: patch

When building 'nsmon' on amd64 with gcc-4.0,
I get the following error:

make[1]: Entering directory `/nsmon-2.3e'
gcc -Wall -O2 -c nsmon.c
In file included from run_check.h:9,
                 from nsmon.c:6:
config.h:27: error: array type has incomplete element type
In file included from run_check.h:9,
                 from nsmon.c:6:
config.h:58:7: warning: no newline at end of file
In file included from nsmon.c:6:
run_check.h:13:7: warning: no newline at end of file
In file included from nsmon.c:7:
ping_test.h:23:7: warning: no newline at end of file
In file included from nsmon.c:9:
port_test.h:15:7: warning: no newline at end of file
nsmon.c:116:3: warning: no newline at end of file
make[1]: *** [nsmon.o] Error 1
make[1]: Leaving directory `/nsmon-2.3e'
make: *** [build-stamp] Error 2

With the attached patch 'nsmon' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/nsmon-2.3e/config.h ./config.h
--- ../tmp-orig/nsmon-2.3e/config.h     1999-02-15 00:00:00.000000000 +0100
+++ ./config.h  2005-03-09 15:51:41.550886118 +0100
@@ -24,7 +24,7 @@
 #define DEFAULT_CONFIG "/etc/nsmon.conf"
 #define VERSION "2.3e"
 
-struct checkhost       hosts[20];
+struct checkhost       *hosts;
 char                   LOCK_DIR[1024];
 int                    hostnum;  // Number of hosts
 pid_t                  mainpid;
@@ -55,4 +55,4 @@
 void read_config (/* char *configfile */);
 void logit(/* char *s */);
 
-#endif
\ No newline at end of file
+#endif


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to