Your message dated Sun, 27 Aug 2006 15:32:13 -0700
with message-id <[EMAIL PROTECTED]>
and subject line Bug#384307: fixed in sysstat 7.0.0-2
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: sysstat
Version: 7.0.0-1
Severity: serious
Tags: patch

When building 'sysstat' on powerpc/unstable,
I get the following error:

sa.h:397: warning: 'packed' attribute ignored for field of type 'unsigned 
char[3u]'
sed s+VERSION_NUMBER+7.0.0+g version.in > version.h
gcc -o common.o -c -Wall -Wstrict-prototypes -pipe -g -fno-strength-reduce -O2  
-DUSE_NLS -DPACKAGE=\"sysstat\" -DLOCALEDIR=\"/usr/share/locale\" common.c
common.c: In function 'get_kb_shift':
common.c:434: error: 'PAGE_SIZE' undeclared (first use in this function)
common.c:434: error: (Each undeclared identifier is reported only once
common.c:434: error: for each function it appears in.)
make[1]: *** [common.o] Error 1
make[1]: Leaving directory `/sysstat-7.0.0'
make: *** [build-stamp] Error 2

With the attached patch 'sysstat' can be compiled on powerpc.

Regards
Andreas Jochens

diff -urN ../tmp-orig/sysstat-7.0.0/common.c ./common.c
--- ../tmp-orig/sysstat-7.0.0/common.c  2006-07-09 08:19:06.000000000 +0000
+++ ./common.c  2006-08-23 11:20:05.000000000 +0000
@@ -29,13 +29,6 @@
 #include <sys/types.h>
 #include <sys/ioctl.h>
 
-/*
- * For PAGE_SIZE (which may be itself a call to getpagesize()).
- * PAGE_SHIFT no longer necessarily exists in <asm/page.h>. So
- * we use PAGE_SIZE to compute PAGE_SHIFT...
- */
-#include <asm/page.h>
-
 #include "version.h"
 #include "common.h"
 #include "ioconf.h"
@@ -431,7 +424,7 @@
    int shift = 0;
    int size;
 
-   size = PAGE_SIZE >> 10; /* Assume that a page has a minimum size of 1 kB */
+   size = sysconf(_SC_PAGE_SIZE) >> 10; /* Assume that a page has a minimum 
size of 1 kB */
    while (size > 1) {
       shift++;
       size >>= 1;


--- End Message ---
--- Begin Message ---
Source: sysstat
Source-Version: 7.0.0-2

We believe that the bug you reported is fixed in the latest version of
sysstat, which is due to be installed in the Debian FTP archive:

isag_7.0.0-2_all.deb
  to pool/main/s/sysstat/isag_7.0.0-2_all.deb
sysstat_7.0.0-2.diff.gz
  to pool/main/s/sysstat/sysstat_7.0.0-2.diff.gz
sysstat_7.0.0-2.dsc
  to pool/main/s/sysstat/sysstat_7.0.0-2.dsc
sysstat_7.0.0-2_i386.deb
  to pool/main/s/sysstat/sysstat_7.0.0-2_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Robert Luberda <[EMAIL PROTECTED]> (supplier of updated sysstat package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sun, 27 Aug 2006 23:49:02 +0200
Source: sysstat
Binary: isag sysstat
Architecture: source i386 all
Version: 7.0.0-2
Distribution: unstable
Urgency: low
Maintainer: Robert Luberda <[EMAIL PROTECTED]>
Changed-By: Robert Luberda <[EMAIL PROTECTED]>
Description: 
 isag       - Interactive System Activity Grapher for sysstat
 sysstat    - sar, iostat and mpstat - system performance tools for Linux
Closes: 384307
Changes: 
 sysstat (7.0.0-2) unstable; urgency=low
 .
   * common.c: Fix FTBFS on powerpc (closes: #384307).
Files: 
 3411e6f073428fde8c70d85beeddfd2a 578 admin optional sysstat_7.0.0-2.dsc
 0bf13f72ad49abf7c0c5c6beaa61afbb 24922 admin optional sysstat_7.0.0-2.diff.gz
 eba05150cabd3b91996d8c0bb68455e8 22924 admin optional isag_7.0.0-2_all.deb
 1a72d87f503c38151e4b916c38eb95e0 161780 admin optional sysstat_7.0.0-2_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFE8hljThh1cJ0wnDsRAr9yAJ9WZuSjDSogjNeOij6fh4MOH/knZwCfclcS
EALgtlhuC7hn5szLxUm7I1s=
=4/5n
-----END PGP SIGNATURE-----


--- End Message ---

Reply via email to