as said in a previous post, i think a solution can be in compat=g (now supported also on solarisx86)
please someone have a look at this appendix.
http://docs.oracle.com/cd/E24457_01/html/E21991/bkana.html#bkanrthe option description is very detailed but it does not explain what libraries or macros it uses for reaching this compatibity and where to get them
in fact, as expect:
./configure CFLAGS=-xc99 CXXFLAGS="-compat=g -DwxNEEDS_T -I/usr/local/sunstudio/include" --disable-monolithic --enable-amule-daemon --disable-amulecmd --disable-webserver --disable-amule-gui --disable-cas --disable-wxcas --disable-alc --disable-alcc --disable-xas --disable-fileview --disable-plasmamule --disable-geoip --disable-upnp --disable-debug --disable-nls --with-zlib=sys --disable-ed2k --enable-optimize --enable-mmap
\
source='FileFunctions.cpp' object='FileFunctions.o' libtool=no \
DEPDIR=.deps depmode=none /bin/sh ../../../depcomp \
CC -DHAVE_CONFIG_H -I. -I../../.. -DUSE_WX_EXTENSIONS -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -DwxUSE_GUI=0 -O2 -mt -D_REENTRANT -compat=g -DwxNEEDS_T -I/usr/local/sunstudio/include -c -o FileFunctions.o FileFunctions.cpp
CC: Warning: Can not determine include paths to compile with -library=stdcpp, please, consult documentation
"/usr/include/wx-2.8/wx/string.h", line 176: Error: Could not open include file<string>.
"/usr/include/wx-2.8/wx/string.h", line 181: Error: wstring is not a member of std.
"/usr/include/wx-2.8/wx/string.h", line 715: Error: const int is not a structure type.
"/usr/include/wx-2.8/wx/iosfwrap.h", line 18: Error: Could not open include file<iosfwd>.
"/usr/include/wx-2.8/wx/string.h", line 1649: Error: ostream is not a member of std.
"/usr/include/wx-2.8/wx/string.h", line 1649: Error: ostream is not a member of std.
"/usr/include/wx-2.8/wx/string.h", line 1649: Error: Operand expected instead of ",".
"/usr/include/wx-2.8/wx/string.h", line 1649: Error: There must be an identifier to declare.
"/usr/include/wx-2.8/wx/longlong.h", line 326: Error: ostream is not a member of std.
"/usr/include/wx-2.8/wx/longlong.h", line 326: Error: ostream is not a member of std.
"/usr/include/wx-2.8/wx/longlong.h", line 549: Error: ostream is not a member of std.
"/usr/include/wx-2.8/wx/longlong.h", line 549: Error: ostream is not a member of std.
"/usr/include/wx-2.8/wx/longlong.h", line 1070: Error: Multiple declaration for<<.
"/usr/include/wx-2.8/wx/longlong.h", line 1071: Error: Multiple declaration for<<.
"/usr/include/wx-2.8/wx/log.h", line 358: Error: ostream is not a member of std.
"/usr/include/wx-2.8/wx/log.h", line 365: Error: ostream is not a member of std.
"/usr/include/wx-2.8/wx/log.h", line 358: Error: ostream is not a member of std.
"/usr/include/wx-2.8/wx/log.h", line 358: Error: Operand expected instead of ")".
"/usr/include/wx-2.8/wx/log.h", line 358: Error: Operand expected instead of ")".
"FileFunctions.cpp", line 37: Error: Could not open include file<memory>.
"../../Types.h", line 33: Error: Could not open include file<list>.
"../../Types.h", line 34: Error: Could not open include file<vector>.
"../../Types.h", line 118: Error: list is not a member of std.
"../../Types.h", line 118: Error: A declaration does not specify a tag or an identifier.
"../../Types.h", line 118: Error: Use ";" to terminate declarations.
Compilation aborted, too many Error messages.
gmake[4]: *** [FileFunctions.o] Error 2
gmake[4]: Leaving directory `/usr/local/aMule-2.3.1/src/libs/common'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/usr/local/aMule-2.3.1/src/libs'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/local/aMule-2.3.1/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/local/aMule-2.3.1'
gmake: *** [all] Error 2
it says :
CC: Warning: Can not determine include paths to compile with -library=stdcpp, please, consult documentation
"/usr/include/wx-2.8/wx/string.h", line 176: Error: Could not open include file<string>.
now i do not know if it is referring to gcc compiler includes... i have tried to search for library stdcpp in relation to "compat=g" but there is no documentation. the most detailed is the link i posted above and this one
http://docs.oracle.com/cd/E24457_01/html/E21991/bkana.html#bkapyI have a question after reading this topic:
http://forum.amule.org/index.php?topic=17455.0since these two guys managed to compile a quite recent amule version on a quite recent solaris releas
AND
solaris is using the same std library from ages, and amule code is not changed a lot since 2.6.6
how they (Skolnick and vdb) did IT ??