Problem loading engine module libgmp.so

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem loading engine module libgmp.so

prakash babu
Hello All,
 
               I am using OpenSSL version 0.9.8 beta. I built this version successfully in HPUX.
 
While using the engine command I am able to load all the engines except libgmp.so

1. openssl engine -vvvv dynamic -pre SO_PATH:/usr/lib/engines/lib4758_cca.so -pre LOAD
(dynamic) Dynamic engine loading support
[Success]: SO_PATH:/usr/lib//engines/lib4758_cca.so
[Success]: LOAD
Loaded: (4758cca) IBM 4758 CCA hardware engine support
     SO_PATH: Specifies the path to the '4758cca' shared library
          (input flags): STRING
 
2. While loading the libgmp.so I  get the following error
# openssl engine -vvvv dynamic -pre SO_PATH:/usr/lib/engines/gmp.so -pre LOAD
(dynamic) Dynamic engine loading support
[Success]: SO_PATH:/usr/lib/engines/libgmp.so
[Failure]: LOAD
3562:error:2506806A:DSO support routines:DL_BIND_FUNC:could not bind to the requested symbol name:dso_dl.c:235:symname(bind_engine): Error 0
3562:error:2506C06A:DSO support routines:DSO_bind_func:could not bind to the requested symbol name:dso_lib.c:294:
3562:error:260B6068:engine routines:DYNAMIC_LOAD:DSO failure:eng_dyn.c:462:
 
The libgmp.so does not have the symbol bind_engine where as all the other libraries have that symbols.
Note : I have included the options  -DOPENSSL_USE_GMP  -lgmp  while configuring  OpenSSL.
 
Any suggestion would be helpful
 
Thanks,
Prakash
 
 
 
 

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Reply | Threaded
Open this post in threaded view
|

Re: Problem loading engine module libgmp.so

Nils Larsch
prakash babu wrote:

> Hello All,
>  
>                I am using OpenSSL version 0.9.8 beta. I built this
> version successfully in HPUX.
>  
> While using the engine command I am able to load *all the engines*
> except *libgmp.so*
>
> *1. openssl engine -vvvv dynamic -pre
> SO_PATH:/usr/lib/engines/lib4758_cca.so -pre LOAD
> *(dynamic) Dynamic engine loading support
> [Success]: SO_PATH:/usr/lib//engines/lib4758_cca.so
> [Success]: LOAD
> Loaded: (4758cca) IBM 4758 CCA hardware engine support
>      SO_PATH: Specifies the path to the '4758cca' shared library
>           (input flags): STRING
>  
> 2. While loading the libgmp.so I  get the following error
> *# openssl engine -vvvv dynamic -pre SO_PATH:/usr/lib/engines/gmp.so
> -pre LOAD
> *(dynamic) Dynamic engine loading support
> [Success]: SO_PATH:/usr/lib/engines/libgmp.so
> [Failure]: LOAD
> 3562:error:2506806A:DSO support routines:DL_BIND_FUNC:could not bind to
> the requested symbol name:dso_dl.c:235:symname(bind_engine): Error 0
> 3562:error:2506C06A:DSO support routines:DSO_bind_func:could not bind to
> the requested symbol name:dso_lib.c:294:
> 3562:error:260B6068:engine routines:DYNAMIC_LOAD:DSO failure:eng_dyn.c:462:
>  
> The libgmp.so does not have the symbol *bind_engine *where as all the
> other libraries have that symbols.
> *Note* : I have included the options  *-DOPENSSL_USE_GMP  -lgmp * while
> configuring  OpenSSL.

hmm, works for me. I used
./config --prefix=/home/nils/ enable-gmp -DOPENSSL_USE_GMP -lgmp shared
as the configure command.

Nils
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [hidden email]
Automated List Manager                           [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: Problem loading engine module libgmp.so

prakash babu
In reply to this post by prakash babu
Hello Nils,
 
               The configure option you suggested works fine for Linux.
For HPUX it did not work. It worked only after adding -DENGINE_DYNAMIC_SUPPORT to the configure option.
 
Thanks,
Prakash

Nils Larsch <[hidden email]> wrote:
prakash babu wrote:

> Hello All,
>
> I am using OpenSSL version 0.9.8 beta. I built this
> version successfully in HPUX.
>
> While using the engine command I am able to load *all the engines*
> except *libgmp.so*
>
> *1. openssl engine -vvvv dynamic -pre
> SO_PATH:/usr/lib/engines/lib4758_cca.so -pre LOAD
> *(dynamic) Dynamic engine loading support
> [Success]: SO_PATH:/usr/lib//engines/lib4758_cca.so
> [Success]: LOAD
> Loaded: (4758cca) IBM 4758 CCA hardware engine support
> SO_PATH: Specifies the path to the '4758cca' shared library
> (input flags): STRING
>
> 2. While loading the libgmp.so I get the following error
> *# openssl engine -vvvv dynamic -pre SO_PATH:/usr/lib/engines/gmp.so
> -pre LOAD
> *(dynamic) Dynamic engine loading support> [Success]: SO_PATH:/usr/lib/engines/libgmp.so
> [Failure]: LOAD
> 3562:error:2506806A:DSO support routines:DL_BIND_FUNC:could not bind to
> the requested symbol name:dso_dl.c:235:symname(bind_engine): Error 0
> 3562:error:2506C06A:DSO support routines:DSO_bind_func:could not bind to
> the requested symbol name:dso_lib.c:294:
> 3562:error:260B6068:engine routines:DYNAMIC_LOAD:DSO failure:eng_dyn.c:462:
>
> The libgmp.so does not have the symbol *bind_engine *where as all the
> other libraries have that symbols.
> *Note* : I have included the options *-DOPENSSL_USE_GMP -lgmp * while
> configuring OpenSSL.

hmm, works for me. I used
./config --prefix=/home/nils/ enable-gmp -DOPENSSL_USE_GMP -lgmp shared
as the configure command.

Nils
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [hidden email]
Automated List Manager [hidden email]

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com