change SHA_LONG64 to long in x86_64 2015-04-14 17:53 GMT+08:00 易剑 <eyj...@gmail.com>:
> In file included from ./src/thrift/Thrift.h:48, > from ./src/thrift/transport/TTransport.h:23, > from ./src/thrift/transport/TSocket.h:25, > from ./src/thrift/transport/TSSLSocket.h:27, > from src/thrift/transport/TSSLSocket.cpp:38: > ./src/thrift/TLogging.h:61:32: warning: anonymous variadic macros were > introduced in C99 > ./src/thrift/TLogging.h:87:34: warning: anonymous variadic macros were > introduced in C99 > ./src/thrift/TLogging.h:97:41: warning: anonymous variadic macros were > introduced in C99 > ./src/thrift/TLogging.h:107:32: warning: anonymous variadic macros were > introduced in C99 > ./src/thrift/TLogging.h:128:38: warning: anonymous variadic macros were > introduced in C99 > ./src/thrift/TLogging.h:150:35: warning: anonymous variadic macros were > introduced in C99 > /usr/local/thirdparty/openssl/include/openssl/sha.h:184: error: ISO C++ > does not support 'long long' > /usr/local/thirdparty/openssl/include/openssl/sha.h:185: error: ISO C++ > does not support 'long long' > /usr/local/thirdparty/openssl/include/openssl/sha.h:187: error: ISO C++ > does not support 'long long' > > 2015-04-14 17:51 GMT+08:00 易剑 <eyj...@gmail.com>: > >> Build success by commenting these lines: >> >> 17656 echo "with_qt4 => $with_qt4" >> 17657 # if test "$with_qt4" = "yes"; then >> 17658 # PKG_CHECK_MODULES(QT, QtCore >= 4.3, QtNetwork >= 4.3, >> have_qt=yes, have_qt=no) >> 17659 # fi >> >> 17727 # if test "$with_qt5" = "yes"; then >> 17728 # PKG_CHECK_MODULES(QT5, Qt5Core >= 5.0, Qt5Network >= 5.0, >> 17729 # have_qt5=yes;qt_reduce_reloc=`$PKG_CONFIG >> --variable=qt_config Qt5Core | grep "reduce_relocations"`, >> 17730 # have_qt5=no) >> 17731 # fi >> >> 17873 #if test "$with_csharp" = "yes"; then >> 17874 # PKG_CHECK_MODULES(MONO, mono >= 2.0.0, net_3_5=yes, net_3_5=no) >> 17875 # PKG_CHECK_MODULES(MONO, mono >= 1.2.4, have_mono=yes, >> have_mono=no) >> 17876 # if test "$have_mono" = "yes" ; then >> 17877 # have_csharp="yes" >> 17878 # fi >> 17879 #fi >> >> >> export THIRDPARTY_HOME=/usr/local/thirdparty >> ./configure --prefix=$THIRDPARTY_HOME/thrift \ >> --with-boost=$THIRDPARTY_HOME/boost \ >> --with-libevent=$THIRDPARTY_HOME/libevent \ >> CPPFLAGS="-I$THIRDPARTY_HOME/openssl/include" \ >> LDFLAGS="-ldl -L$THIRDPARTY_HOME/openssl/lib" \ >> --with-qt4=no --with-c_glib=no --with-csharp=no \ >> --with-java=no --with-erlang=no --with-python=no \ >> --with-perl=no --with-ruby=no --with-haskell=no \ >> --with-go=no --with-d=no \ >> --with-qt4=no --with-qt5=no \ >> --with-c_glib=no >> make >> make install >> >> 2015-04-14 16:52 GMT+08:00 易剑 <eyj...@gmail.com>: >> >>> ./configure --prefix=$THIRDPARTY_HOME/thrift \ >>> --with-boost=$THIRDPARTY_HOME/boost \ >>> --with-libevent=$THIRDPARTY_HOME/libevent \ >>> CPPFLAGS="-I$THIRDPARTY_HOME/openssl/include" \ >>> LDFLAGS="-ldl -L$THIRDPARTY_HOME/openssl/lib" \ >>> --with-qt4=no --with-c_glib=no --with-csharp=no \ >>> --with-java=no --with-erlang=no --with-python=no \ >>> --with-perl=no --with-ruby=no --with-haskell=no \ >>> --with-go=no --with-d=no \ >>> --with-qt4=no --with-qt5=no >>> >>> checking for ranlib... (cached) ranlib >>> checking whether g++ supports C++11 features by default... no >>> checking whether g++ supports C++11 features with -std=c++11... no >>> configure: No compiler with C++11 support was found >>> ./configure: line 17658: syntax error near unexpected token `QT,' >>> ./configure: line 17658: ` PKG_CHECK_MODULES(QT, QtCore >= 4.3, >>> QtNetwork >= 4.3, have_qt=yes, have_qt=no)' >>> >>> configure: >>> 17653 have_qt4=no >>> 17654 >>> 17655 have_qt=no >>> 17656 echo "with_qt4 => $with_qt4" >>> 17657 if test "$with_qt4" = "yes"; then >>> 17658 PKG_CHECK_MODULES(QT, QtCore >= 4.3, QtNetwork >= 4.3, >>> have_qt=yes, have_qt=no) >>> 17659 fi >>> >>> >>> 2015-04-14 16:39 GMT+08:00 易剑 <eyj...@gmail.com>: >>> >>>> "--with-qt4=no" not work >>>> >>>> 2015-04-14 16:32 GMT+08:00 易剑 <eyj...@gmail.com>: >>>> >>>>> Thanks, >>>>> >>>>> You are right, I remove and checkout again with: >>>>> git config --global core.autocrlf false >>>>> git config --global core.safecrlf true >>>>> git config --global core.eol lf >>>>> >>>>> But failed yet: >>>>> >>>>> # ./*configure *--prefix=$THIRDPARTY_HOME/thrift-0.9.2 \ >>>>> > --with-boost=$THIRDPARTY_HOME/boost \ >>>>> > --with-libevent=$THIRDPARTY_HOME/libevent \ >>>>> > CPPFLAGS="-I$THIRDPARTY_HOME/openssl/include" \ >>>>> > LDFLAGS="-ldl -L$THIRDPARTY_HOME/openssl/lib" \ >>>>> > --with-qt4=no --with-c_glib=no --with-csharp=no \ >>>>> > --with-java=no --with-erlang=no --with-python=no \ >>>>> > --with-perl=no --with-ruby=no --with-haskell=no \ >>>>> > --with-go=no --with-d=no >>>>> >>>>> configure: No compiler with *C++11* support was found >>>>> ./configure: line 17657: syntax error near unexpected token `QT,' >>>>> ./configure: line 17657: ` PKG_CHECK_MODULES(QT, QtCore >= 4.3, >>>>> QtNetwork >= 4.3, have_qt=yes, have_qt=no)' >>>>> >>>>> >>>>> >>>>> >>>>> 2015-04-14 15:06 GMT+08:00 Jens Geyer <jensge...@hotmail.com>: >>>>> >>>>>> Check your git settings, especially the EOL-style related ones. Using >>>>>> dos2unix is not normal behaviour. >>>>>> >>>>>> The subdir warnings can be ignored for now. >>>>>> ________________________________ >>>>>> Von: 易剑 >>>>>> Gesendet: 14.04.2015 08:57 >>>>>> An: dev@thrift.apache.org >>>>>> Betreff: Re: How to comiple https://github.com/eyjian/thrift? >>>>>> >>>>>> Solution: >>>>>> >>>>>> dos2unix *.sh >>>>>> chmod +x *.sh >>>>>> dos2unix configure.ac >>>>>> find . -name Makefile.am |xargs dos2unix >>>>>> >>>>>> Bug got many warning and error: >>>>>> # ./bootstrap.sh >>>>>> configure.ac:90: installing './config.guess' >>>>>> configure.ac:90: installing './config.sub' >>>>>> configure.ac:27: installing './install-sh' >>>>>> configure.ac:27: installing './missing' >>>>>> compiler/cpp/Makefile.am:103: warning: source file 'src/thrifty.yy' >>>>>> is in a >>>>>> subdirectory, >>>>>> compiler/cpp/Makefile.am:103: but option 'subdir-objects' is disabled >>>>>> automake: warning: possible forward-incompatibility. >>>>>> automake: At least a source file is in a subdirectory, but the >>>>>> 'subdir-objects' >>>>>> automake: automake option hasn't been enabled. For now, the >>>>>> corresponding >>>>>> output >>>>>> automake: object file(s) will be placed in the top-level directory. >>>>>> However, >>>>>> automake: this behaviour will change in future Automake versions: >>>>>> they will >>>>>> automake: unconditionally cause object files to be placed in the same >>>>>> subdirectory >>>>>> automake: of the corresponding sources. >>>>>> automake: You are advised to start using 'subdir-objects' option >>>>>> throughout >>>>>> your >>>>>> automake: project, to avoid future incompatibilities. >>>>>> compiler/cpp/Makefile.am:103: warning: source file 'src/thriftl.ll' >>>>>> is in a >>>>>> subdirectory, >>>>>> compiler/cpp/Makefile.am:103: but option 'subdir-objects' is disabled >>>>>> compiler/cpp/Makefile.am:34: warning: source file 'src/main.cc' is in >>>>>> a >>>>>> subdirectory, >>>>>> compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled >>>>>> compiler/cpp/Makefile.am:34: warning: source file 'src/md5.c' is in a >>>>>> subdirectory, >>>>>> compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled >>>>>> compiler/cpp/Makefile.am:34: warning: source file >>>>>> 'src/generate/t_generator.cc' is in a subdirectory, >>>>>> compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled >>>>>> compiler/cpp/Makefile.am:34: warning: source file >>>>>> 'src/parse/t_typedef.cc' >>>>>> is in a subdirectory, >>>>>> compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled >>>>>> compiler/cpp/Makefile.am:34: warning: source file >>>>>> 'src/parse/parse.cc' is >>>>>> in a subdirectory, >>>>>> compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled >>>>>> compiler/cpp/Makefile.am:34: warning: source file >>>>>> 'src/generate/t_c_glib_generator.cc' is in a subdirectory, >>>>>> compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled >>>>>> compiler/cpp/Makefile.am:34: warning: source file >>>>>> 'src/generate/t_cpp_generator.cc' is in a subdirectory, >>>>>> compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled >>>>>> compiler/cpp/Makefile.am:34: warning: source file >>>>>> 'src/generate/t_java_generator.cc' is in a subdirectory, >>>>>> compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled >>>>>> compiler/cpp/Makefile.am:34: warning: source file >>>>>> 'src/generate/t_json_generator.cc' is in a subdirectory, >>>>>> compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled >>>>>> compiler/cpp/Makefile.am:34: warning: source file >>>>>> 'src/generate/t_as3_generator.cc' is in a subdirectory, >>>>>> compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled >>>>>> compiler/cpp/Makefile.am:34: warning: source file >>>>>> 'src/generate/t_haxe_generator.cc' is in a subdirectory, >>>>>> compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled >>>>>> compiler/cpp/Makefile.am:34: warning: source file >>>>>> 'src/generate/t_csharp_generator.cc' is in a subdirectory, >>>>>> compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled >>>>>> compiler/cpp/Makefile.am:34: warning: source file >>>>>> 'src/generate/t_py_generator.cc' is in a subdirectory, >>>>>> compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled >>>>>> compiler/cpp/Makefile.am:34: warning: source file >>>>>> 'src/generate/t_rb_generator.cc' is in a subdirectory, >>>>>> compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled >>>>>> compiler/cpp/Makefile.am:34: warning: source file >>>>>> 'src/generate/t_perl_generator.cc' is in a subdirectory, >>>>>> compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled >>>>>> compiler/cpp/Makefile.am:34: warning: source file >>>>>> 'src/generate/t_php_generator.cc' is in a subdirectory, >>>>>> compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled >>>>>> compiler/cpp/Makefile.am:34: warning: source file >>>>>> 'src/generate/t_erl_generator.cc' is in a subdirectory, >>>>>> compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled >>>>>> compiler/cpp/Makefile.am:34: warning: source file >>>>>> 'src/generate/t_cocoa_generator.cc' is in a subdirectory, >>>>>> compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled >>>>>> compiler/cpp/Makefile.am:34: warning: source file >>>>>> 'src/generate/t_st_generator.cc' is in a subdirectory, >>>>>> compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled >>>>>> compiler/cpp/Makefile.am:34: warning: source file >>>>>> 'src/generate/t_ocaml_generator.cc' is in a subdirectory, >>>>>> compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled >>>>>> compiler/cpp/Makefile.am:34: warning: source file >>>>>> 'src/generate/t_hs_generator.cc' is in a subdirectory, >>>>>> compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled >>>>>> compiler/cpp/Makefile.am:34: warning: source file >>>>>> 'src/generate/t_xsd_generator.cc' is in a subdirectory, >>>>>> compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled >>>>>> compiler/cpp/Makefile.am:34: warning: source file >>>>>> 'src/generate/t_html_generator.cc' is in a subdirectory, >>>>>> compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled >>>>>> compiler/cpp/Makefile.am:34: warning: source file >>>>>> 'src/generate/t_js_generator.cc' is in a subdirectory, >>>>>> compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled >>>>>> compiler/cpp/Makefile.am:34: warning: source file >>>>>> 'src/generate/t_javame_generator.cc' is in a subdirectory, >>>>>> compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled >>>>>> compiler/cpp/Makefile.am:34: warning: source file >>>>>> 'src/generate/t_delphi_generator.cc' is in a subdirectory, >>>>>> compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled >>>>>> compiler/cpp/Makefile.am:34: warning: source file >>>>>> 'src/generate/t_go_generator.cc' is in a subdirectory, >>>>>> compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled >>>>>> compiler/cpp/Makefile.am:34: warning: source file >>>>>> 'src/generate/t_gv_generator.cc' is in a subdirectory, >>>>>> compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled >>>>>> compiler/cpp/Makefile.am:34: warning: source file >>>>>> 'src/generate/t_d_generator.cc' is in a subdirectory, >>>>>> compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled >>>>>> compiler/cpp/Makefile.am:34: warning: source file >>>>>> 'src/generate/t_lua_generator.cc' is in a subdirectory, >>>>>> compiler/cpp/Makefile.am:34: but option 'subdir-objects' is disabled >>>>>> compiler/cpp/Makefile.am: installing './depcomp' >>>>>> configure.ac: installing './ylwrap' >>>>>> lib/c_glib/Makefile.am:31: warning: source file >>>>>> 'src/thrift/c_glib/thrift.c' is in a subdirectory, >>>>>> lib/c_glib/Makefile.am:31: but option 'subdir-objects' is disabled >>>>>> lib/c_glib/Makefile.am:31: warning: source file >>>>>> 'src/thrift/c_glib/thrift_struct.c' is in a subdirectory, >>>>>> lib/c_glib/Makefile.am:31: but option 'subdir-objects' is disabled >>>>>> lib/c_glib/Makefile.am:31: warning: source file >>>>>> 'src/thrift/c_glib/thrift_application_exception.c' is in a >>>>>> subdirectory, >>>>>> lib/c_glib/Makefile.am:31: but option 'subdir-objects' is disabled >>>>>> lib/c_glib/Makefile.am:31: warning: source file >>>>>> 'src/thrift/c_glib/processor/thrift_processor.c' is in a subdirectory, >>>>>> lib/c_glib/Makefile.am:31: but option 'subdir-objects' is disabled >>>>>> lib/c_glib/Makefile.am:31: warning: source file >>>>>> 'src/thrift/c_glib/processor/thrift_dispatch_processor.c' is in a >>>>>> subdirectory, >>>>>> lib/c_glib/Makefile.am:31: but option 'subdir-objects' is disabled >>>>>> lib/c_glib/Makefile.am:31: warning: source file >>>>>> 'src/thrift/c_glib/protocol/thrift_protocol.c' is in a subdirectory, >>>>>> lib/c_glib/Makefile.am:31: but option 'subdir-objects' is disabled >>>>>> lib/c_glib/Makefile.am:31: warning: source file >>>>>> 'src/thrift/c_glib/protocol/thrift_protocol_factory.c' is in a >>>>>> subdirectory, >>>>>> lib/c_glib/Makefile.am:31: but option 'subdir-objects' is disabled >>>>>> lib/c_glib/Makefile.am:31: warning: source file >>>>>> 'src/thrift/c_glib/protocol/thrift_binary_protocol.c' is in a >>>>>> subdirectory, >>>>>> lib/c_glib/Makefile.am:31: but option 'subdir-objects' is disabled >>>>>> lib/c_glib/Makefile.am:31: warning: source file >>>>>> 'src/thrift/c_glib/protocol/thrift_binary_protocol_factory.c' is in a >>>>>> subdirectory, >>>>>> lib/c_glib/Makefile.am:31: but option 'subdir-objects' is disabled >>>>>> lib/c_glib/Makefile.am:31: warning: source file >>>>>> 'src/thrift/c_glib/transport/thrift_transport.c' is in a subdirectory, >>>>>> lib/c_glib/Makefile.am:31: but option 'subdir-objects' is disabled >>>>>> lib/c_glib/Makefile.am:31: warning: source file >>>>>> 'src/thrift/c_glib/transport/thrift_transport_factory.c' is in a >>>>>> subdirectory, >>>>>> lib/c_glib/Makefile.am:31: but option 'subdir-objects' is disabled >>>>>> lib/c_glib/Makefile.am:31: warning: source file >>>>>> 'src/thrift/c_glib/transport/thrift_buffered_transport_factory.c' is >>>>>> in a >>>>>> subdirectory, >>>>>> lib/c_glib/Makefile.am:31: but option 'subdir-objects' is disabled >>>>>> lib/c_glib/Makefile.am:31: warning: source file >>>>>> 'src/thrift/c_glib/transport/thrift_framed_transport_factory.c' is in >>>>>> a >>>>>> subdirectory, >>>>>> lib/c_glib/Makefile.am:31: but option 'subdir-objects' is disabled >>>>>> lib/c_glib/Makefile.am:31: warning: source file >>>>>> 'src/thrift/c_glib/transport/thrift_socket.c' is in a subdirectory, >>>>>> lib/c_glib/Makefile.am:31: but option 'subdir-objects' is disabled >>>>>> lib/c_glib/Makefile.am:31: warning: source file >>>>>> 'src/thrift/c_glib/transport/thrift_server_transport.c' is in a >>>>>> subdirectory, >>>>>> lib/c_glib/Makefile.am:31: but option 'subdir-objects' is disabled >>>>>> lib/c_glib/Makefile.am:31: warning: source file >>>>>> 'src/thrift/c_glib/transport/thrift_server_socket.c' is in a >>>>>> subdirectory, >>>>>> lib/c_glib/Makefile.am:31: but option 'subdir-objects' is disabled >>>>>> lib/c_glib/Makefile.am:31: warning: source file >>>>>> 'src/thrift/c_glib/transport/thrift_buffered_transport.c' is in a >>>>>> subdirectory, >>>>>> lib/c_glib/Makefile.am:31: but option 'subdir-objects' is disabled >>>>>> lib/c_glib/Makefile.am:31: warning: source file >>>>>> 'src/thrift/c_glib/transport/thrift_framed_transport.c' is in a >>>>>> subdirectory, >>>>>> lib/c_glib/Makefile.am:31: but option 'subdir-objects' is disabled >>>>>> lib/c_glib/Makefile.am:31: warning: source file >>>>>> 'src/thrift/c_glib/transport/thrift_memory_buffer.c' is in a >>>>>> subdirectory, >>>>>> lib/c_glib/Makefile.am:31: but option 'subdir-objects' is disabled >>>>>> lib/c_glib/Makefile.am:31: warning: source file >>>>>> 'src/thrift/c_glib/server/thrift_server.c' is in a subdirectory, >>>>>> lib/c_glib/Makefile.am:31: but option 'subdir-objects' is disabled >>>>>> lib/c_glib/Makefile.am:31: warning: source file >>>>>> 'src/thrift/c_glib/server/thrift_simple_server.c' is in a >>>>>> subdirectory, >>>>>> lib/c_glib/Makefile.am:31: but option 'subdir-objects' is disabled >>>>>> lib/c_glib/test/Makefile.am:128: warning: source file >>>>>> 'gen-c_glib/t_test_debug_proto_test_types.c' is in a subdirectory, >>>>>> lib/c_glib/test/Makefile.am:128: but option 'subdir-objects' is >>>>>> disabled >>>>>> lib/c_glib/test/Makefile.am:128: warning: source file >>>>>> 'gen-c_glib/t_test_empty_service.c' is in a subdirectory, >>>>>> lib/c_glib/test/Makefile.am:128: but option 'subdir-objects' is >>>>>> disabled >>>>>> lib/c_glib/test/Makefile.am:128: warning: source file >>>>>> 'gen-c_glib/t_test_inherited.c' is in a subdirectory, >>>>>> lib/c_glib/test/Makefile.am:128: but option 'subdir-objects' is >>>>>> disabled >>>>>> lib/c_glib/test/Makefile.am:128: warning: source file >>>>>> 'gen-c_glib/t_test_optional_required_test_types.c' is in a >>>>>> subdirectory, >>>>>> lib/c_glib/test/Makefile.am:128: but option 'subdir-objects' is >>>>>> disabled >>>>>> lib/c_glib/test/Makefile.am:128: warning: source file >>>>>> 'gen-c_glib/t_test_reverse_order_service.c' is in a subdirectory, >>>>>> lib/c_glib/test/Makefile.am:128: but option 'subdir-objects' is >>>>>> disabled >>>>>> lib/c_glib/test/Makefile.am:128: warning: source file >>>>>> 'gen-c_glib/t_test_second_service.c' is in a subdirectory, >>>>>> lib/c_glib/test/Makefile.am:128: but option 'subdir-objects' is >>>>>> disabled >>>>>> lib/c_glib/test/Makefile.am:128: warning: source file >>>>>> 'gen-c_glib/t_test_service_for_exception_with_a_map.c' is in a >>>>>> subdirectory, >>>>>> lib/c_glib/test/Makefile.am:128: but option 'subdir-objects' is >>>>>> disabled >>>>>> lib/c_glib/test/Makefile.am:128: warning: source file >>>>>> 'gen-c_glib/t_test_srv.c' is in a subdirectory, >>>>>> lib/c_glib/test/Makefile.am:128: but option 'subdir-objects' is >>>>>> disabled >>>>>> lib/c_glib/test/Makefile.am:128: warning: source file >>>>>> 'gen-c_glib/t_test_thrift_test.c' is in a subdirectory, >>>>>> lib/c_glib/test/Makefile.am:128: but option 'subdir-objects' is >>>>>> disabled >>>>>> lib/c_glib/test/Makefile.am:128: warning: source file >>>>>> 'gen-c_glib/t_test_thrift_test_types.c' is in a subdirectory, >>>>>> lib/c_glib/test/Makefile.am:128: but option 'subdir-objects' is >>>>>> disabled >>>>>> lib/c_glib/test/Makefile.am:151: warning: source file >>>>>> 'gen-cpp/ThriftTest.cpp' is in a subdirectory, >>>>>> lib/c_glib/test/Makefile.am:151: but option 'subdir-objects' is >>>>>> disabled >>>>>> lib/c_glib/test/Makefile.am:151: warning: source file >>>>>> 'gen-cpp/ThriftTest_constants.cpp' is in a subdirectory, >>>>>> lib/c_glib/test/Makefile.am:151: but option 'subdir-objects' is >>>>>> disabled >>>>>> lib/c_glib/test/Makefile.am:151: warning: source file >>>>>> 'gen-cpp/ThriftTest_types.cpp' is in a subdirectory, >>>>>> lib/c_glib/test/Makefile.am:151: but option 'subdir-objects' is >>>>>> disabled >>>>>> >>>>>> # ./configure --prefix=$THIRDPARTY_HOME/thrift-0.9.2 \ >>>>>> > --with-boost=$THIRDPARTY_HOME/boost \ >>>>>> > --with-libevent=$THIRDPARTY_HOME/libevent \ >>>>>> > CPPFLAGS="-I$THIRDPARTY_HOME/openssl/include" \ >>>>>> > LDFLAGS="-ldl -L$THIRDPARTY_HOME/openssl/lib" \ >>>>>> > --with-qt4=no --with-c_glib=no --with-csharp=no \ >>>>>> > --with-java=no --with-erlang=no --with-python=no \ >>>>>> > --with-perl=no --with-ruby=no --with-haskell=no \ >>>>>> > --with-go=no --with-d=no >>>>>> checking for a BSD-compatible install... /usr/bin/install -c >>>>>> checking whether build environment is sane... yes >>>>>> checking for a thread-safe mkdir -p... /bin/mkdir -p >>>>>> checking for gawk... gawk >>>>>> checking whether make sets $(MAKE)... yes >>>>>> checking whether make supports nested variables... yes >>>>>> checking whether UID '0' is supported by ustar format... yes >>>>>> checking whether GID '100' is supported by ustar format... yes >>>>>> checking how to create a ustar tar archive... gnutar >>>>>> ./configure: line 3740: PKG_PROG_PKG_CONFIG: command not found >>>>>> checking for gcc... gcc >>>>>> checking whether the C compiler works... yes >>>>>> checking for C compiler default output file name... a.out >>>>>> checking for suffix of executables... >>>>>> checking whether we are cross compiling... no >>>>>> checking for suffix of object files... o >>>>>> checking whether we are using the GNU C compiler... yes >>>>>> checking whether gcc accepts -g... yes >>>>>> checking for gcc option to accept ISO C89... none needed >>>>>> checking whether gcc understands -c and -o together... yes >>>>>> checking for style of include used by make... GNU >>>>>> checking dependency style of gcc... gcc3 >>>>>> checking how to run the C preprocessor... gcc -E >>>>>> checking for g++... g++ >>>>>> checking whether we are using the GNU C++ compiler... yes >>>>>> checking whether g++ accepts -g... yes >>>>>> checking dependency style of g++... gcc3 >>>>>> checking build system type... x86_64-unknown-linux-gnu >>>>>> checking host system type... x86_64-unknown-linux-gnu >>>>>> checking how to print strings... printf >>>>>> checking for a sed that does not truncate output... /usr/bin/sed >>>>>> checking for grep that handles long lines and -e... /usr/bin/grep >>>>>> checking for egrep... /usr/bin/grep -E >>>>>> checking for fgrep... /usr/bin/grep -F >>>>>> checking for ld used by gcc... /usr/x86_64-suse-linux/bin/ld >>>>>> checking if the linker (/usr/x86_64-suse-linux/bin/ld) is GNU ld... >>>>>> yes >>>>>> checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B >>>>>> checking the name lister (/usr/bin/nm -B) interface... BSD nm >>>>>> checking whether ln -s works... yes >>>>>> checking the maximum length of command line arguments... 98304 >>>>>> checking whether the shell understands some XSI constructs... yes >>>>>> checking whether the shell understands "+="... yes >>>>>> checking how to convert x86_64-unknown-linux-gnu file names to >>>>>> x86_64-unknown-linux-gnu format... func_convert_file_noop >>>>>> checking how to convert x86_64-unknown-linux-gnu file names to >>>>>> toolchain >>>>>> format... func_convert_file_noop >>>>>> checking for /usr/x86_64-suse-linux/bin/ld option to reload object >>>>>> files... >>>>>> -r >>>>>> checking for objdump... objdump >>>>>> checking how to recognize dependent libraries... pass_all >>>>>> checking for dlltool... no >>>>>> checking how to associate runtime and link libraries... printf %s\n >>>>>> checking for ar... ar >>>>>> checking for archiver @FILE support... @ >>>>>> checking for strip... strip >>>>>> checking for ranlib... ranlib >>>>>> checking command to parse /usr/bin/nm -B output from gcc object... ok >>>>>> checking for sysroot... no >>>>>> checking for mt... mt >>>>>> checking if mt is a manifest tool... no >>>>>> checking for ANSI C header files... yes >>>>>> checking for sys/types.h... yes >>>>>> checking for sys/stat.h... yes >>>>>> checking for stdlib.h... yes >>>>>> checking for string.h... yes >>>>>> checking for memory.h... yes >>>>>> checking for strings.h... yes >>>>>> checking for inttypes.h... yes >>>>>> checking for stdint.h... yes >>>>>> checking for unistd.h... yes >>>>>> checking for dlfcn.h... yes >>>>>> checking for objdir... .libs >>>>>> checking if gcc supports -fno-rtti -fno-exceptions... no >>>>>> checking for gcc option to produce PIC... -fPIC -DPIC >>>>>> checking if gcc PIC flag -fPIC -DPIC works... yes >>>>>> checking if gcc static flag -static works... yes >>>>>> checking if gcc supports -c -o file.o... yes >>>>>> checking if gcc supports -c -o file.o... (cached) yes >>>>>> checking whether the gcc linker (/usr/x86_64-suse-linux/bin/ld -m >>>>>> elf_x86_64) supports shared libraries... yes >>>>>> checking whether -lc should be explicitly linked in... no >>>>>> checking dynamic linker characteristics... GNU/Linux ld.so >>>>>> checking how to hardcode library paths into programs... immediate >>>>>> checking whether stripping libraries is possible... yes >>>>>> checking if libtool supports shared libraries... yes >>>>>> checking whether to build shared libraries... yes >>>>>> checking whether to build static libraries... yes >>>>>> checking how to run the C++ preprocessor... g++ -E >>>>>> checking for ld used by g++... /usr/x86_64-suse-linux/bin/ld -m >>>>>> elf_x86_64 >>>>>> checking if the linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) >>>>>> is GNU >>>>>> ld... yes >>>>>> checking whether the g++ linker (/usr/x86_64-suse-linux/bin/ld -m >>>>>> elf_x86_64) supports shared libraries... yes >>>>>> checking for g++ option to produce PIC... -fPIC -DPIC >>>>>> checking if g++ PIC flag -fPIC -DPIC works... yes >>>>>> checking if g++ static flag -static works... yes >>>>>> checking if g++ supports -c -o file.o... yes >>>>>> checking if g++ supports -c -o file.o... (cached) yes >>>>>> checking whether the g++ linker (/usr/x86_64-suse-linux/bin/ld -m >>>>>> elf_x86_64) supports shared libraries... yes >>>>>> checking dynamic linker characteristics... (cached) GNU/Linux ld.so >>>>>> checking how to hardcode library paths into programs... immediate >>>>>> checking whether make sets $(MAKE)... (cached) yes >>>>>> checking for bison... yes >>>>>> checking for bison version >= 2.5... yes >>>>>> checking for bison... bison -y >>>>>> checking for flex... flex >>>>>> checking lex output file root... lex.yy >>>>>> checking lex library... -lfl >>>>>> checking whether yytext is a pointer... yes >>>>>> checking whether ln -s works... yes >>>>>> checking for gawk... (cached) gawk >>>>>> checking for ranlib... (cached) ranlib >>>>>> checking whether g++ supports C++11 features by default... no >>>>>> checking whether g++ supports C++11 features with -std=c++11... no >>>>>> configure: No compiler with C++11 support was found >>>>>> ./configure: line 16746: syntax error near unexpected token `fi' >>>>>> ./configure: line 16746: `fi' >>>>>> >>>>>> >>>>>> 2015-04-14 14:42 GMT+08:00 易剑 <eyj...@gmail.com>: >>>>>> >>>>>> > If this is in Makefile.am >>>>>> > >>>>>> > ACLOCAL_AMFLAGS = -I ./aclocal >>>>>> > >>>>>> > and this is in configure.ac: >>>>>> > >>>>>> > AC_CONFIG_MACRO_DIR([./aclocal]) >>>>>> > >>>>>> > Then libtoolize fails with >>>>>> > >>>>>> > .ibtoolize: AC_CONFIG_MACRO_DIR([./aclocal]) conflicts with >>>>>> ACLOCAL_AMFLAGS=-I ./aclocal4 >>>>>> > >>>>>> > >>>>>> > >>>>>> > 2015-04-14 14:23 GMT+08:00 易剑 <eyj...@gmail.com>: >>>>>> > >>>>>> >> Error at "*$LIBTOOLIZE --copy --automake*" in bootstrap.sh >>>>>> >> >>>>>> >> Error message: >>>>>> >> .ibtoolize: AC_CONFIG_MACRO_DIR([./aclocal]) conflicts with >>>>>> >> ACLOCAL_AMFLAGS=-I ./aclocal >>>>>> >> >>>>>> >> 2015-04-14 4:54 GMT+08:00 Jens Geyer <jensge...@hotmail.com>: >>>>>> >> >>>>>> >>> Hi, >>>>>> >>> >>>>>> >>> no idea, works fine for me (setup below). >>>>>> >>> Can we get something like a full log or is this the only output >>>>>> you got? >>>>>> >>> >>>>>> >>> JensG >>>>>> >>> >>>>>> >>> >>>>>> >>> bison 2.7 >>>>>> >>> autoconf 2.69 >>>>>> >>> automake 1.13.4 >>>>>> >>> libtool 2.4.2 >>>>>> >>> OpenSSL 1.0.1k-fips 8 Jan 2015 >>>>>> >>> boost 1.54.0 >>>>>> >>> libevent 2.0.5 >>>>>> >>> m4 1.4.17 >>>>>> >>> gcc (SUSE Linux) 4.8.3 20140627 [gcc-4_8-branch revision 212064] >>>>>> >>> >>>>>> >>> >>>>>> >>> >>>>>> >>> -----Ursprüngliche Nachricht----- From: 易剑 >>>>>> >>> Sent: Monday, April 13, 2015 10:36 AM >>>>>> >>> To: dev@thrift.apache.org >>>>>> >>> Subject: How to comiple https://github.com/eyjian/thrift? >>>>>> >>> >>>>>> >>> I forked branches to https://github.com/eyjian/thrift, but >>>>>> failed to >>>>>> >>> compile it with errors: >>>>>> >>> >>>>>> >>> *./bootstrap.sh * >>>>>> >>> *.ibtoolize: AC_CONFIG_MACRO_DIR([./aclocal]) conflicts with >>>>>> >>> ACLOCAL_AMFLAGS=-I ./aclocal* >>>>>> >>> >>>>>> >>> >>>>>> >>> i had updated deps as the followings: >>>>>> >>> bison-3.0 >>>>>> >>> autoconf-2.69 >>>>>> >>> automake-1.15 >>>>>> >>> libtool-2.4 >>>>>> >>> openssl-1.0.2a >>>>>> >>> boost_1_57_0 >>>>>> >>> libevent-2.0.22-stable >>>>>> >>> m4-1.4.17 >>>>>> >>> >>>>>> >>> >>>>>> >>> # gcc --version >>>>>> >>> gcc (GCC) 4.1.2 20070115 (prerelease) (SUSE Linux) >>>>>> >>> Copyright (C) 2006 Free Software Foundation, Inc. >>>>>> >>> >>>>>> >> >>>>>> >> >>>>>> >> >>>>>> >> -- >>>>>> >> Hadoop Forum: http://www.hadoopor.com >>>>>> >> Open mooon: https://github.com/eyjian/mooon >>>>>> >> >>>>>> > >>>>>> > >>>>>> > >>>>>> > -- >>>>>> > Hadoop Forum: http://www.hadoopor.com >>>>>> > Open mooon: https://github.com/eyjian/mooon >>>>>> > >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Hadoop Forum: http://www.hadoopor.com >>>>>> Open mooon: https://github.com/eyjian/mooon >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Hadoop Forum: http://www.hadoopor.com >>>>> Open mooon: https://github.com/eyjian/mooon >>>>> >>>> >>>> >>>> >>>> -- >>>> Hadoop Forum: http://www.hadoopor.com >>>> Open mooon: https://github.com/eyjian/mooon >>>> >>> >>> >>> >>> -- >>> Hadoop Forum: http://www.hadoopor.com >>> Open mooon: https://github.com/eyjian/mooon >>> >> >> >> >> -- >> Hadoop Forum: http://www.hadoopor.com >> Open mooon: https://github.com/eyjian/mooon >> > > > > -- > Hadoop Forum: http://www.hadoopor.com > Open mooon: https://github.com/eyjian/mooon > -- Hadoop Forum: http://www.hadoopor.com Open mooon: https://github.com/eyjian/mooon