Hi Anung I googled for 'strsep solaris' and it does seem that strsep() is not available on solaris. You could try using the new mert implementation (under moses/mert), although you would still have to fix scripts/Makefile so that it does not try to build and copy the old mert,
regards Barry On Thursday 31 July 2008 09:09:27 Anung Ariwibowo wrote: > Hi, > > It is me again. There is one thing I think you should know, the moses > version available at sourceforge.net is still having md5.cpp in it. > > And I have one more question about Moses, this time I have a difficulty > 'release'-ing the moses scripts. When I tried to do 'make release' under > moses/scripts directory, I got this error message below. It is strange that > strsep symbol is not visible, since it is part of standard string library. > Or am I missing something here? > > Best regards, > Anung > > > pwd=`pwd`; \ > for subdir in cmert-0.5 phrase-extract symal mbr; do \ > cd training/$subdir/ && make || exit 1; \ > echo "### Compiler $subdir"; \ > cd $pwd; \ > done > gcc mert.o point.o data.o score.o -lm -o mert > Undefined first referenced > symbol in file > strsep point.o > ld: fatal: Symbol referencing errors. No output written to mert > collect2: ld returned 1 exit status > *** Error code 1 > make: Fatal error: Command failed for target `mert' > Current working directory > /home/sadm/mosesworkspace/moses/scripts/training/cmert-0.5 > gmake: *** [compile] Error 1 > > On Mon, Jul 28, 2008 at 6:11 PM, Hieu Hoang <[EMAIL PROTECTED]> wrote: > > hi anung > > > > i'm not sure why it doesn't compile. > > > > in any case, the md5 functions are no longer used, so i've deleted them > > from the compile. > > > > do an svn update to get the latest md5-free source code > > > > ------------------------------ > > *From:* [EMAIL PROTECTED] [mailto: > > [EMAIL PROTECTED] *On Behalf Of *Anung Ariwibowo > > *Sent:* 28 July 2008 10:57 > > *To:* [email protected] > > *Cc:* [EMAIL PROTECTED] > > *Subject:* [Moses-support] Error compiling Moses on md5.cpp > > > > Hi, > > > > I am doing a machine translation research and interested in using Moses. > > I followed the tutorial on http://www.statmt.org/wmt07/baseline.html, and > > successfully installed giza-pp and mkcls. > > > > I did ./regenerate-makefiles.sh and ./configure as well. The problem > > comes when I try to compile (the error message is included below). > > > > Can someone point out what the problem is? > > > > I am using SunOS 5.10 Generic_118833-24 sun4v sparc SUNW,Sun-Fire-T200, > > with GNU Make version 3.80 > > > > Best regards, > > Anung > > > > > > # gmake > > gmake all-recursive > > gmake[1]: Entering directory `/home/sadm/mosesdecoder' > > Making all in moses/src > > gmake[2]: Entering directory `/home/sadm/mosesdecoder/moses/src' > > if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -W -Wall -ffor-scope > > -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/home/sadm/srilm/include -g -O2 > > -MT md5.o -MD -MP -MF ".deps/md5.Tpo" -c -o md5.o md5.cpp; \ > > then mv -f ".deps/md5.Tpo" ".deps/md5.Po"; else rm -f ".deps/md5.Tpo"; > > exit 1; fi > > md5.cpp:41: error: variable or field `byteReverse' declared void > > md5.cpp:41: error: `buf' was not declared in this scope > > md5.cpp:41: error: `longs' was not declared in this scope > > md5.cpp:42: error: initializer expression list treated as compound > > expression > > md5.cpp:42: error: expected `,' or `;' before "unsigned" > > md5.cpp:43: error: expected unqualified-id before '{' token > > md5.cpp:43: error: expected `,' or `;' before '{' token > > md5.cpp: In function `void MD5Update(MD5Context*, unsigned char*, > > unsigned int)': > > md5.cpp:97: error: `byteReverse' cannot be used as a function > > md5.cpp:106: error: `byteReverse' cannot be used as a function > > md5.cpp: In function `void MD5Final(unsigned char*, MD5Context*)': > > md5.cpp:141: error: `byteReverse' cannot be used as a function > > md5.cpp:150: error: `byteReverse' cannot be used as a function > > md5.cpp:157: error: `byteReverse' cannot be used as a function > > gmake[2]: *** [md5.o] Error 1 > > gmake[2]: Leaving directory `/home/sadm/mosesdecoder/moses/src' > > gmake[1]: *** [all-recursive] Error 1 > > gmake[1]: Leaving directory `/home/sadm/mosesdecoder' > > gmake: *** [all] Error 2 _______________________________________________ Moses-support mailing list [email protected] http://mailman.mit.edu/mailman/listinfo/moses-support
