You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by Hongbin Huang <hu...@yahoo.com.cn> on 2007/03/25 08:09:16 UTC

Build native libraries failed on my Redhat ES Linux-amd64-64

Hello all,
I am new to Hadoop. Have been trying to compile native libraries. The build failed...
Can someone shed some lights on this?

I was doing the following:

[root@bhcls001 hadoop-0.12.2]# ant -Dcompile.native="true"
Buildfile: build.xml
init:
     [exec] svn: '.' is not a working copy
     [exec] svn: '.' is not a working copy
record-parser:
compile-rcc-compiler:
compile-core-classes:
    [javac] Compiling 3 source files to /bh/dev/rls/trunk/hadoop/hadoop-0.12.2/build/classes
compile-core-native:
    [javah] [Search path = /bh/dev/java/jdk1.6.0/jre/lib/resources.jar:/bh/dev/java/jdk1.6.0/jre/lib/rt.jar:/bh/dev/java/jdk1.6.0/jre/lib/sunrsasign.jar:/bh/dev/java/jdk1.6.0/jre/lib/jsse.jar:/bh/dev/java/jdk1.6.0/jre/lib/jce.jar:/bh/dev/java/jdk1.6.0/jre/lib/charsets.jar:/bh/dev/java/jdk1.6.0/jre/classes:/bh/dev/rls/trunk/hadoop/hadoop-0.12.2/build/classes]
    [javah] [Loaded /bh/dev/rls/trunk/hadoop/hadoop-0.12.2/build/classes/org/apache/hadoop/io/compress/zlib/ZlibCompressor.class]
    [javah] [Loaded /bh/dev/java/jdk1.6.0/jre/lib/rt.jar(java/lang/Object.class)]
    [javah] [Forcefully writing file /bh/dev/rls/trunk/hadoop/hadoop-0.12.2/build/native/Linux-amd64-64/src/org/apache/hadoop/io/compress/zlib/org_apache_hadoop_io_compress_zlib_ZlibCompressor.h]
    [javah] [Loaded /bh/dev/rls/trunk/hadoop/hadoop-0.12.2/build/classes/org/apache/hadoop/io/compress/zlib/ZlibDecompressor.class]
    [javah] [Forcefully writing file /bh/dev/rls/trunk/hadoop/hadoop-0.12.2/build/native/Linux-amd64-64/src/org/apache/hadoop/io/compress/zlib/org_apache_hadoop_io_compress_zlib_ZlibDecompressor.h]
    [javah] [Search path = /bh/dev/java/jdk1.6.0/jre/lib/resources.jar:/bh/dev/java/jdk1.6.0/jre/lib/rt.jar:/bh/dev/java/jdk1.6.0/jre/lib/sunrsasign.jar:/bh/dev/java/jdk1.6.0/jre/lib/jsse.jar:/bh/dev/java/jdk1.6.0/jre/lib/jce.jar:/bh/dev/java/jdk1.6.0/jre/lib/charsets.jar:/bh/dev/java/jdk1.6.0/jre/classes:/bh/dev/rls/trunk/hadoop/hadoop-0.12.2/build/classes]
    [javah] [Loaded /bh/dev/rls/trunk/hadoop/hadoop-0.12.2/build/classes/org/apache/hadoop/io/compress/lzo/LzoCompressor.class]
    [javah] [Loaded /bh/dev/java/jdk1.6.0/jre/lib/rt.jar(java/lang/Object.class)]
    [javah] [Forcefully writing file /bh/dev/rls/trunk/hadoop/hadoop-0.12.2/build/native/Linux-amd64-64/src/org/apache/hadoop/io/compress/lzo/org_apache_hadoop_io_compress_lzo_LzoCompressor.h]
    [javah] [Loaded /bh/dev/rls/trunk/hadoop/hadoop-0.12.2/build/classes/org/apache/hadoop/io/compress/lzo/LzoDecompressor.class]
    [javah] [Forcefully writing file /bh/dev/rls/trunk/hadoop/hadoop-0.12.2/build/native/Linux-amd64-64/src/org/apache/hadoop/io/compress/lzo/org_apache_hadoop_io_compress_lzo_LzoDecompressor.h]
     [exec] checking for a BSD-compatible install... /usr/bin/install -c
     [exec] checking whether build environment is sane... yes
     [exec] checking for gawk... gawk
     [exec] checking whether make sets $(MAKE)... yes
     [exec] checking for gcc... gcc
     [exec] checking for C compiler default output file name... a.out
     [exec] checking whether the C compiler works... yes
     [exec] checking whether we are cross compiling... no
     [exec] checking for suffix of executables...
     [exec] checking for suffix of object files... o
     [exec] checking whether we are using the GNU C compiler... yes
     [exec] checking whether gcc accepts -g... yes
     [exec] checking for gcc option to accept ISO C89... none needed
     [exec] checking for style of include used by make... GNU
     [exec] checking dependency style of gcc... gcc3
     [exec] checking build system type... x86_64-unknown-linux-gnu
     [exec] checking host system type... x86_64-unknown-linux-gnu
     [exec] checking for a sed that does not truncate output... /bin/sed
     [exec] checking for grep that handles long lines and -e... /bin/grep
     [exec] checking for egrep... /bin/grep -E
     [exec] checking for ld used by gcc... /usr/bin/ld
     [exec] checking if the linker (/usr/bin/ld) is GNU ld... yes
     [exec] checking for /usr/bin/ld option to reload object files... -r
     [exec] checking for BSD-compatible nm... /usr/bin/nm -B
     [exec] checking whether ln -s works... yes
     [exec] checking how to recognise dependent libraries... pass_all
     [exec] checking how to run the C preprocessor... gcc -E
     [exec] checking for ANSI C header files... yes
     [exec] checking for sys/types.h... yes
     [exec] checking for sys/stat.h... yes
     [exec] checking for stdlib.h... yes
     [exec] checking for string.h... yes
     [exec] checking for memory.h... yes
     [exec] checking for strings.h... yes
     [exec] checking for inttypes.h... yes
     [exec] checking for stdint.h... yes
     [exec] checking for unistd.h... yes
     [exec] checking dlfcn.h usability... yes
     [exec] checking dlfcn.h presence... yes
     [exec] checking for dlfcn.h... yes
     [exec] checking for g++... g++
     [exec] checking whether we are using the GNU C++ compiler... yes
     [exec] checking whether g++ accepts -g... yes
     [exec] checking dependency style of g++... gcc3
     [exec] checking how to run the C++ preprocessor... g++ -E
     [exec] checking for g77... g77
     [exec] checking whether we are using the GNU Fortran 77 compiler... yes
     [exec] checking whether g77 accepts -g... yes
     [exec] checking the maximum length of command line arguments... 32768
     [exec] checking command to parse /usr/bin/nm -B output from gcc object... ok
     [exec] checking for objdir... .libs
     [exec] checking for ar... ar
     [exec] checking for ranlib... ranlib
     [exec] checking for strip... strip
     [exec] checking for correct ltmain.sh version... yes
     [exec] checking if gcc supports -fno-rtti -fno-exceptions... no
     [exec] checking for gcc option to produce PIC... -fPIC
     [exec] checking if gcc PIC flag -fPIC works... yes
     [exec] checking if gcc static flag -static works... yes
     [exec] checking if gcc supports -c -o file.o... yes
     [exec] checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
     [exec] checking whether -lc should be explicitly linked in... no
     [exec] checking dynamic linker characteristics... GNU/Linux ld.so
     [exec] checking how to hardcode library paths into programs... immediate
     [exec] checking whether stripping libraries is possible... yes
     [exec] checking if libtool supports shared libraries... yes
     [exec] checking whether to build shared libraries... yes
     [exec] checking whether to build static libraries... yes
     [exec] configure: creating libtool
     [exec] appending configuration tag "CXX" to libtool
     [exec] checking for ld used by g++... /usr/bin/ld -m elf_x86_64
     [exec] checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
     [exec] checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
     [exec] checking for g++ option to produce PIC... -fPIC
     [exec] checking if g++ PIC flag -fPIC works... yes
     [exec] checking if g++ static flag -static works... yes
     [exec] checking if g++ supports -c -o file.o... yes
     [exec] checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
     [exec] checking dynamic linker characteristics... GNU/Linux ld.so
     [exec] checking how to hardcode library paths into programs... immediate
     [exec] appending configuration tag "F77" to libtool
     [exec] checking if libtool supports shared libraries... yes
     [exec] checking whether to build shared libraries... yes
     [exec] checking whether to build static libraries... yes
     [exec] checking for g77 option to produce PIC... -fPIC
     [exec] checking if g77 PIC flag -fPIC works... yes
     [exec] checking if g77 static flag -static works... yes
     [exec] checking if g77 supports -c -o file.o... yes
     [exec] checking whether the g77 linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
     [exec] checking dynamic linker characteristics... GNU/Linux ld.so
     [exec] checking how to hardcode library paths into programs... immediate
     [exec] checking for dlopen in -ldl... yes
     [exec] checking for JNI_GetCreatedJavaVMs in -ljvm... yes
     [exec] checking for deflate in -lz... no
     [exec] checking for lzo_init in -llzo2... no
     [exec] checking for ANSI C header files... (cached) yes
     [exec] checking stdio.h usability... yes
     [exec] checking stdio.h presence... yes
     [exec] checking for stdio.h... yes
     [exec] checking stddef.h usability... yes
     [exec] checking stddef.h presence... yes
     [exec] checking for stddef.h... yes
     [exec] checking jni.h usability... yes
     [exec] checking jni.h presence... yes
     [exec] checking for jni.h... yes
     [exec] checking zlib.h usability... yes
     [exec] checking zlib.h presence... yes
     [exec] checking for zlib.h... yes
     [exec] checking Checking for the 'actual' dynamic-library for '-lz'... "libz.so.1"
     [exec] checking zconf.h usability... yes
     [exec] checking zconf.h presence... yes
     [exec] checking for zconf.h... yes
     [exec] checking Checking for the 'actual' dynamic-library for '-lz'... (cached) "libz.so.1"
     [exec] checking lzo/lzo1.h usability... yes
     [exec] checking lzo/lzo1.h presence... yes
     [exec] checking for lzo/lzo1.h... yes
     [exec] checking Checking for the 'actual' dynamic-library for '-llzo2'...
     [exec] checking lzo/lzo1a.h usability... yes
     [exec] checking lzo/lzo1a.h presence... yes
     [exec] checking for lzo/lzo1a.h... yes
     [exec] checking Checking for the 'actual' dynamic-library for '-llzo2'... (cached)
     [exec] checking lzo/lzo1b.h usability... yes
     [exec] checking lzo/lzo1b.h presence... yes
     [exec] checking for lzo/lzo1b.h... yes
     [exec] checking Checking for the 'actual' dynamic-library for '-llzo2'... (cached)
     [exec] checking lzo/lzo1c.h usability... yes
     [exec] checking lzo/lzo1c.h presence... yes
     [exec] checking for lzo/lzo1c.h... yes
     [exec] checking Checking for the 'actual' dynamic-library for '-llzo2'... (cached)
     [exec] checking lzo/lzo1f.h usability... yes
     [exec] checking lzo/lzo1f.h presence... yes
     [exec] checking for lzo/lzo1f.h... yes
     [exec] checking Checking for the 'actual' dynamic-library for '-llzo2'... (cached)
     [exec] checking lzo/lzo1x.h usability... yes
     [exec] checking lzo/lzo1x.h presence... yes
     [exec] checking for lzo/lzo1x.h... yes
     [exec] checking Checking for the 'actual' dynamic-library for '-llzo2'... (cached)
     [exec] checking lzo/lzo1y.h usability... yes
     [exec] checking lzo/lzo1y.h presence... yes
     [exec] checking for lzo/lzo1y.h... yes
     [exec] checking Checking for the 'actual' dynamic-library for '-llzo2'... (cached)
     [exec] checking lzo/lzo1z.h usability... yes
     [exec] checking lzo/lzo1z.h presence... yes
     [exec] checking for lzo/lzo1z.h... yes
     [exec] checking Checking for the 'actual' dynamic-library for '-llzo2'... (cached)
     [exec] checking lzo/lzo2a.h usability... yes
     [exec] checking lzo/lzo2a.h presence... yes
     [exec] checking for lzo/lzo2a.h... yes
     [exec] checking Checking for the 'actual' dynamic-library for '-llzo2'... (cached)
     [exec] checking lzo/lzo_asm.h usability... yes
     [exec] checking lzo/lzo_asm.h presence... yes
     [exec] checking for lzo/lzo_asm.h... yes
     [exec] checking Checking for the 'actual' dynamic-library for '-llzo2'... (cached)
     [exec] checking for an ANSI C-conforming const... yes
     [exec] checking for memset... no
     [exec] configure: creating ./config.status
     [exec] config.status: creating Makefile
     [exec] config.status: WARNING:  /bh/dev/rls/trunk/hadoop/hadoop-0.12.2/src/native/Makefile.in seems to ignore the --datarootdir setting
     [exec] config.status: creating src/org/apache/hadoop/io/compress/zlib/Makefile
     [exec] config.status: WARNING:  /bh/dev/rls/trunk/hadoop/hadoop-0.12.2/src/native/src/org/apache/hadoop/io/compress/zlib/Makefile.in seems to ignore the --datarootdir setting
     [exec] config.status: creating src/org/apache/hadoop/io/compress/lzo/Makefile
     [exec] config.status: WARNING:  /bh/dev/rls/trunk/hadoop/hadoop-0.12.2/src/native/src/org/apache/hadoop/io/compress/lzo/Makefile.in seems to ignore the --datarootdir setting
     [exec] config.status: creating lib/Makefile
     [exec] config.status: WARNING:  /bh/dev/rls/trunk/hadoop/hadoop-0.12.2/src/native/lib/Makefile.in seems to ignore the --datarootdir setting
     [exec] config.status: creating config.h
     [exec] config.status: config.h is unchanged
     [exec] config.status: executing depfiles commands
     [exec] make  all-recursive
     [exec] make[1]: Entering directory `/bh/dev/rls/trunk/hadoop/hadoop-0.12.2/build/native/Linux-amd64-64'
     [exec] Making all in src/org/apache/hadoop/io/compress/zlib
     [exec] make[2]: Entering directory `/bh/dev/rls/trunk/hadoop/hadoop-0.12.2/build/native/Linux-amd64-64/src/org/apache/hadoop/io/compress/zlib'
     [exec] make[2]: Nothing to be done for `all'.
     [exec] make[2]: Leaving directory `/bh/dev/rls/trunk/hadoop/hadoop-0.12.2/build/native/Linux-amd64-64/src/org/apache/hadoop/io/compress/zlib'
     [exec] Making all in src/org/apache/hadoop/io/compress/lzo
     [exec] make[2]: Entering directory `/bh/dev/rls/trunk/hadoop/hadoop-0.12.2/build/native/Linux-amd64-64/src/org/apache/hadoop/io/compress/lzo'
     [exec] if /bin/sh ../../../../../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I/bh/dev/rls/trunk/hadoop/hadoop-0.12.2/src/native/src/org/apache/hadoop/io/compress/lzo -I../../../../../../..  -I/bh/dev/java/latestjdk/include -I/bh/dev/java/latestjdk/include/linux -I/bh/dev/rls/trunk/hadoop/hadoop-0.12.2/src/native/src  -g -Wall -fPIC -O2 -m64 -g -O2 -MT LzoCompressor.lo -MD -MP -MF ".deps/LzoCompressor.Tpo" -c -o LzoCompressor.lo /bh/dev/rls/trunk/hadoop/hadoop-0.12.2/src/native/src/org/apache/hadoop/io/compress/lzo/LzoCompressor.c; \
     [exec] then mv -f ".deps/LzoCompressor.Tpo" ".deps/LzoCompressor.Plo"; else rm -f ".deps/LzoCompressor.Tpo"; exit 1; fi
     [exec]  gcc -DHAVE_CONFIG_H -I. -I/bh/dev/rls/trunk/hadoop/hadoop-0.12.2/src/native/src/org/apache/hadoop/io/compress/lzo -I../../../../../../.. -I/bh/dev/java/latestjdk/include -I/bh/dev/java/latestjdk/include/linux -I/bh/dev/rls/trunk/hadoop/hadoop-0.12.2/src/native/src -g -Wall -fPIC -O2 -m64 -g -O2 -MT LzoCompressor.lo -MD -MP -MF .deps/LzoCompressor.Tpo -c /bh/dev/rls/trunk/hadoop/hadoop-0.12.2/src/native/src/org/apache/hadoop/io/compress/lzo/LzoCompressor.c  -fPIC -DPIC -o .libs/LzoCompressor.o
     [exec] /bh/dev/rls/trunk/hadoop/hadoop-0.12.2/src/native/src/org/apache/hadoop/io/compress/lzo/LzoCompressor.c: In function `Java_org_apache_hadoop_io_compress_lzo_LzoCompressor_initIDs':
     [exec] /bh/dev/rls/trunk/hadoop/hadoop-0.12.2/src/native/src/org/apache/hadoop/io/compress/lzo/LzoCompressor.c:116: error: syntax error before ',' token
     [exec] make[2]: *** [LzoCompressor.lo] Error 1
     [exec] make[2]: Leaving directory `/bh/dev/rls/trunk/hadoop/hadoop-0.12.2/build/native/Linux-amd64-64/src/org/apache/hadoop/io/compress/lzo'
     [exec] make[1]: *** [all-recursive] Error 1
     [exec] make[1]: Leaving directory `/bh/dev/rls/trunk/hadoop/hadoop-0.12.2/build/native/Linux-amd64-64'
     [exec] make: *** [all] Error 2
BUILD FAILED
/bh/dev/rls/trunk/hadoop/hadoop-0.12.2/build.xml:266: exec returned: 2
Total time: 12 seconds


Thanks & Regards
Hongbin


	

	
		
___________________________________________________________ 
Mp3疯狂搜-新歌热歌高速下
http://music.yahoo.com.cn/?source=mail_mailbox_footer