I assume this is attempting to build the JNI library that is complained
about when you try and run things. What level of binutils are you on?
-fPIC is specified on the compile so to which object is ld complaining
about? Where is _Jv_RegisterClasses defined?

On 3/12/15, 10:38 AM, "Dave Jones" <[email protected]> wrote:

>g++ -I/usr/lib64/jvm/jre/include -Ilib/inc_mac -O2 -fPIC
>-fvisibility=hidden  -Ilib/include   -Itarget/snappy-1.1.1 -o
>target/snappy-1.1.1-Default/libsnappyjava.so
>target/snappy-1.1.1-Default/snappy-sinksource.o
>target/snappy-1.1.1-Default/snappy-stubs-internal.o
>target/snappy-1.1.1-Default/snappy.o
>target/snappy-1.1.1-Default/SnappyNative.o -shared -static
>/usr/lib64/gcc/s390x-suse-linux/4.3/../../../../s390x-suse-linux/bin/ld:
>/usr/lib64/gcc/s390x-suse-linux/4.3/crtbeginT.o: relocation R_390_PC32DBL
>against `_Jv_RegisterClasses' can not be used when making a shared
>object; recompile with -fPIC
>/usr/lib64/gcc/s390x-suse-linux/4.3/../../../../s390x-suse-linux/bin/ld:
>final link failed: Bad value
>collect2: ld returned 1 exit status

Reply via email to