-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Sanaullah,
On 11/14/14 10:04 PM, Sanaullah wrote: > The Engine name is correct its "LunaCA3" Here is the code snippet > from the openssl for the confirmation. > > openssl-1.0.1g/engines/e_lunaca3.c:#define ENGINE_LUNACA3_ID > "LunaCA3" > > I think the issue is with static and shared libraries of openssl. It could be. Since you are building on *NIX, you should probably be using dynamically-linked shared-libraries. But you have to be careful about the load-ordering if you are using an OpenSSL that is not the system default (e.g. in /usr/lib). > if openssl build as shared then this LunaCA3 engine is not working > for nodejs and even for Apache as well both required openssl to > build static. Interesting... > I tried to follow the Build document of tomcat native. Building > statically linked library on Unixes > -------------------------------------------- > > To statically link apr and openssl dependencies use the following > procedure. > > You will need to build static version of openssl library. > >> ./config --prefix=~/natives/openssl no-shared -fPIC make make >> install_sw > Apr by default builds both static and dynamic libraries. > >> ./configure --prefix=~/natives/apr make make install > > After that edit the ~/natives/apr/lib/libapr-1.la file and comment > or delete the following sections: dlname='...' and > library_names='...' This is needed so that libtool picks the > static version of the library. > > Build Tomcat native by executing > >> ./configure --with-apr=~/natives/apr >> --with-ssl=~/natives/openssl > --prefix=~/natives/tomcat >> make make install You're reaching the limits of my knowledge about building the whole bundle statically. I'll ping Rainer (CC'd here) who knows more than I do. > here is something strange, Openssl successully build and install > with -fPIC but tcnative still give me error. > > /usr/bin/ld: /usr/local/apache2/lib/libapr-1.a(apr_snprintf.o): > relocation R_X86_64_32 against `.rodata' can not be used when > making a shared object; recompile with -fPIC > /usr/local/apache2/lib/libapr-1.a: error adding symbols: Bad value > collect2: error: ld returned 1 exit status make[1]: *** > [libtcnative-1.la] Error 1 make[1]: Leaving directory > `/opt/aprtc/tomcat-native-1.1.31-src/jni/native' make: *** > [all-recursive] Error 1 > > I am not sure what to do here ? Hmm. Let's see if Rainer (or anyone else!) replies. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org iQIcBAEBCAAGBQJUa5+0AAoJEBzwKT+lPKRYBsoP/33HiFbBQpcM7SR+BQRyl/Tx DhA8AcP5jBQgkLkE3ZJy04QUgL6JWvX1vyxfQJxtMp1agmBtcMMgnkpUMIxLB7yP pOqy5mJJOsFL1hvg22n+MCfoT3+zAzFOhZvnTOXOp8OczVtJ35ZWcXl3oDaXHSyR mdkFCMXD8USwKVBv5PZm/OD+S5NEnv8PgxWiaFtNtSlfC38H+SLbf1JaMYvjhdAa PKcLpE2aI0efUX4tWG8bYK+hbzDkoL1D+3qEccCoKJ9DooMVHKiu+PB1Gf6oS5tD qS7ZblkqiBxwS5GOFBaoch29C+jQAB81Mrj9ndhD7BZ5o852NQUeIChWrKuX+QLw jWiPWaSU459uPdj1UZW0JibsN7U6N8V+hR1RvYNAL3kXRuJ9WjbHw5HmyiX0QeoF OwDAuKMOifXNnYsfxHtoNoNebB8smXntzMPA0b3mksywTDfI288vCOiAQm7XT44m u5MvyVIjpoWz/NZNm8t2Er1B1dceiRBpr9urO8HcljWY3oT8dMsfapEEDh2jlFV+ LZphHn3Cu3FzEwbclAhD4hCbb6kUVxpZnBm8eAD9BvDn8Ym+nfrs+dGBVBMhf7le 1t4ayKz0A2VAldPOa9WsOO/g8VUoLGW7cKaKSAJfOdJFcnnpg7pYPy0Pj5bcmJrn xIF9OeYjsCFOhml42lpV =j3PO -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org