OS: Solaris 11.3 SRU36
wxWidgets: 3.1.3 (Source)
GCC version: 4.8.2, 5.4.0 and Sun Studio 12.6
wx-config version: 2.8.12
./configure (simple) and or --with-gtk or --with-x11
Status: failed
-
I am trying to build wxWidgets 3.1.3 on Solaris 11.3 SRU36.10 with both gcc 4.8.2 and sun studio 12.6 and GNU make 3.82 and receive errors after of building here below
Code: Select all
In file included from ./include/wx/chartype.h:69:0,
from ./include/wx/debug.h:17,
from ./include/wx/defs.h:851,
from ./include/wx/wxprec.h:12,
from ./src/common/any.cpp:12:
/usr/include/wchar.h:141:12: note: ‘std::wcsncasecmp’
extern int wcsncasecmp(const wchar_t *, const wchar_t *, size_t);
^
In file included from ./include/wx/crt.h:19:0,
from ./src/common/any.cpp:24:
./include/wx/wxcrt.h: In function ‘int wxStrnicmp(const wxScopedWCharBuffer&, const wchar_t*, std::size_t)’:
./include/wx/wxcrt.h:519:50: error: ‘wcsncasecmp’ was not declared in this scope
#define WX_STR_CALL(func, a1, a2) func(a1, a2, n)
^
./include/wx/wxcrt.h:365:18: note: in expansion of macro ‘WX_STR_CALL’
{ return WX_STR_CALL(crtW, s1.data(), s2); } \
^
./include/wx/wxcrt.h:402:5: note: in expansion of macro ‘WX_STR_FUNC_NO_INVERT’
WX_STR_FUNC_NO_INVERT(int, name, crtA, crtW, forString) \
^
./include/wx/wxcrt.h:529:1: note: in expansion of macro ‘WX_STRCMP_FUNC’
WX_STRCMP_FUNC(wxStrnicmp, wxCRT_StrnicmpA, wxCRT_StrnicmpW, wxStrnicmp_String)
^
./include/wx/wxcrt.h:519:50: note: suggested alternative:
#define WX_STR_CALL(func, a1, a2) func(a1, a2, n)
^
./include/wx/wxcrt.h:365:18: note: in expansion of macro ‘WX_STR_CALL’
{ return WX_STR_CALL(crtW, s1.data(), s2); } \
^
./include/wx/wxcrt.h:402:5: note: in expansion of macro ‘WX_STR_FUNC_NO_INVERT’
WX_STR_FUNC_NO_INVERT(int, name, crtA, crtW, forString) \
^
./include/wx/wxcrt.h:529:1: note: in expansion of macro ‘WX_STRCMP_FUNC’
WX_STRCMP_FUNC(wxStrnicmp, wxCRT_StrnicmpA, wxCRT_StrnicmpW, wxStrnicmp_String)
^
In file included from ./include/wx/chartype.h:69:0,
from ./include/wx/debug.h:17,
from ./include/wx/defs.h:851,
from ./include/wx/wxprec.h:12,
from ./src/common/any.cpp:12:
/usr/include/wchar.h:141:12: note: ‘std::wcsncasecmp’
extern int wcsncasecmp(const wchar_t *, const wchar_t *, size_t);
^
In file included from ./include/wx/crt.h:19:0,
from ./src/common/any.cpp:24:
./include/wx/wxcrt.h: In function ‘int wxStrnicmp(const wxScopedWCharBuffer&, const wxScopedWCharBuffer&, std::size_t)’:
./include/wx/wxcrt.h:519:50: error: ‘wcsncasecmp’ was not declared in this scope
#define WX_STR_CALL(func, a1, a2) func(a1, a2, n)
^
./include/wx/wxcrt.h:369:18: note: in expansion of macro ‘WX_STR_CALL’
{ return WX_STR_CALL(crtW, s1.data(), s2.data()); } \
^
./include/wx/wxcrt.h:402:5: note: in expansion of macro ‘WX_STR_FUNC_NO_INVERT’
WX_STR_FUNC_NO_INVERT(int, name, crtA, crtW, forString) \
^
./include/wx/wxcrt.h:529:1: note: in expansion of macro ‘WX_STRCMP_FUNC’
WX_STRCMP_FUNC(wxStrnicmp, wxCRT_StrnicmpA, wxCRT_StrnicmpW, wxStrnicmp_String)
^
./include/wx/wxcrt.h:519:50: note: suggested alternative:
#define WX_STR_CALL(func, a1, a2) func(a1, a2, n)
^
./include/wx/wxcrt.h:369:18: note: in expansion of macro ‘WX_STR_CALL’
{ return WX_STR_CALL(crtW, s1.data(), s2.data()); } \
^
./include/wx/wxcrt.h:402:5: note: in expansion of macro ‘WX_STR_FUNC_NO_INVERT’
WX_STR_FUNC_NO_INVERT(int, name, crtA, crtW, forString) \
^
./include/wx/wxcrt.h:529:1: note: in expansion of macro ‘WX_STRCMP_FUNC’
WX_STRCMP_FUNC(wxStrnicmp, wxCRT_StrnicmpA, wxCRT_StrnicmpW, wxStrnicmp_String)
^
In file included from ./include/wx/chartype.h:69:0,
from ./include/wx/debug.h:17,
from ./include/wx/defs.h:851,
from ./include/wx/wxprec.h:12,
from ./src/common/any.cpp:12:
/usr/include/wchar.h:141:12: note: ‘std::wcsncasecmp’
extern int wcsncasecmp(const wchar_t *, const wchar_t *, size_t);
^
gmake: *** [basedll_any.o] Error 1
BUILD FAILED (exit value 2, total time: 3m 7s)
Code: Select all
REF
pre-build
Configured wxWidgets 3.1.3 for `sparc-sun-solaris2.11'
Which GUI toolkit should wxWidgets use? GTK+ 2 with support for GTK+ printing
Should wxWidgets be compiled into single library? no
Should wxWidgets be linked as a shared library? yes
Should wxWidgets support Unicode? yes (using wchar_t)
What level of wxWidgets compatibility should be enabled?
wxWidgets 2.8 no
wxWidgets 3.0 yes
Which libraries should wxWidgets use?
STL no
jpeg sys
png sys
regex builtin
tiff sys
lzma yes
zlib sys
expat sys
libmspack no
sdl no
PRE-BUILD SUCCESSFUL (total time: 15s)
BUILD
./include/wx/wxcrt.h:519:50: error: ‘wcsncasecmp’ was not declared in this scope
#define WX_STR_CALL(func, a1, a2) func(a1, a2, n)
^
./include/wx/wxcrt.h:365:18: note: in expansion of macro ‘WX_STR_CALL’
{ return WX_STR_CALL(crtW, s1.data(), s2); } \
^
./include/wx/wxcrt.h:402:5: note: in expansion of macro ‘WX_STR_FUNC_NO_INVERT’
WX_STR_FUNC_NO_INVERT(int, name, crtA, crtW, forString) \
^
./include/wx/wxcrt.h:529:1: note: in expansion of macro ‘WX_STRCMP_FUNC’
WX_STRCMP_FUNC(wxStrnicmp, wxCRT_StrnicmpA, wxCRT_StrnicmpW, wxStrnicmp_String)
^
./include/wx/wxcrt.h:519:50: note: suggested alternative:
#define WX_STR_CALL(func, a1, a2) func(a1, a2, n)
^
./include/wx/wxcrt.h:365:18: note: in expansion of macro ‘WX_STR_CALL’
{ return WX_STR_CALL(crtW, s1.data(), s2); } \
^
./include/wx/wxcrt.h:402:5: note: in expansion of macro ‘WX_STR_FUNC_NO_INVERT’
WX_STR_FUNC_NO_INVERT(int, name, crtA, crtW, forString) \
^
./include/wx/wxcrt.h:529:1: note: in expansion of macro ‘WX_STRCMP_FUNC’
WX_STRCMP_FUNC(wxStrnicmp, wxCRT_StrnicmpA, wxCRT_StrnicmpW, wxStrnicmp_String)
^
In file included from ./include/wx/chartype.h:69:0,
from ./include/wx/debug.h:17,
from ./include/wx/defs.h:851,
from ./include/wx/wxprec.h:12,
from ./src/common/any.cpp:12:
/usr/include/wchar.h:141:12: note: ‘std::wcsncasecmp’
extern int wcsncasecmp(const wchar_t *, const wchar_t *, size_t);
^
In file included from ./include/wx/crt.h:19:0,
from ./src/common/any.cpp:24:
./include/wx/wxcrt.h: In function ‘int wxStrnicmp(const wxScopedWCharBuffer&, const wxScopedWCharBuffer&, std::size_t)’:
./include/wx/wxcrt.h:519:50: error: ‘wcsncasecmp’ was not declared in this scope
#define WX_STR_CALL(func, a1, a2) func(a1, a2, n)
^
./include/wx/wxcrt.h:369:18: note: in expansion of macro ‘WX_STR_CALL’
{ return WX_STR_CALL(crtW, s1.data(), s2.data()); } \
^
./include/wx/wxcrt.h:402:5: note: in expansion of macro ‘WX_STR_FUNC_NO_INVERT’
WX_STR_FUNC_NO_INVERT(int, name, crtA, crtW, forString) \
^
./include/wx/wxcrt.h:529:1: note: in expansion of macro ‘WX_STRCMP_FUNC’
WX_STRCMP_FUNC(wxStrnicmp, wxCRT_StrnicmpA, wxCRT_StrnicmpW, wxStrnicmp_String)
^
./include/wx/wxcrt.h:519:50: note: suggested alternative:
#define WX_STR_CALL(func, a1, a2) func(a1, a2, n)
^
./include/wx/wxcrt.h:369:18: note: in expansion of macro ‘WX_STR_CALL’
{ return WX_STR_CALL(crtW, s1.data(), s2.data()); } \
^
./include/wx/wxcrt.h:402:5: note: in expansion of macro ‘WX_STR_FUNC_NO_INVERT’
WX_STR_FUNC_NO_INVERT(int, name, crtA, crtW, forString) \
^
./include/wx/wxcrt.h:529:1: note: in expansion of macro ‘WX_STRCMP_FUNC’
WX_STRCMP_FUNC(wxStrnicmp, wxCRT_StrnicmpA, wxCRT_StrnicmpW, wxStrnicmp_String)
^
In file included from ./include/wx/chartype.h:69:0,
from ./include/wx/debug.h:17,
from ./include/wx/defs.h:851,
from ./include/wx/wxprec.h:12,
from ./src/common/any.cpp:12:
/usr/include/wchar.h:141:12: note: ‘std::wcsncasecmp’
extern int wcsncasecmp(const wchar_t *, const wchar_t *, size_t);
^
gmake: *** [basedll_any.o] Error 1
BUILD FAILED (exit value 2, total time: 3m 6s)
*
here some configure build success from erlang otp 22.0 but can't used wx.
1.buid normal
./configure CC=${IDE_CC} CXX=${IDE_CXX} CFLAGS="-O" CXXFLAGS=-g
result=OK
2.buid HIPE
./configure CC=${IDE_CC} CXX=${IDE_CXX} CFLAGS="-O" CXXFLAGS=-g --enable-hipe
result=OK
3.buid HIPE and 64bit
./configure CC=${IDE_CC} CXX=${IDE_CXX} CFLAGS="-O" CXXFLAGS=-g --enable-hipe --enable-m64-build
result=failed
4.buid HIPE and 64bit and wx
./configure CC=${IDE_CC} CXX=${IDE_CXX} CFLAGS="-O" CXXFLAGS=-g --enable-hipe --enable-m64-build
result=failed