I tried to build Thrift (thrift-0.9.0.1) on Solaris for C++ library, But I got compile error: undefined symbol 'yylex'.
Theconfiguration had no any problem. I checked: both flex and bison were installed. g++ -DHAVE_CONFIG_H -I. -I../.. -I./src -Wall -g -O2 -MT thrift-t_d_generator.o -MD -MP -MF .deps/thrift-t_d_generator .Tpo -c -o thrift-t_d_generator.o `test -f 'src/generate/t_d_generator.cc' || echo './'`src/generate/t_d_generator.cc mv -f .deps/thrift-t_d_generator.Tpo .deps/thrift-t_d_generator.Po /bin/bash ../../libtool --tag=CXX --mode=link g++ -Wall -g -O2 -o thrift thrift-main.o thrift-md5.o thrift-t_gen erator.o thrift-parse.o thrift-t_c_glib_generator.o thrift-t_cpp_generator.o thrift-t_java_generator.o thrift-t_as3_ generator.o thrift-t_csharp_generator.o thrift-t_py_generator.o thrift-t_rb_generator.o thrift-t_perl_generator.o t hrift-t_php_generator.o thrift-t_erl_generator.o thrift-t_cocoa_generator.o thrift-t_st_generator.o thrift-t_ocaml_g enerator.o thrift-t_hs_generator.o thrift-t_xsd_generator.o thrift-t_html_generator.o thrift-t_js_generator.o thrif t-t_javame_generator.o thrift-t_delphi_generator.o thrift-t_go_generator.o thrift-t_d_generator.o -lfl libparse.a libtool: link: g++ -Wall -g -O2 -o thrift thrift-main.o thrift-md5.o thrift-t_generator.o thrift-parse.o thrift-t_c_glib _generator.o thrift-t_cpp_generator.o thrift-t_java_generator.o thrift-t_as3_generator.o thrift-t_csharp_generator.o thr ift-t_py_generator.o thrift-t_rb_generator.o thrift-t_perl_generator.o thrift-t_php_generator.o thrift-t_erl_generator.o thrift-t_cocoa_generator.o thrift-t_st_generator.o thrift-t_ocaml_generator.o thrift-t_hs_generator.o thrift-t_xsd_gene rator.o thrift-t_html_generator.o thrift-t_js_generator.o thrift-t_javame_generator.o thrift-t_delphi_generator.o thrift -t_go_generator.o thrift-t_d_generator.o -lfl libparse.a Undefined first referenced symbol in file yylex /usr/sfw/lib/libfl.so ld: fatal: symbol referencing errors. No output written to thrift collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `thrift' I don't know why I got this error and how to solve the problem. Thanks in advance. Alan
