Hoang, thank you for the newest version. It worked passing through md5 error I had before, but unfortunately another error comes up, now related to SRILM.
It seems that my srilm installation is not working as expected, since when I tried to compile Moses, it can not find symbolic link to library in srilm package. It is related with liboolm.a library. I have tried to redownload and recompile Srilm and Moses from the first step this morning, I still can't figured out what's wrong. Regards, Anung gmake all-recursive gmake[1]: Entering directory `/home/sadm/mosesworkspace/moses' Making all in moses/src gmake[2]: Entering directory `/home/sadm/mosesworkspace/moses/moses/src' gmake[2]: Nothing to be done for `all'. gmake[2]: Leaving directory `/home/sadm/mosesworkspace/moses/moses/src' Making all in moses-cmd/src gmake[2]: Entering directory `/home/sadm/mosesworkspace/moses/moses-cmd/src' g++ -g -O2 -L/home/sadm/utils/srilm/lib/sparc-elf -o moses Main.o mbr.o IOStream.o TranslationAnalysis.o -L../../moses/src -lmoses -loolm -ldstruct -lmisc -lz Undefined first referenced symbol in file send /home/sadm/utils/srilm/lib/sparc-elf/liboolm.a(LM.o) __xnet_socket /home/sadm/utils/srilm/lib/sparc-elf/liboolm.a(LM.o) accept /home/sadm/utils/srilm/lib/sparc-elf/liboolm.a(LM.o) listen /home/sadm/utils/srilm/lib/sparc-elf/liboolm.a(LM.o) inet_ntoa /home/sadm/utils/srilm/lib/sparc-elf/liboolm.a(LM.o) __xnet_bind /home/sadm/utils/srilm/lib/sparc-elf/liboolm.a(LM.o) ld: fatal: Symbol referencing errors. No output written to moses collect2: ld returned 1 exit status gmake[2]: *** [moses] Error 1 gmake[2]: Leaving directory `/home/sadm/mosesworkspace/moses/moses-cmd/src' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/home/sadm/mosesworkspace/moses' gmake: *** [all] Error 2 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:* Moses-support@mit.edu > *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 > -- [EMAIL PROTECTED], gmail.com, yahoo.com} Visit my Blog @ barliant.blogspot.com
_______________________________________________ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support