thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Reiss <dre...@facebook.com>
Subject Re: Trying to compile thrift...
Date Wed, 22 Jul 2009 16:29:35 GMT
The errors about undefined macros and command not found are because you
have an old version of autoconf.  They are not fatal though.  If you
want them to go away, upgrade your autoconf to 2.61 or download an
instant release from http://instant.thrift-rpc.org/ and skip bootstrap.sh

--David

John Doe wrote:
> Hi,
> 
> I need help with compiling thrift-796660 (for Cassandra) on RedHat 5.
> I install everything in $PREFIX.
> 
> [thrift]$ ./bootstrap.sh
> configure.ac:50: error: possibly undefined macro: AC_PROG_MKDIR_P
>       If this token and others are legitimate, please use m4_pattern_allow.
>       See the Autoconf documentation.
> configure.ac:144: error: possibly undefined macro: AC_TYPE_INT16_T
> configure.ac:145: error: possibly undefined macro: AC_TYPE_INT32_T
> configure.ac:146: error: possibly undefined macro: AC_TYPE_INT64_T
> configure.ac:147: error: possibly undefined macro: AC_TYPE_INT8_T
> configure.ac:151: error: possibly undefined macro: AC_TYPE_SSIZE_T
> configure.ac:152: error: possibly undefined macro: AC_TYPE_UINT16_T
> configure.ac:153: error: possibly undefined macro: AC_TYPE_UINT32_T
> configure.ac:154: error: possibly undefined macro: AC_TYPE_UINT64_T
> configure.ac:155: error: possibly undefined macro: AC_TYPE_UINT8_T
> configure.ac: installing `./install-sh'
> configure.ac: installing `./missing'
> compiler/cpp/Makefile.am: installing `./depcomp'
> 
> I only selected java to limit the error messages.
> 
> [thrift]$ JAVA_PREFIX=$PREFIX/lib $HOMEDIR/thrift/configure --prefix=$PREFIX \
>   --disable-gen-cpp \
>   --disable-gen-csharp \
>   --disable-gen-py \
>   --disable-gen-rb \
>   --disable-gen-perl \
>   --disable-gen-php \
>   --disable-gen-erl \
>   --disable-gen-cocoa \
>   --disable-gen-st \
>   --disable-gen-ocaml \
>   --disable-gen-hs \
>   --disable-gen-xsd \
>   --disable-gen-html \
>   --without-csharp \
>   --without-erlang \
>   --without-py \
>   --without-perl \
>   --without-ruby
> .....
> thrift/configure: line 19118: AC_PROG_MKDIR_P: command not found
> .....
> checking for Java class org.apache.log4j.Logger... no
> checking for Java class org.apache.commons.lang.builder.HashCodeBuilder... no
> .....
> thrift/configure: line 23983: AC_TYPE_INT16_T: command not found
> thrift/configure: line 23984: AC_TYPE_INT32_T: command not found
> thrift/configure: line 23985: AC_TYPE_INT64_T: command not found
> thrift/configure: line 23986: AC_TYPE_INT8_T: command not found
> .....
> thrift/configure: line 24185: AC_TYPE_SSIZE_T: command not found
> thrift/configure: line 24186: AC_TYPE_UINT16_T: command not found
> thrift/configure: line 24187: AC_TYPE_UINT32_T: command not found
> thrift/configure: line 24188: AC_TYPE_UINT64_T: command not found
> thrift/configure: line 24189: AC_TYPE_UINT8_T: command not found
> 
> Then make fails on the test directory...
> If I remove test from the subdirs in the makefile, I get no errors...
> 
> I have autoconf automake libtool flex bison pkgconfig gcc-c++ boost-devel libevent-devel
zlib-devel python-devel log4j
> 
> # rpm -qa | grep -i "java\|jdk" | sort
> java-1.4.2-gcj-compat-1.4.2.0-40jpp.115
> java-1.6.0-openjdk-1.6.0.0-0.30.b09.el5
> java-1.6.0-openjdk-devel-1.6.0.0-0.30.b09.el5
> jdk-1.5.0_15-fcs
> jdk-1.6.0_07-fcs
> sun-javadb-client-10.3.1-4.1
> sun-javadb-common-10.3.1-4.1
> sun-javadb-core-10.3.1-4.1
> sun-javadb-demo-10.3.1-4.1
> sun-javadb-docs-10.3.1-4.1
> sun-javadb-javadoc-10.3.1-4.1
> 
> The final installation tree looks like:
> 
> $PREFIX/bin/thrift
> $PREFIX/lib/libthrift.a
> $PREFIX/lib/libthrift.la
> $PREFIX/lib/libthriftnb.a
> $PREFIX/lib/libthriftnb.la
> $PREFIX/lib/libthriftnb.so
> $PREFIX/lib/libthriftnb.so.0
> $PREFIX/lib/libthriftnb.so.0.0.0
> $PREFIX/lib/libthrift.so
> $PREFIX/lib/libthrift.so.0
> $PREFIX/lib/libthrift.so.0.0.0
> $PREFIX/lib/libthriftz.a
> $PREFIX/lib/libthriftz.la
> $PREFIX/lib/libthriftz.so
> $PREFIX/lib/libthriftz.so.0
> $PREFIX/lib/libthriftz.so.0.0.0
> $PREFIX/lib/pkgconfig/thrift-nb.pc
> $PREFIX/lib/pkgconfig/thrift.pc
> $PREFIX/lib/pkgconfig/thrift-z.pc
> $PREFIX/include/thrift/concurrency
> $PREFIX/include/thrift/concurrency/Exception.h
> $PREFIX/include/thrift/concurrency/FunctionRunner.h
> $PREFIX/include/thrift/concurrency/Monitor.h
> $PREFIX/include/thrift/concurrency/Mutex.h
> $PREFIX/include/thrift/concurrency/PosixThreadFactory.h
> $PREFIX/include/thrift/concurrency/Thread.h
> $PREFIX/include/thrift/concurrency/ThreadManager.h
> $PREFIX/include/thrift/concurrency/TimerManager.h
> $PREFIX/include/thrift/concurrency/Util.h
> $PREFIX/include/thrift/config.h
> $PREFIX/include/thrift/processor/PeekProcessor.h
> $PREFIX/include/thrift/processor/StatsProcessor.h
> $PREFIX/include/thrift/protocol/TBase64Utils.h
> $PREFIX/include/thrift/protocol/TBinaryProtocol.h
> $PREFIX/include/thrift/protocol/TCompactProtocol.h
> $PREFIX/include/thrift/protocol/TDebugProtocol.h
> $PREFIX/include/thrift/protocol/TDenseProtocol.h
> $PREFIX/include/thrift/protocol/TJSONProtocol.h
> $PREFIX/include/thrift/protocol/TOneWayProtocol.h
> $PREFIX/include/thrift/protocol/TProtocolException.h
> $PREFIX/include/thrift/protocol/TProtocol.h
> $PREFIX/include/thrift/protocol/TProtocolTap.h
> $PREFIX/include/thrift/server/TNonblockingServer.h
> $PREFIX/include/thrift/server/TServer.h
> $PREFIX/include/thrift/server/TSimpleServer.h
> $PREFIX/include/thrift/server/TThreadedServer.h
> $PREFIX/include/thrift/server/TThreadPoolServer.h
> $PREFIX/include/thrift/Thrift.h
> $PREFIX/include/thrift/TLogging.h
> $PREFIX/include/thrift/TProcessor.h
> $PREFIX/include/thrift/transport/TBufferTransports.h
> $PREFIX/include/thrift/transport/TFDTransport.h
> $PREFIX/include/thrift/transport/TFileTransport.h
> $PREFIX/include/thrift/transport/THttpClient.h
> $PREFIX/include/thrift/transport/TServerSocket.h
> $PREFIX/include/thrift/transport/TServerTransport.h
> $PREFIX/include/thrift/transport/TShortReadTransport.h
> $PREFIX/include/thrift/transport/TSimpleFileTransport.h
> $PREFIX/include/thrift/transport/TSocket.h
> $PREFIX/include/thrift/transport/TSocketPool.h
> $PREFIX/include/thrift/transport/TTransportException.h
> $PREFIX/include/thrift/transport/TTransport.h
> $PREFIX/include/thrift/transport/TTransportUtils.h
> $PREFIX/include/thrift/transport/TZlibTransport.h
> $PREFIX/include/thrift/TReflectionLocal.h
> 
> Is the resulting installation still usable?
> 
> Thx,
> JD
> 
> 
>       
> 

Mime
View raw message