Subject: pkg/30561: STLPort incompatible with native GNU STL (wchar problems)
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <ianzag@megasignal.com>
List: pkgsrc-bugs
Date: 06/20/2005 05:52:00
>Number:         30561
>Category:       pkg
>Synopsis:       STLPort incompatible with native GNU STL (wchar problems)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 20 05:52:00 +0000 2005
>Originator:     Ian Zagorskih
>Release:        NetBSD-current
>Organization:
NGEDC
>Environment:
NetBSD IANZAG 3.99.3 NetBSD 3.99.3 (DWL-G122) #12: Wed Jun  1 15:04:08 NOVST 2005  ianzag@IANZAG:/home/ianzag/NetBSD/kernel/DWL-G122 i386

>Description:
Looks like STLPort and native GNU STL are slightly incompatible with each other:

---cut---
$ cat main.cc
#include <cwctype>

int
main()
{
}

g++ -nostdinc++ -Wall -I/usr/pkg/include/stlport -I/usr/include/g++  -c main.cc
In file included from main.cc:2:
/usr/pkg/include/stlport/cwctype:43: error: `wctype_t' not declared
/usr/pkg/include/stlport/cwctype:44: error: `wint_t' not declared
/usr/pkg/include/stlport/cwctype:47: error: `wctrans_t' not declared
/usr/pkg/include/stlport/cwctype:48: error: `towctrans' not declared
/usr/pkg/include/stlport/cwctype:49: error: `wctrans' not declared
/usr/pkg/include/stlport/cwctype:50: error: `wctype' not declared
/usr/pkg/include/stlport/cwctype:51: error: `iswctype' not declared
/usr/pkg/include/stlport/cwctype:53: error: `iswalnum' not declared
/usr/pkg/include/stlport/cwctype:54: error: `iswalpha' not declared
/usr/pkg/include/stlport/cwctype:55: error: `iswcntrl' not declared
/usr/pkg/include/stlport/cwctype:57: error: `iswdigit' not declared
/usr/pkg/include/stlport/cwctype:58: error: `iswgraph' not declared
/usr/pkg/include/stlport/cwctype:59: error: `iswlower' not declared
/usr/pkg/include/stlport/cwctype:60: error: `iswprint' not declared
/usr/pkg/include/stlport/cwctype:61: error: `iswpunct' not declared
/usr/pkg/include/stlport/cwctype:62: error: `iswspace' not declared
/usr/pkg/include/stlport/cwctype:63: error: `iswupper' not declared
/usr/pkg/include/stlport/cwctype:64: error: `iswxdigit' not declared
/usr/pkg/include/stlport/cwctype:66: error: `towlower' not declared
/usr/pkg/include/stlport/cwctype:67: error: `towupper' not declared
*** Error code 1
---cut---

When i'm using native GNU STL's <cwtype> all compiles just fine.

---cut---
$ pkg_info stlport
Information for stlport-4.6nb1:

Comment:
Complete C++ standard library 

Description:
STLPort features a complete ANSI C++ standard library. Main features are:
+ Includes <complex> and SGI iostreams.
+ Can be configured to use either SGI or native iostreams.
+ Debug mode containers are implemented in terms of wrappers around non-debug
  ones. That provides for more clean and efficient implementation. In Debug
  Mode, different namespace _STLD:: is being used, so no link-time clashes
  between debug and non-debug versions are possible.
---cut---

>How-To-Repeat:

Install devel/stlport package. Try test above.

>Fix: