Subject: pkg/16636: pkgsrc/emulators/gpsim fails to build on -current
To: None <gnats-bugs@gnats.netbsd.org>
From: Jan Schaumann <jschauma@dab.cs.stevens-tech.edu>
List: netbsd-bugs
Date: 05/03/2002 11:53:28
>Number:         16636
>Category:       pkg
>Synopsis:       pkgsrc/emulators/gpsim fails to build on -current
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 03 08:54:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Jan Schaumann (jschauma@netbsd.org)
>Release:        NetBSD 1.5ZC
>Organization:
	
>Environment:
	
	
System: NetBSD dab.cs.stevens-tech.edu 1.5ZC NetBSD 1.5ZC (BOCK) #0: Thu Apr 18 10:55:09 EDT 2002 jschauma@dab:/usr/src/sys/arch/i386/compile/BOCK i386
Architecture: i386
Machine: i386
>Description:
	When trying to compile /usr/pkgsrc/emulators/gpsim on -current,
	it fails with the following error:

main.cc: In function `int main(...)':
main.cc:150: passing `char **' as argument 3 of `poptGetContext(const char *, int, const char **, const poptOption *, int)' adds cv-quals without intervening `const'

>How-To-Repeat:
	cd /usr/pkgsrc/emulators/gpsim
	make
>Fix:
	Including the patch below in pkgsrc as patch-ae seems to fix the problem.


--- gpsim/main.cc.orig	Fri May  3 11:41:55 2002
+++ gpsim/main.cc	Fri May  3 11:42:12 2002
@@ -147,7 +147,7 @@
   poptContext optCon;   /* context for parsing command-line options */
 
 
-  optCon = poptGetContext(NULL, argc, argv, optionsTable, 0);
+  optCon = poptGetContext(NULL, argc, (const char **)argv, optionsTable, 0);
   poptSetOtherOptionHelp(optCon, "[-h] [-p <device> [<hex_file>]] [-c <stc_file>]");
 
 
>Release-Note:
>Audit-Trail:
>Unformatted: