Subject: pkg/5610: modemd not 64bit clean, compiles with -Werror
To: None <gnats-bugs@gnats.netbsd.org>
From: Tim Rightnour <root@polaris.garbled.net>
List: netbsd-bugs
Date: 06/18/1998 16:57:11
>Number:         5610
>Category:       pkg
>Synopsis:       modemd not 64bit clean, compiles with -Werror
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 18 16:50:00 1998
>Last-Modified:
>Originator:     Tim Rightnour
>Organization:
Tim Rightnour    -  root@garbled.net
http://www.zynetwc.com/~garbled/garbled.html
>Release:        6/10/98<NetBSD-current source date>
>Environment:
	
System: NetBSD polaris 1.3 NetBSD 1.3 (POLARIS) #0: Thu Mar 26 13:17:18 MST 1998 root@polaris:/usr/src/sys/arch/i386/compile/POLARIS i386


>Description:
Modemd pkg is not 64 bit clean, and tries to compile with -Werror.  This
results in the untimely death of the compile.

	
>How-To-Repeat:
Hop on your big fun alpha, cd comms/modemd && make

	
>Fix:

three new patches!

--- common/mcap.c.orig	Thu Jun 18 06:00:48 1998
+++ common/mcap.c	Thu Jun 18 16:21:29 1998
@@ -49,2 +49,6 @@
 
+#ifdef __NetBSD__
+#include "stdlib.h"
+#endif
+
 static void enter_modemcap PROTO ((char *));

--- common/atparse.c.orig	Thu Jun 18 16:48:18 1998
+++ common/atparse.c	Thu Jun 18 16:48:50 1998
@@ -47,2 +47,5 @@
 #include <ctype.h>
+#ifdef __NetBSD__
+#include <stdlib.h>
+#endif
 
--- incoming/modemd.c.orig	Thu Jun 18 16:50:31 1998
+++ incoming/modemd.c	Thu Jun 18 16:51:08 1998
@@ -50,2 +50,5 @@
 #include <stdio.h>
+#ifdef __NetBSD__
+#include <stdlib.h>
+#endif
 
	
>Audit-Trail:
>Unformatted: