Package: sysstat
Version: 6.0.0-2
Severity: normal
Tags: patch

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

gcc -o sadc.o -c -Wall -Wstrict-prototypes -pipe -g -fno-strength-reduce -O2  
-DUSE_NLS -DPACKAGE=\"sysstat\" -DLOCALEDIR=\"/usr/share/locale\"  -DSMP_RACE 
-DSA_DIR=\"/var/log/sysstat\" -DSADC_PATH=\"/usr/lib/sysstat/sadc\" sadc.c
In file included from sadc.c:37:
sa.h:492: error: array type has incomplete element type
sadc.c: In function 'read_net_dev_stat':
sadc.c:1422: warning: pointer targets in passing argument 1 of 'strcpy' differ 
in signedness
make[1]: *** [sadc.o] Error 1
make[1]: Leaving directory `/sysstat-6.0.0'
make: *** [build-stamp] Error 2

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

Regards
Andreas Jochens

diff -urN ../tmp-orig/sysstat-6.0.0/sa.h ./sa.h
--- ../tmp-orig/sysstat-6.0.0/sa.h      2005-05-11 21:47:38.000000000 +0200
+++ ./sa.h      2005-06-17 19:16:36.000000000 +0200
@@ -489,7 +489,7 @@
                                         struct stats_one_cpu *);
 extern char       *get_devname(unsigned int, unsigned int, int);
 extern void        init_bitmap(unsigned char [], unsigned char, unsigned int);
-extern void        init_stats(struct file_stats [], unsigned int [][]);
+extern void        init_stats(struct file_stats *, unsigned int [][NR_IRQS]);
 extern int         next_slice(unsigned long long, unsigned long long,
                               struct file_hdr *, int, long);
 extern int         parse_sar_opt(char * [], int, unsigned int *,


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

Reply via email to