I still failed to build thrift in linux because too many package and version dependency to get it right, so I gave up for now:(
But I still tried to make it using cygwin in winXP. And it seems that I can go further...at least to the make stage. Yes, the make output no errors and it did create a thrift.exe. But, too sad, when I execute thrift.exe, NOTHING HAPPEN! I read the source of main.cc(line 930~932), at least it should output some usage. Here's the output: x...@xux-asus /cygdrive/d/opensource/thrift/compiler/cpp $ ls Makefile thrift-t_ocaml_generator.o Makefile.am thrift-t_perl_generator.o Makefile.in thrift-t_php_generator.o README thrift-t_py_generator.o md5.o thrift-t_rb_generator.o src thrift-t_st_generator.o thrift-main.o thrift-t_xsd_generator.o thrift-t_cocoa_generator.o thrift-thriftl.o thrift-t_cpp_generator.o thrift-thrifty.o thrift-t_csharp_generator.o thrift.exe thrift-t_erl_generator.o thriftl.cc thrift-t_generator.o thrifty.cc thrift-t_hs_generator.o thrifty.h thrift-t_html_generator.o version.h thrift-t_java_generator.o x...@xux-asus /cygdrive/d/opensource/thrift/compiler/cpp $ ./thrift.exe x...@xux-asus /cygdrive/d/opensource/thrift/compiler/cpp Any help? -Xiong 2009/3/17 xu xiong <[email protected]>: > After upgrading some packages > (http://wiki.apache.org/thrift/ThriftInstallationWin32, I could not > find out where the linux installation requirement is ), I finally came > to the make stage, but there are still errors. > > Please point out what I got wrong. > > make[3]: Entering directory `/home/gsta/thrift/lib/cpp' > /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H > -I. -I../.. -I/usr/local/include/boost-1_38 -I./src -Wall -g -O2 -MT > Thrift.lo -MD -MP -MF .deps/Thrift.Tpo -c -o Thrift.lo `test -f > 'src/Thrift.cpp' || echo './'`src/Thrift.cpp > libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. > -I/usr/local/include/boost-1_38 -I./src -Wall -g -O2 -MT Thrift.lo -MD > -MP -MF .deps/Thrift.Tpo -c src/Thrift.cpp -fPIC -DPIC -o > .libs/Thrift.o > In file included from > /usr/local/include/boost-1_38/boost/config/platform/linux.hpp:14, > from /usr/local/include/boost-1_38/boost/config.hpp:53, > from /usr/local/include/boost-1_38/boost/lexical_cast.hpp:23, > from src/Thrift.cpp:9: > /usr/lib/gcc/i686-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/cstdlib:124: > error: ��?:malloc��?has not been declared > /usr/lib/gcc/i686-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/cstdlib:132: > error: ��?:realloc��?has not been declared > src/Thrift.cpp: In member function ���void > apache::thrift::TOutput::printf(const char*, ...)��? > src/Thrift.cpp:33: error: ���malloc��?was not declared in this scope > make[3]: *** [Thrift.lo] Error 1 > make[3]: Leaving directory `/home/gsta/thrift/lib/cpp' > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory `/home/gsta/thrift/lib' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/gsta/thrift' > make: *** [all] Error 2 > > 2009/3/15 David Reiss <[email protected]>: >>> Am I missing something? >> No, these aren't fatal errors. You can upgrade to a newer version >> of automake if you want them to go away. >> >>> BTW, is there win32 compiler binary? >> No. >> >> --David >> >
