Hello,
PC>There is a new version of Sablotron available for download.
Congratulations! This is great news. It's always encouraging to see good
products being actively developed and improved.
I encounted one problem compiling on Solaris 2.7 (x86):
c++ -DHAVE_CONFIG_H -I. -I. -I../../autocfg -g -O2 -c encoding.cpp -fPIC -DPIC -o
.libs/encoding.lo
encoding.cpp: In method `Bool Recoder::close(ConvInfo *)':
encoding.cpp:247: ANSI C++ forbids implicit conversion from `void *' in argument
passing
encoding.cpp: In method `Bool Recoder::conv(ConvInfo *, const char *&, size_t &,
char *&, size_t &, EncResult &)':
encoding.cpp:283: ANSI C++ forbids implicit conversion from `void *' in argument
passing
make[2]: *** [encoding.lo] Error 1
make[2]: Leaving directory
`/path/to/Sablot-0.52/Sablot/engine'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/path/to/Sablot-0.52/Sablot'
make: *** [all-recursive] Error 1
The fix is pretty trivial, just adding casts for the first argument to
iconv_close(). Here is the patch to Sablot/engine/encoding.cpp:
247c247
< iconv_close(cd -> physCD);
---
> iconv_close((iconv_t)(cd -> physCD));
277c277
< iconv(cd -> physCD,
---
> iconv((iconv_t)(cd -> physCD),
With that fix, Sablotron compiles cleanly.
By the way, Sablotron 0.52 compiles and runs great on my Linux system at
home. Both boxes are using gcc-2.95.2, so I'm not sure why the Solaris box
complains and dies, while the Linux box doesn't.
Humbly,
Andrew
----------------------------------------------------------------------
Andrew Ho http://www.tellme.com/ [EMAIL PROTECTED]
Engineer [EMAIL PROTECTED] Voice 650-930-9062
Tellme Networks, Inc. 1-800-555-TELL Fax 650-930-9101
----------------------------------------------------------------------