libkafka icon indicating copy to clipboard operation
libkafka copied to clipboard

clang error.

Open mrodfuentes opened this issue 9 years ago • 0 comments

Hi, I have tried to build the distribuition using maven. This is the trace shown when I run "mvn clean install"

"/usr/bin/ld" --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o /home/adminuser/tools/libkafka-master/lib/target/libkafka.so /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/crt1.o /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/crti.o /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/crtbegin.o -L/opt/local/lib -L/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9 -L/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu -L/lib/x86_64-linux-gnu -L/lib/../lib64 -L/usr/lib/x86_64-linux-gnu -L/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../.. -L/usr/lib/llvm-3.5/bin/../lib -L/lib -L/usr/lib -lstdc++ -lz -lsnappy -lgtest target/objs/Connection.o target/objs/Response.o target/objs/Util.o target/objs/Client.o target/objs/MessageSet.o target/objs/Message.o target/objs/Request.o target/objs/Packet.o target/objs/ApiConstants.o target/objs/RequestOrResponse.o target/objs/Broker.o target/objs/MetadataRequest.o target/objs/MetadataResponse.o target/objs/PartitionMetadata.o target/objs/TopicMetadata.o target/objs/ProduceResponsePartition.o target/objs/ProduceRequest.o target/objs/ProduceResponse.o target/objs/ProduceMessageSet.o target/objs/FetchResponse.o target/objs/FetchRequest.o target/objs/FetchResponsePartition.o target/objs/FetchPartition.o target/objs/OffsetResponsePartition.o target/objs/OffsetPartition.o target/objs/OffsetResponse.o target/objs/OffsetRequest.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/crtend.o /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/crtn.o /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/crt1.o: In function _start': /build/buildd/glibc-2.19/csu/../sysdeps/x86_64/start.S:118: undefined reference tomain' clang: error: linker command failed with exit code 1 (use -v to see invocation) [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] libkafka-all ....................................... SUCCESS [ 0.444 s] [INFO] libkafka ........................................... FAILURE [ 10.557 s] [INFO] libkafka-test ...................................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 11.950 s [INFO] Finished at: 2015-03-04T13:44:38+01:00 [INFO] Final Memory: 9M/60M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.mojo:native-maven-plugin:1.0-alpha-7:link (default-link) on project libkafka: Error executing command line. Exit code:1 -> [Help 1] [ERROR]

Thanks

mrodfuentes avatar Mar 04 '15 12:03 mrodfuentes