Subject: pkg/16763: Unable to compile sysutils/pcvt-util under 1.5ZC
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dawszy@foo.arhea.net>
List: netbsd-bugs
Date: 05/11/2002 22:16:54
>Number:         16763
>Category:       pkg
>Synopsis:       We are unable to compile pcvt-utils under ZC
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat May 11 13:17:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Dawid Szymanski
>Release:        NetBSD 1.5ZC
>Organization:
Regards,

Dawid Szymanski.
>Environment:
	
	
System: NetBSD foo.arhea.net 1.5ZC NetBSD 1.5ZC (FOO) #0: Thu May 9 12:59:57 CEST 2002 dawszy@foo.arhea.net:/work/src/sys/arch/i386/compile/FOO i386
Architecture: i386
Machine: i386
>Description:
	We were unable to compile fed.c from pcvt-util under 1.5ZC becouse of
	it's main function was setup to return type "void" not "int"
	
>How-To-Repeat:
	
>Fix:
	
*** Add new file patches/patch-ag :

$NetBSD$

--- fed/fed.c.orig	Sat May 11 21:56:14 2002
+++ fed/fed.c
@@ -48,7 +48,7 @@
 
 #include "fed.h"
 
-void main(int argc, char *argv[])
+int main(int argc, char *argv[])
 {
 	int i;
 	int row, col;


***  Then aplly following patch:


Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/sysutils/pcvt-utils/distinfo,v
retrieving revision 1.2
diff -b -u -r1.2 distinfo
--- distinfo	2001/04/19 11:29:06	1.2
+++ distinfo	2002/05/11 20:10:21
@@ -5,6 +5,7 @@
 SHA1 (patch-aa) = 47dec68f79792803f9b4480c8fde812c97b49c46
 SHA1 (patch-ab) = cc05a87826f9573611bb0e70092b9f4b825584a8
 SHA1 (patch-ac) = 634aaf8fe965ade5c972c852fbb1710bf1028b2e
-SHA1 (patch-ad) = 800a567ca81e3e3078efda5c6c082b61f9ace015
+SHA1 (patch-ad) = c6158765ff8ecc26dd9c297089c90b03c98172cb
 SHA1 (patch-ae) = d81e7ee5f59bf5d4e23d8f19868e190e2a8b2a53
 SHA1 (patch-af) = d07766a5d93ae97905ff0e9083246c1ad874219a
+SHA1 (patch-ag) = 0f81e47d321cd4822189a25654ae992597f9ce9a
Index: patches/patch-ad
===================================================================
RCS file: /cvsroot/pkgsrc/sysutils/pcvt-utils/patches/patch-ad,v
retrieving revision 1.1.1.1
diff -b -u -r1.1.1.1 patch-ad
--- patch-ad	2000/12/04 13:38:25	1.1.1.1
+++ patch-ad	2002/05/11 20:10:21
@@ -1,6 +1,6 @@
-$NetBSD: patch-ad,v 1.1.1.1 2000/12/04 13:38:25 hubertf Exp $
+$NetBSD$
 
---- fed/fed.h.orig	Mon Dec  4 13:46:17 2000
+--- fed/fed.h.orig	Sat Oct  7 22:44:48 1995
 +++ fed/fed.h
 @@ -32,7 +32,11 @@
   * 	fed.h, 3.00, last edit-date: [Sun Jan  2 20:10:31 1994]
@@ -14,3 +14,12 @@
  #include <stdlib.h>
  #include <string.h>
  #include <unistd.h>
+@@ -109,7 +113,7 @@
+ void setchr ( char type );
+ void setrow ( char type );
+ void setcol ( char type );
+-void main ( int argc, char *argv[] );
++int main ( int argc, char *argv[] );
+ void readfont ( char *filename );
+ void dis_cmd ( char *strg );
+ void clr_cmd ( void );
>Release-Note:
>Audit-Trail:
>Unformatted: