You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
首先编译了GmSSL
然后安装
然后进入jni目录 make
以下是编译信息:
star@star-aigo:~/下载/guanzhi-GmSSL-f881784/jni$ make
javac GmSSL.java
javah -jni GmSSL
gcc -shared -fPIC -Wall -I./jni/ GmSSL.c ../libcrypto.a -o libgmssl.jnilib
/usr/bin/ld: ../libcrypto.a(err.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
../libcrypto.a: 无法添加符号: 错误的值
collect2: error: ld returned 1 exit status
Makefile:7: recipe for target 'libgmssl.jnilib' failed
make: *** [libgmssl.jnilib] Error 1
另外请问一下,通过jni调用GmSSL是否可以做到 生成密钥对 生成CSR 以及对密钥对进行操作。
谢谢。
The text was updated successfully, but these errors were encountered:
首先编译了GmSSL
然后安装
然后进入jni目录 make
以下是编译信息:
star@star-aigo:~/下载/guanzhi-GmSSL-f881784/jni$ make
javac GmSSL.java
javah -jni GmSSL
gcc -shared -fPIC -Wall -I./jni/ GmSSL.c ../libcrypto.a -o libgmssl.jnilib
/usr/bin/ld: ../libcrypto.a(err.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
../libcrypto.a: 无法添加符号: 错误的值
collect2: error: ld returned 1 exit status
Makefile:7: recipe for target 'libgmssl.jnilib' failed
make: *** [libgmssl.jnilib] Error 1
另外请问一下,通过jni调用GmSSL是否可以做到 生成密钥对 生成CSR 以及对密钥对进行操作。
谢谢。
The text was updated successfully, but these errors were encountered: