libcrypto and libcrypt interfering with each other? - Aix

This is a discussion on libcrypto and libcrypt interfering with each other? - Aix ; Hi, trying to install openSSH. The server part fails with; RSA key generation failed instal: Failed while executing the ./openssh.base.server.post_i script. trying ssh-keygen manually gives; # ssh-keygen exec(): 0509-036 Cannot load program ssh-keygen because of the following errors: 0509-150 Dependent ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: libcrypto and libcrypt interfering with each other?

  1. libcrypto and libcrypt interfering with each other?

    Hi, trying to install openSSH.

    The server part fails with;

    RSA key generation failed
    instal: Failed while executing the ./openssh.base.server.post_i
    script.

    trying ssh-keygen manually gives;
    # ssh-keygen
    exec(): 0509-036 Cannot load program ssh-keygen because of the
    following errors:
    0509-150 Dependent module /usr/lib/libcrypto.a(libcrypto.so.
    0.9.7) could not be loaded.
    0509-152 Member libcrypto.so.0.9.7 is not found in archive

    I do have it installed;

    # lslpp -La | egrep 'ssh|ssl'
    openssh.base.client 4.1.0.1 C F Open Secure Shell
    Commands
    openssh.base.server 4.1.0.1 C F Open Secure Shell
    Server
    openssh.license 4.1.0.1 C F Open Secure Shell
    License
    openssh.man.en_US 4.1.0.1 C F Open Secure Shell
    openssh.msg.en_US 4.1.0.1 C F Open Secure Shell
    Messages -
    openssl 0.9.7l-1 C R Secure Sockets
    Layer and


    What I have discovered, that in /usr/lib/libcrypt* I have

    -r-xr-xr-x 1 bin bin 10993 11 Jun 2003 /usr/lib/
    libcrypt.a
    -r-xr-xr-x 1 root system 3454530 25 Oct 2006 /usr/lib/
    libcrypto.a


    which is odd. on other working installs there is just libcrypt.a
    __even though libcrypto is the one being complained about__

    If I mv libcrypto to libcrypto.a_saved, then ssh will install fine and
    ssh-keygen etc.. do not complain about a missing libcrypto.a - even
    though it doesnt exist! - only libcrypt is in /usr/lib/libcrypt* now

    Soo, can anyone explain to me how libcryp, libcrypto are getting in
    the way of each other here?

    Thanks,

    Matt.


  2. Re: libcrypto and libcrypt interfering with each other?

    On Jul 12, 2:23 pm, MattWarren wrote:
    > Hi, trying to install openSSH.
    >
    > The server part fails with;
    >
    > RSA key generation failed
    > instal: Failed while executing the ./openssh.base.server.post_i
    > script.
    >
    > trying ssh-keygen manually gives;
    > # ssh-keygen
    > exec(): 0509-036 Cannot load program ssh-keygen because of the
    > following errors:
    > 0509-150 Dependent module /usr/lib/libcrypto.a(libcrypto.so.
    > 0.9.7) could not be loaded.
    > 0509-152 Member libcrypto.so.0.9.7 is not found in archive
    >
    > I do have it installed;
    >
    > # lslpp -La | egrep 'ssh|ssl'
    > openssh.base.client 4.1.0.1 C F Open Secure Shell
    > Commands
    > openssh.base.server 4.1.0.1 C F Open Secure Shell
    > Server
    > openssh.license 4.1.0.1 C F Open Secure Shell
    > License
    > openssh.man.en_US 4.1.0.1 C F Open Secure Shell
    > openssh.msg.en_US 4.1.0.1 C F Open Secure Shell
    > Messages -
    > openssl 0.9.7l-1 C R Secure Sockets
    > Layer and
    >
    > What I have discovered, that in /usr/lib/libcrypt* I have
    >
    > -r-xr-xr-x 1 bin bin 10993 11 Jun 2003 /usr/lib/
    > libcrypt.a
    > -r-xr-xr-x 1 root system 3454530 25 Oct 2006 /usr/lib/
    > libcrypto.a
    >
    > which is odd. on other working installs there is just libcrypt.a
    > __even though libcrypto is the one being complained about__
    >
    > If I mv libcrypto to libcrypto.a_saved, then ssh will install fine and
    > ssh-keygen etc.. do not complain about a missing libcrypto.a - even
    > though it doesnt exist! - only libcrypt is in /usr/lib/libcrypt* now
    >
    > Soo, can anyone explain to me how libcryp, libcrypto are getting in
    > the way of each other here?
    >
    > Thanks,
    >
    > Matt.


    On our AIX 5.1 system libcrypto.a is provided by
    $ rpm -q openssl
    openssl-0.9.7d-2

    $ rpm -ql openssl | grep libcry
    /opt/freeware/64/lib/libcrypto.a
    /opt/freeware/lib/libcrypto.a
    /usr/linux/lib/libcrypto.a

    so i would check why you have libcrypto.a in /usr/lib or which
    programs owns it because if your openssl package is correct the
    openssh just pick up the wrong library because its found first in the
    lib search path.

    hth
    Hajo


  3. Re: libcrypto and libcrypt interfering with each other?

    On Jul 12, 1:38 pm, Hajo Ehlers wrote:
    > On Jul 12, 2:23 pm, MattWarren wrote:
    >
    >
    >
    >
    >
    > > Hi, trying to install openSSH.

    >
    > > The server part fails with;

    >
    > > RSA key generation failed
    > > instal: Failed while executing the ./openssh.base.server.post_i
    > > script.

    >
    > > trying ssh-keygen manually gives;
    > > # ssh-keygen
    > > exec(): 0509-036 Cannot load program ssh-keygen because of the
    > > following errors:
    > > 0509-150 Dependent module /usr/lib/libcrypto.a(libcrypto.so.
    > > 0.9.7) could not be loaded.
    > > 0509-152 Member libcrypto.so.0.9.7 is not found in archive

    >
    > > I do have it installed;

    >
    > > # lslpp -La | egrep 'ssh|ssl'
    > > openssh.base.client 4.1.0.1 C F Open Secure Shell
    > > Commands
    > > openssh.base.server 4.1.0.1 C F Open Secure Shell
    > > Server
    > > openssh.license 4.1.0.1 C F Open Secure Shell
    > > License
    > > openssh.man.en_US 4.1.0.1 C F Open Secure Shell
    > > openssh.msg.en_US 4.1.0.1 C F Open Secure Shell
    > > Messages -
    > > openssl 0.9.7l-1 C R Secure Sockets
    > > Layer and

    >
    > > What I have discovered, that in /usr/lib/libcrypt* I have

    >
    > > -r-xr-xr-x 1 bin bin 10993 11 Jun 2003 /usr/lib/
    > > libcrypt.a
    > > -r-xr-xr-x 1 root system 3454530 25 Oct 2006 /usr/lib/
    > >libcrypto.a

    >
    > > which is odd. on other working installs there is just libcrypt.a
    > > __even though libcrypto is the one being complained about__

    >
    > > If I mv libcrypto to libcrypto.a_saved, then ssh will install fine and
    > > ssh-keygen etc.. do not complain about a missinglibcrypto.a- even
    > > though it doesnt exist! - only libcrypt is in /usr/lib/libcrypt* now

    >
    > > Soo, can anyone explain to me how libcryp, libcrypto are getting in
    > > the way of each other here?

    >
    > > Thanks,

    >
    > > Matt.

    >
    > On our AIX 5.1 systemlibcrypto.ais provided by
    > $ rpm -q openssl
    > openssl-0.9.7d-2
    >
    > $ rpm -ql openssl | grep libcry
    > /opt/freeware/64/lib/libcrypto.a
    > /opt/freeware/lib/libcrypto.a
    > /usr/linux/lib/libcrypto.a
    >
    > so i would check why you havelibcrypto.ain /usr/lib or which
    > programs owns it because if your openssl package is correct the
    > openssh just pick up the wrong library because its found first in the
    > lib search path.
    >
    > hth
    > Hajo- Hide quoted text -
    >
    > - Show quoted text -


    Hi, libcrypto.a in /usr/lib is owned by oracle.

    So, ssh will fall back to using libcrypt.a or look elsewhere if /usr/
    lib/libcrypto is not available? but it's failing on the libcrypto it
    is finding becasue it's the wrong version?

    Is there anyway to resolve the fact that l need both libcrypto.a's on
    the system?


  4. Re: libcrypto and libcrypt interfering with each other?

    On Jul 12, 1:48 pm, MattWarren wrote:
    > On Jul 12, 1:38 pm, Hajo Ehlers wrote:
    >
    >
    >
    >
    >
    > > On Jul 12, 2:23 pm, MattWarren wrote:

    >
    > > > Hi, trying to install openSSH.

    >
    > > > The server part fails with;

    >
    > > > RSA key generation failed
    > > > instal: Failed while executing the ./openssh.base.server.post_i
    > > > script.

    >
    > > > trying ssh-keygen manually gives;
    > > > # ssh-keygen
    > > > exec(): 0509-036 Cannot load program ssh-keygen because of the
    > > > following errors:
    > > > 0509-150 Dependent module /usr/lib/libcrypto.a(libcrypto.so.
    > > > 0.9.7) could not be loaded.
    > > > 0509-152 Member libcrypto.so.0.9.7 is not found in archive

    >
    > > > I do have it installed;

    >
    > > > # lslpp -La | egrep 'ssh|ssl'
    > > > openssh.base.client 4.1.0.1 C F Open Secure Shell
    > > > Commands
    > > > openssh.base.server 4.1.0.1 C F Open Secure Shell
    > > > Server
    > > > openssh.license 4.1.0.1 C F Open Secure Shell
    > > > License
    > > > openssh.man.en_US 4.1.0.1 C F Open Secure Shell
    > > > openssh.msg.en_US 4.1.0.1 C F Open Secure Shell
    > > > Messages -
    > > > openssl 0.9.7l-1 C R Secure Sockets
    > > > Layer and

    >
    > > > What I have discovered, that in /usr/lib/libcrypt* I have

    >
    > > > -r-xr-xr-x 1 bin bin 10993 11 Jun 2003 /usr/lib/
    > > > libcrypt.a
    > > > -r-xr-xr-x 1 root system 3454530 25 Oct 2006 /usr/lib/
    > > >libcrypto.a

    >
    > > > which is odd. on other working installs there is just libcrypt.a
    > > > __even though libcrypto is the one being complained about__

    >
    > > > If I mv libcrypto to libcrypto.a_saved, then ssh will install fine and
    > > > ssh-keygen etc.. do not complain about a missinglibcrypto.a- even
    > > > though it doesnt exist! - only libcrypt is in /usr/lib/libcrypt* now

    >
    > > > Soo, can anyone explain to me how libcryp, libcrypto are getting in
    > > > the way of each other here?

    >
    > > > Thanks,

    >
    > > > Matt.

    >
    > > On our AIX 5.1 systemlibcrypto.ais provided by
    > > $ rpm -q openssl
    > > openssl-0.9.7d-2

    >
    > > $ rpm -ql openssl | grep libcry
    > > /opt/freeware/64/lib/libcrypto.a
    > > /opt/freeware/lib/libcrypto.a
    > > /usr/linux/lib/libcrypto.a

    >
    > > so i would check why you havelibcrypto.ain /usr/lib or which
    > > programs owns it because if your openssl package is correct the
    > > openssh just pick up the wrong library because its found first in the
    > > lib search path.

    >
    > > hth
    > > Hajo- Hide quoted text -

    >
    > > - Show quoted text -

    >
    > Hi,libcrypto.ain /usr/lib is owned by oracle.
    >
    > So, ssh will fall back to using libcrypt.a or look elsewhere if /usr/
    > lib/libcrypto is not available? but it's failing on the libcrypto it
    > is finding becasue it's the wrong version?
    >
    > Is there anyway to resolve the fact that l need bothlibcrypto.a'son
    > the system?- Hide quoted text -
    >
    > - Show quoted text -


    Hi, Ok wasn't too bad.

    user oracle has LIBPATH exported to somewhere under /oracle/app, so I
    could either remove oracles libcrypto from /usr/lib or use LIBPATH for
    root to look in /opt/freeware/lib before /usr/lib


    Matt.


+ Reply to Thread