Hello All, I want to create a dynamic engine and am looking to the demos section for reference code on building, etc.
So far I have found the demos rsaref and zencod not to compile out of the box in OpenSSL_1_0_2. I have hacked zencod to push it forward and now getting an error during the link, excerpted below. My question are: 1. Is dynamic engine support stable and expected to work in openssl_1_0_2? 2. Are there controls I need to enable to the build procedure or tool chain to get dynamic engine support/libcrypto.a in workable state? ~/test2/openssl_1_0_2/demos/engines/zencod$ make ... ar r libzencod.a hw_zencod.o ar: creating libzencod.a ranlib libzencod.a ALLSYMSFLAGS='--whole-archive' \ SHAREDFLAGS='-shared -Wl,-soname=libzencod.so' \ SHAREDCMD='gcc'; \ ld -r -o libzencod.o $ALLSYMSFLAGS libzencod.a && (nm -Pg libzencod.o | grep ' [BDT] ' | cut -f1 -d' ' > libzencod.exp; $SHAREDCMD $SHAREDFLAGS -o libzencod.so libzencod.o -L ../../.. -lcrypto -lc) /usr/bin/ld: ../../../libcrypto.a(cryptlib.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC ../../../libcrypto.a: could not read symbols: Bad value collect2: error: ld returned 1 exit status make: *** [libzencod.so.gnu] Error 1 adminuser@debian-amd64-700:~/test2/openssl_1_0_2/demos/engines/zencod$ gcc -version gcc: error: unrecognized command line option ‘-version’ gcc: fatal error: no input files compilation terminated. adminuser@debian-amd64-700:~/test2/openssl_1_0_2/demos/engines/zencod$ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.7/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 4.7.2-5' --with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs --enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.7 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.7.2 (Debian 4.7.2-5) [email protected] Mobile: +1-415-420-8449
_______________________________________________ openssl-dev mailing list To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev
