Subject: pkg/28693: icewm package compilation trouble on 2.0
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <bknotwell@yahoo.com>
List: pkgsrc-bugs
Date: 12/17/2004 17:45:00
>Number:         28693
>Category:       pkg
>Synopsis:       icewm package compilation trouble on 2.0
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 17 17:45:00 +0000 2004
>Originator:     Brad Knotwell
>Release:        2.0
>Organization:
user
>Environment:
NetBSD bradwkstn 2.0 NetBSD 2.0 (BRAD) #1: Thu Dec  9 01:33:14 GMT 2004  root@bradwkstn:/usr/src/sys/arch/i386/compile/BRAD i386
>Description:
You get a c++ compiler error (const issue) at line 155 of ylocale.cc.
Specifically, the compiler's unhappy about the 2nd argument to
iconv which needs to be const char** instead of char**.
>How-To-Repeat:
I've gotten it twice by installing icewm from pkgsrc on 2.0
>Fix:
I've resolved it both times with a const_cast<const char**>(&inbuf)
statement.