Openssl 0.9.6b & OpenSSH 2.9p2 on Solaris 2.7 Help

Openssl 0.9.6b & OpenSSH 2.9p2 on Solaris 2.7 Help

Post by Anthony D'Souz » Sat, 25 Aug 2001 04:02:38



Hi,

I have a problem...

I have installed openssl-0.9.6.b with prefix /usr/local/openssl and
openssh-2.9p2 with prefix /usr/local/openssh on Solaris 8 no problem.
However, on Solaris 2.7 when I try to install it I keep getting this
error during the configure command which is:

./configure \
                --with-pam \
                --with-tcp-wrappers \
                --prefix=/usr/local/openssh \
                --sysconfdir=/usr/local/openssh/conf \
                --with-pid-dir=/usr/local/openssh \
                --with-kerberos5=/usr/local/krb5 \
                --with-ssl-dir=/usr/local/openssl
I have set my environment variables to:
        LD_LIBRARY_PATH=/usr/local/lib:/usr/local/openssl/lib:/usr/dt/lib:/usr/lib:/usr/openwin/lib
        LDFLAGS=-L/usr/local/openssl/lib -R/usr/local/openssl/lib
        CFLAGS=-I/usr/local/openssl/include

Even hacked the configure script to include the openssl lib dirs (modified
the LDFLAGS= and CPPFLAGS= vars to include the dirs)...
even tried advice of using openssl-engine (no avail on 2.7).

the error:
checking for OpenSSL directory... configure: error: Could not find
working OpenSSL library, please install or check config.log

from my config.log file I am receiving:
configure:4433: gcc -o conftest -g -O2 -Wall -I/opt  -I/usr/local/include
-R/opt
 -L/opt  -L/usr/local/lib -R/usr/local/lib conftest.c -lpam -ldl -lwrap
-lz -lso
cket -lnsl  -lgen -lcrypto 1>&5
configure:4422: openssl/rand.h: No such file or directory
configure: failed program was:
#line 4419 "configure"
#include "confdefs.h"

#include <string.h>
#include <openssl/rand.h>
int main(void)
{
        char a[2048];
        memset(a, 0, sizeof(a));
        RAND_add(a, sizeof(a), sizeof(a));
        return(RAND_status() <= 0);

Quote:}

Problem is, all the files are in /usr/local/openssl/lib that are required
for openssh.  Openssl configured and installed properly no errors as it
did on Sol8 on a Sparc.  I configured openssl as:
         ./configure \
                --prefix=/usr/local/openssl \
                --openssldir=/usr/local/openssl \
                shared

I am installing to these prefixes because I am building a package that
contains krb5, openssl, and openssh, and the location is required due to
future use...

Does anybody have any idea why this is happening?  Or how I can fix it?
Please help, this is driving me insane!!!

Can you please include my email address in the reply if you know a
solution.  Thanks!

Anthony D'Souza
Systems Architecture
Globix Corporation (NASDAQ: GBIX)

 
 
 

Openssl 0.9.6b & OpenSSH 2.9p2 on Solaris 2.7 Help

Post by Dave Uhrin » Sat, 25 Aug 2001 00:32:07



> Hi,

> I have a problem...

> I have installed openssl-0.9.6.b with prefix /usr/local/openssl and
> openssh-2.9p2 with prefix /usr/local/openssh on Solaris 8 no problem.
> However, on Solaris 2.7 when I try to install it I keep getting this
> error during the configure command which is:

> ./configure \
>                 --with-pam \
>                 --with-tcp-wrappers \
>                 --prefix=/usr/local/openssh \
>                 --sysconfdir=/usr/local/openssh/conf \
>                 --with-pid-dir=/usr/local/openssh \
>                 --with-kerberos5=/usr/local/krb5 \
>                 --with-ssl-dir=/usr/local/openssl
> I have set my environment variables to:

LD_LIBRARY_PATH=/usr/local/lib:/usr/local/openssl/lib:/usr/dt/lib:/usr/lib:/usr/openwin/lib

- Show quoted text -

> LDFLAGS=-L/usr/local/openssl/lib -R/usr/local/openssl/lib
> CFLAGS=-I/usr/local/openssl/include

> Even hacked the configure script to include the openssl lib dirs (modified
> the LDFLAGS= and CPPFLAGS= vars to include the dirs)...
> even tried advice of using openssl-engine (no avail on 2.7).

> the error:
> checking for OpenSSL directory... configure: error: Could not find
> working OpenSSL library, please install or check config.log

> from my config.log file I am receiving:
> configure:4433: gcc -o conftest -g -O2 -Wall -I/opt  -I/usr/local/include
> -R/opt
>  -L/opt  -L/usr/local/lib -R/usr/local/lib conftest.c -lpam -ldl -lwrap
> -lz -lso
> cket -lnsl  -lgen -lcrypto 1>&5
> configure:4422: openssl/rand.h: No such file or directory
> configure: failed program was:
> #line 4419 "configure"
> #include "confdefs.h"

> #include <string.h>
> #include <openssl/rand.h>
> int main(void)
> {
>         char a[2048];
>         memset(a, 0, sizeof(a));
>         RAND_add(a, sizeof(a), sizeof(a));
>         return(RAND_status() <= 0);
> }

> Problem is, all the files are in /usr/local/openssl/lib that are required
> for openssh.  Openssl configured and installed properly no errors as it
> did on Sol8 on a Sparc.  I configured openssl as:
>          ./configure \
> --prefix=/usr/local/openssl \
> --openssldir=/usr/local/openssl \
> shared

> I am installing to these prefixes because I am building a package that
> contains krb5, openssl, and openssh, and the location is required due to
> future use...

> Does anybody have any idea why this is happening?  Or how I can fix it?
> Please help, this is driving me insane!!!

> Can you please include my email address in the reply if you know a
> solution.  Thanks!

> Anthony D'Souza
> Systems Architecture
> Globix Corporation (NASDAQ: GBIX)


The configure script assumes that you have installed openssl with a prefix
of /usr/local, thereby putting the openssl libs in /usr/local/lib and the
header files in /usr/local/include/openssl.  With your setup, create a
subdirectory under /usr/local/openssl/include named openssl and copy your
header files from /usr/local/openssl/include to
/usr/local/openssl/include/openssl.

You will also probably want to install ANDIrand.  OpenSSH really wants to
have a /dev/random.  Google 'ANDIrand'.  It builds easily and installs with
a standard pkgadd -d . command.

 
 
 

1. mod_ssl/2.8.8 OpenSSL/0.9.6b version increments

Yesterday, I updated my source tree and rebuilt the world.  Apache
still reveals it is compiled with "Apache/1.3.24 (Unix) mod_ssl/2.8.8
OpenSSL/0.9.6b".  Does the -PATCH branch include the recent slew of
patches 011, 012, 013... if so, shouldn't the openssl version numbers
correspond with the versions stated as fixed in the advisory?  0.9.6e
?

Thanks in advance,
A

2. xf86config problems with number nine 771

3. Upgrade OpenSSH 2.9p2 to OpenSSH-4.2p1 on Solaris 8 for SPARC

4. 100BaseT Ethernet card

5. weird problem with openssh 2.9.9p2 & solaris

6. Help on File Migration

7. radius.3.6B.basic : compilation problem with Solaris 2.7

8. problem compiling 3c90x driver

9. Problem with 64 bit build of openssl 0.9.7c - solaris 9

10. Help: GeForce2 MX & nvidia 0.9-5 & blue flashes & dri

11. OpenSSL version 0.9.6c released

12. Problem with: Apache/2.0.36 (Unix) mod_ssl/2.0.36 OpenSSL/0.9.6d

13. Apache 2.0.42 with openssl 0.9.6g