Subject: pkg/6763: netpbm package needs updating
To: None <gnats-bugs@gnats.netbsd.org>
From: John F. Woods <jfw@jfwhome.funhouse.com>
List: netbsd-bugs
Date: 01/07/1999 21:09:36
>Number: 6763
>Category: pkg
>Synopsis: netpbm package needs to be updated
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jan 7 18:20:00 1999
>Last-Modified:
>Originator: John F. Woods
>Organization:
Misanthropes-R-Us
>Release: netbsd-current as of Jan 7 1999
>Environment:
System: NetBSD jfwhome.funhouse.com 1.3G NetBSD 1.3G (JFW) #40: Sun Aug 9 23:59:09 EDT 1998 jfw@jfwhome.funhouse.com:/usr/src/sys/arch/i386/compile/JFW i386
>Description:
Compiling the netpbm package gets tons of the following errors:
warning: reference to compatibility sys_errlist[]; include <errno.h>
for correct reference
gcc -O -I.. -I../pbm -s -o pgmnorm pgmnorm.c libpgm.a ../pbm/libpbm.a
libpbm1.o: warning: reference to compatibility sys_errlist[]; include <errno.h>
for correct reference
gcc -O -I.. -I../pbm -s -o pgmoil pgmoil.c libpgm.a ../pbm/libpbm.a
libpbm1.o: warning: reference to compatibility sys_errlist[]; include <errno.h>
for correct reference
>How-To-Repeat:
Compile it and watch it go.
>Fix:
I think the most straightforward way to fix this is to change "patch-ad",
which patches pbmplus.h, to #define A_STRERROR (so that the package uses
strerror()).
--- pbmplus.h.orig Tue Mar 1 04:46:36 1994
+++ pbmplus.h Thu Jan 7 21:04:06 1999
@@ -121,2 +121,3 @@
#endif
+#ifndef __NetBSD__
extern int atoi();
@@ -125,2 +126,3 @@
extern int write();
+#endif /* NetBSD */
#endif
@@ -175,3 +177,3 @@
*/
-/* #define A_STRERROR */
+#define A_STRERROR
>Audit-Trail:
>Unformatted: