Subject: pkg/22370: xuvmstat does not compile with gcc 3.3.1
To: None <gnats-bugs@gnats.netbsd.org>
From: Anders Hjalmarsson <hjalmar@hjalmar.to>
List: netbsd-bugs
Date: 08/05/2003 22:18:35
>Number: 22370
>Category: pkg
>Synopsis: xuvmstat does not compile with gcc 3.3.1
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Aug 05 19:52:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Anders Hjalmarsson
>Release: NetBSD 1.6U
>Organization:
>Environment:
System: NetBSD bigbox.hjalmar.to 1.6U NetBSD 1.6U (BIGBOX-$Revision: 1.25 $) #228: Mon Jul 21 23:05:34 CEST 2003 hjalmar@bigbox.hjalmar.to:/usr/SRC/config/i386/compile/BIGBOX i386
Architecture: i386
Machine: i386
>Description:
xuvmstat does not compile with gcc 3.3.1
bigbox% make
===> Checking for vulnerabilities in xuvmstat-20010220
=> Checksum OK for xuvmstat20010220.tar.gz.
===> Extracting for xuvmstat-20010220
===> Patching for xuvmstat-20010220
===> Configuring for xuvmstat-20010220
===> Building for xuvmstat-20010220
rm -f .gdbinit
touch .gdbinit
cc -O2 -pipe -march=athlon-mp -mfpmath=sse -I/usr/X11R6/include -Werror -c libcdcx.c
cc -O2 -pipe -march=athlon-mp -mfpmath=sse -I/usr/X11R6/include -Werror -c get_uvmexp.c
cc -O2 -pipe -march=athlon-mp -mfpmath=sse -I/usr/X11R6/include -Werror -c xuvmstat.c
xuvmstat.c:49: warning: built-in function `exp' declared as non-function
*** Error code 1
Stop.
make: stopped in /usr/SRC/pkgsrc/sysutils/xuvmstat/work.i386/xuvmstat
*** Error code 1
>How-To-Repeat:
Do a make in pkgsrc/sysutils/xuvmstat
>Fix:
Declare exp static or rename it. Declaring it static is simpler.
Remember to
mkdir patches
before applying patches
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/sysutils/xuvmstat/distinfo,v
retrieving revision 1.2
diff -u -r1.2 distinfo
--- distinfo 2001/04/19 11:29:13 1.2
+++ distinfo 2003/08/05 19:37:54
@@ -2,3 +2,5 @@
SHA1 (xuvmstat20010220.tar.gz) = bc9974355212bb4d0b831f5c755b0de6c2cf5968
Size (xuvmstat20010220.tar.gz) = 7513 bytes
+SHA1 (patch-aa) = ab0896454b766675e540e063c2ed84e88f70ac58
+Size (patch-aa) = 375 bytes
--- /dev/null 2003-08-05 22:04:17.000000000 +0200
+++ patches/patch-aa 2003-08-05 22:02:14.000000000 +0200
@@ -0,0 +1,11 @@
+--- xuvmstat.c.orig 2001-02-20 15:40:49.000000000 +0100
++++ xuvmstat.c 2003-08-05 21:52:39.000000000 +0200
+@@ -46,7 +46,7 @@
+
+ u_long black, white, red, green, blue, magenta, orange, purple;
+ XFontStruct *fnt_fixed, *fnt_8x13bold;
+-struct uvmexp exp, oexp;
++static struct uvmexp exp, oexp;
+ struct timeval tv, otv;
+ struct graph *gp_faults, *gp_traps, *gp_intrs, *gp_ctx;
+
>Release-Note:
>Audit-Trail:
>Unformatted: