Tommi Mäkitalo wrote:
> Hi,
> 
> could you please try the latest cxxtools 1.4.6. I had problems with iconv 
> autoconf tests and fiddled around with them a little, but have hopefully 
> resolved them in 1.4.6.
> 
> Tommi
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/



bash-3.00$  # ./configure  AR=gar
              #  SUCCESS AR=gar is mandatory for solaris


bash-3.00$ gmake   # this always fails
Making all in src
gmake[1]: Entering directory `/tmp/cxxtools-1.4.6/src'
gmake  all-am
gmake[2]: Entering directory `/tmp/cxxtools-1.4.6/src'
if /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. 
-I. -I. -I../include/cxxtools -I../include   -D_REENTRANT -pthreads -g 
-O2 -MT libcxxtools_la-iconvstream.lo -MD -MP -MF 
".deps/libcxxtools_la-iconvstream.Tpo" -c -o 
libcxxtools_la-iconvstream.lo `test -f 'iconvstream.cpp' || echo 
'./'`iconvstream.cpp; \
         then mv -f ".deps/libcxxtools_la-iconvstream.Tpo" 
".deps/libcxxtools_la-iconvstream.Plo"; else rm -f 
".deps/libcxxtools_la-iconvstream.Tpo"; exit 1; fi
  g++ -DHAVE_CONFIG_H -I. -I. -I. -I../include/cxxtools -I../include 
-D_REENTRANT -pthreads -g -O2 -MT libcxxtools_la-iconvstream.lo -MD -MP 
-MF .deps/libcxxtools_la-iconvstream.Tpo -c iconvstream.cpp  -fPIC -DPIC 
-o .libs/libcxxtools_la-iconvstream.o
iconvstream.cpp: In member function 'virtual int 
cxxtools::iconvstreambuf::overflow(int)':
iconvstream.cpp:116: error: 'ICONV_CONST' was not declared in this scope
iconvstream.cpp:116: error: expected `;' before 'char'
iconvstream.cpp:122: error: 'inbufptr' was not declared in this scope
iconvstream.cpp:147: error: no matching function for call to 
'cxxtools::iconvstreambuf::sputn(<type error>, size_t&)'
/opt/csw/gcc4/lib/gcc/i386-pc-solaris2.8/4.0.2/../../../../include/c++/4.0.2/streambuf:424:
 
note: candidates are: std::streamsize std::basic_streambuf<_CharT, 
_Traits>::sputn(const _CharT*, std::streamsize) [with _CharT = char, 
_Traits = std::char_traits<char>]
gmake[2]: *** [libcxxtools_la-iconvstream.lo] Error 1
gmake[2]: Leaving directory `/tmp/cxxtools-1.4.6/src'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/tmp/cxxtools-1.4.6/src'
gmake: *** [all-recursive] Error 1




but quite new is what is going on when I compile the gmp   GNU Multiple 
Precision Arithmetic Library.

The command line has to look like this




bash-3.00$ gcc -I/opt/csw/include -L/opt/csw/lib -lgmp 
-R/opt/csw/lib/$ISALIST ramanujan2.c -o ramanujan2.out
bash-3.00$ ./ramanujan2.out
Took 0.00ms to find out 1th term
Took 0.00ms to find out 2th term






gcc  # the Gnu C compiler

-I/opt/csw/include   # opensolaris  include path

-L/opt/csw/lib  # opensolaris  link path

-lgmp   #   the statically or dynamically library  so  for shared 
objects.  *.so

-R/opt/csw/lib/$ISALIST   # this one was reported to me recently,  no 
way I could have found that out myself.





gmp is alo here

https://gmp.dev.java.net/

and here


http://gmplib.org/


there ale some solaris specific issues,
also  Sparc Solaris  and AMD64 is different,
then opensolaris has some issues.

I am currently learning java but I promise to continue working with tntnet.



I have also gotten information about  this :

bash-3.00$ LDFLAGS='-L/opt/csw/lib' ; export LDFLAGS
bash-3.00$ echo $LDFLAGS
-L/opt/csw/lib

bash-3.00$ LD_OPTIONS='-R/opt/csw/lib/$ISALIST' ; export LD_OPTIONS
bash-3.00$ echo $LD_OPTIONS
-R/opt/csw/lib/$ISALIST
bash-3.00$ echo $ISALIST
bash-3.00$                 #  nothing


It can be important if  gmp  can be included in a tntnet  live web 
application server.

also gmp does not work well through JNI java native interface.
According to what I have tried with cl.exe from visual studio.

but it is part of  kaffe.org

http://www.kaffe.org/

Java

         * Kaffe http://www.kaffe.org
         * Kissme http://kissme.sourceforge.net



http://www.gnu.org/software/gmp/manual/html_node/Language-Bindings.html

The problem around  porting  gmp is similar located to the problems 
porting  tntnet.

If I can get  gmp correctly compiled under  opensolaris  then I have a 
very good reason to believe that  any other Linux native software also 
will run.

I only regularly upgrade  from  blastwave   and I'd like to see
tntnet listed   als maintaied opensolaris  software.



Morten


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

Reply via email to