fusesource/leveldbjni

Unable to build tag 1.2 with leveldb version 1.4.0

Closed this issue · 1 comments

Hi

I tried to build tag 1.2 locally for 64 version. But it having errors and cannot continue further.

[root@app6.DEV1 fusesource-leveldbjni-12]$ cd leveldbjni-linux64/
[root@app6.DEV1 leveldbjni-linux64]$ mvn clean deploy -Dleveldb=cd ../../leveldb; pwd -Dsnappy=cd ../../snappy-1.0.3; pwd
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building leveldbjni-linux64 1.2
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.3:clean (default-clean) @ leveldbjni-linux64 ---
[INFO] Deleting file set: /app/test/fusesource-leveldbjni-12/leveldbjni-linux64/target (included: [*], excluded: [])
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ leveldbjni-linux64 ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /app/test/fusesource-leveldbjni-12/leveldbjni-linux64/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ leveldbjni-linux64 ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-hawtjni-plugin:1.5:build (default) @ leveldbjni-linux64 ---
[INFO] Extracting /root/.m2/repository/org/fusesource/leveldbjni/leveldbjni/1.2/leveldbjni-1.2-native-src.zip to /app/test/fusesource-leveldbjni-12/leveldbjni-linux64/target/native-build-extracted
[INFO] executing: /bin/sh -c ./configure --disable-ccache --prefix=/app/test/fusesource-leveldbjni-12/leveldbjni-linux64/target/native-build/target --with-leveldb=/app/test/leveldb --with-snappy=/app/test/snappy-1.0.3
[INFO] executing: /bin/sh -c make install
[INFO] /bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I./src -g -O2 -I/app/test/leveldb/include -I/app/j2sdk/include -I/app/j2sdk/include/linux -c -o leveldbjni.lo test -f 'src/leveldbjni.cpp' || echo './'src/leveldbjni.cpp
[INFO] libtool: compile: g++ -DHAVE_CONFIG_H -I. -I./src -g -O2 -I/app/test/leveldb/include -I/app/j2sdk/include -I/app/j2sdk/include/linux -c src/leveldbjni.cpp -fPIC -DPIC -o .libs/leveldbjni.o
[INFO] /bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I./src -g -O2 -I/app/test/leveldb/include -I/app/j2sdk/include -I/app/j2sdk/include/linux -c -o leveldbjni_stats.lo test -f 'src/leveldbjni_stats.cpp' || echo './'src/leveldbjni_stats.cpp
[INFO] libtool: compile: g++ -DHAVE_CONFIG_H -I. -I./src -g -O2 -I/app/test/leveldb/include -I/app/j2sdk/include -I/app/j2sdk/include/linux -c src/leveldbjni_stats.cpp -fPIC -DPIC -o .libs/leveldbjni_stats.o
[INFO] /bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I./src -g -O2 -I/app/test/leveldb/include -I/app/j2sdk/include -I/app/j2sdk/include/linux -c -o leveldbjni_structs.lo test -f 'src/leveldbjni_structs.cpp' || echo './'src/leveldbjni_structs.cpp
[INFO] libtool: compile: g++ -DHAVE_CONFIG_H -I. -I./src -g -O2 -I/app/test/leveldb/include -I/app/j2sdk/include -I/app/j2sdk/include/linux -c src/leveldbjni_structs.cpp -fPIC -DPIC -o .libs/leveldbjni_structs.o
[INFO] /app/test/leveldb/include/leveldb/slice.h: In function 'leveldb::Slice
getNativeSliceFields(JNIEnv_, jobject, leveldb::Slice_)':
[INFO] /app/test/leveldb/include/leveldb/slice.h:81: error: 'const char_ leveldb::Slice::data_' is private
[INFO] src/leveldbjni_structs.cpp:242: error: within this context
[INFO] /app/test/leveldb/include/leveldb/slice.h:82: error: 'size_t leveldb::Slice::size_' is private
[INFO] src/leveldbjni_structs.cpp:243: error: within this context
[INFO] /app/test/leveldb/include/leveldb/slice.h: In function 'void setNativeSliceFields(JNIEnv_, jobject, leveldb::Slice_)':
[INFO] /app/test/leveldb/include/leveldb/slice.h:81: error: 'const char_ leveldb::Slice::data_' is private
[INFO] src/leveldbjni_structs.cpp:250: error: within this context
[INFO] /app/test/leveldb/include/leveldb/slice.h:82: error: 'size_t leveldb::Slice::size_' is private
[INFO] src/leveldbjni_structs.cpp:251: error: within this context
[INFO] make: *** [leveldbjni_structs.lo] Error 1
[INFO] rc: 2
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.526s
[INFO] Finished at: Wed May 02 16:43:50 EST 2012
[INFO] Final Memory: 4M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.fusesource.hawtjni:maven-hawtjni-plugin:1.5:build (default) on project leveldbjni-linux64: build failed: org.apache.maven.plugin.MojoExecutionException: make based build failed with exit code: 2 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

I will close this issue. I forgot to apply the patch before building. All good.