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

Reply via email to