accumulo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ask Stack <>
Subject how to compile hadoop cdh3u4 rpm ?
Date Mon, 22 Apr 2013 19:43:05 GMT
I downloaded the source rpm at and tried
to build the rpm with 
 rpmbuild -bb --target noarch hadoop.spec. I am building it on a fedora 18 64bit machine.

I patched two files documented at

But I am stuck at

     [exec] depbase=`echo impl/wordcount-simple.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
     [exec] g++ -DHAVE_CONFIG_H -I. -I/home/qchen/rpmbuild/BUILD/hadoop-0.20.2-cdh3u4/src/examples/pipes
-I./impl    -Wall -I/home/qchen/rpmbuild/BUILD/hadoop-0.20.2-cdh3u4/build/c++/Linux-amd64-64/include
-I/home/qchen/rpmbuild/BUILD/hadoop-0.20.2-cdh3u4/build/c++/Linux-amd64-64/include -g -O2
-MT impl/wordcount-simple.o -MD -MP -MF $depbase.Tpo -c -o impl/wordcount-simple.o /home/qchen/rpmbuild/BUILD/hadoop-0.20.2-cdh3u4/src/examples/pipes/impl/
     [exec] mv -f $depbase.Tpo $depbase.Po
     [exec] /bin/sh ./libtool --tag=CXX   --mode=link g++ -Wall -I/home/qchen/rpmbuild/BUILD/hadoop-0.20.2-cdh3u4/build/c++/Linux-amd64-64/include
-I/home/qchen/rpmbuild/BUILD/hadoop-0.20.2-cdh3u4/build/c++/Linux-amd64-64/include -g -O2  
-o wordcount-simple impl/wordcount-simple.o -L/home/qchen/rpmbuild/BUILD/hadoop-0.20.2-cdh3u4/build/c++/Linux-amd64-64/lib
-L/home/qchen/rpmbuild/BUILD/hadoop-0.20.2-cdh3u4/build/c++/Linux-amd64-64/lib -lhadooppipes
-lhadooputils -lnsl -lssl -lpthread 
     [exec] libtool: link: g++ -Wall -I/home/qchen/rpmbuild/BUILD/hadoop-0.20.2-cdh3u4/build/c++/Linux-amd64-64/include
-I/home/qchen/rpmbuild/BUILD/hadoop-0.20.2-cdh3u4/build/c++/Linux-amd64-64/include -g -O2
-o wordcount-simple impl/wordcount-simple.o  -L/home/qchen/rpmbuild/BUILD/hadoop-0.20.2-cdh3u4/build/c++/Linux-amd64-64/lib
-lhadooppipes -lhadooputils -lnsl -lssl -lpthread
     [exec] /usr/bin/ld: /home/qchen/rpmbuild/BUILD/hadoop-0.20.2-cdh3u4/build/c++/Linux-amd64-64/lib/libhadooppipes.a(HadoopPipes.o):
undefined reference to symbol ''
     [exec] /usr/bin/ld: note: '' is defined in DSO /lib64/
so try adding it to the linker command line
     [exec] /lib64/ could not read symbols: Invalid operation
     [exec] collect2: error: ld returned 1 exit status
     [exec] make: *** [wordcount-simple] Error 1

Does anyone know how to build this version of hadoop? Thanks.

View raw message