problems running configure

peter at frontierflying.com peter at frontierflying.com
Sat Mar 11 09:56:20 EST 2000


It certainly seems like it doesn't find the files yet they exist and the
paths look correct for the ssldir/lib and the #include <openssl/rsa.h> etc

Contents of /usr/local/ssl/include/openssl

asn1.h      conf.h      err.h   objects.h      rc2.h    ssl2.h x509_vfy.h
asn1_mac.h  crypto.h    evp.h   opensslconf.h  rc4.h    ssl23.h x509v3.h
bio.h       des.h       hmac.h  opensslv.h     rc5.h    ssl3.h
blowfish.h  dh.h        idea.h  pem.h          ripemd.h stack.h
bn.h        dsa.h       lhash.h pem2.h         rsa.h    tls1.h
buffer.h    e_os.h      md2.h   pkcs12.h       safestack.h tmdiff.h
cast.h      e_os2.h     md5.h   pkcs7.h        sha.h    txt_db.h
comp.h      ebcdic.h    mdc2.h  rand.h         ssl.h    x509.h



>From my configure.in

AC_MSG_CHECKING([for OpenSSL/SSLeay directory])
for ssldir in "" $tryssldir /usr /usr/local/openssl /usr/lib/openssl \
/usr/local/ssl /usr/lib/ssl /usr/local /usr/pkg /opt /opt/openssl
        if test ! -z "$ssldir" ; then
                LIBS="$saved_LIBS -L$ssldir/lib"
                CFLAGS="$CFLAGS -I$ssldir/include"        
                if test "x$need_dash_r" = "x1" ; then
                        LIBS="$LIBS -R$ssldir/lib"

>From config.log

configure:1918: gcc -o conftest -g -O2 -I/usr/include
-I/usr/local/openssl/include -I/usr/lib/openssl/include \
-I/usr/local/ssl/include
-I/usr/lib/ssl/include -I/usr/local/include -I/usr/pkg/include \
conftest.c -lnsl -lz  -lutil -L/usr/pkg  -lcrypto 1>&5
/usr/i486-linux/bin/ld: cannot open -lcrypto: No such file or directory
collect2: ld returned 1 exit status
configure: failed program was:
#line 1906 "configure"
#include "confdefs.h"

                        #include <openssl/rsa.h>
                        #include <openssl/bn.h>
                        #include <openssl/sha.h>
                        int main(void) 
                        {RSA *key; char seed[2048];memset(seed, 0,
sizeof(seed))
;
                        RAND_seed(seed,
sizeof(seed));key=RSA_generate_key(32,3,NULL,NULL);
                        return(key==NULL);}

configure:1954: gcc -o conftest -g -O2 -I/usr/include
-I/usr/local/openssl/include -I/usr/lib/openssl/include \ 
-I/usr/local/ssl/include -I/usr/lib/ssl/include -I/usr/local/include \
-I/usr/pkg/include   conftest.c -lnsl -lz  -lutil -L/usr/pkg \ 
-lcrypto 1>&5
configure:1944: ssl/rsa.h: No such file or directory
configure:1945: ssl/bn.h: No such file or directory
configure:1946: ssl/sha.h: No such file or directory
configure: failed program was:
#line 1942 "configure"
#include "confdefs.h"

                        #include <ssl/rsa.h>
                        #include <ssl/bn.h>
                        #include <ssl/sha.h>
                        int main(void) 
                        {RSA *key; char seed[2048];memset(seed, 0,
sizeof(seed));
                        RAND_seed(seed,
sizeof(seed));key=RSA_generate_key(32,3,NULL,NULL);
                        return(key==NULL);}
configure:1918: gcc -o conftest -g -O2 -I/usr/include
-I/usr/local/openssl/include -I/usr/lib/openssl/include \ 
-I/usr/local/ssl/include -I/usr/lib/ssl/include -I/usr/local/include \
-I/usr/pkg/include -I/opt/include -I/opt/openssl/include   \
conftest.c -lnsl -lz  -lutil -L/opt/openssl -lcrypto 1>&5
/usr/i486-linux/bin/ld: cannot open -lcrypto: No such file or directory
collect2: ld returned 1 exit status
configure: failed program was:
#line 1906 "configure"
#include "confdefs.h"

                        #include <openssl/rsa.h>
                        #include <openssl/bn.h>
                        #include <openssl/sha.h>
                        int main(void) 
                        {RSA *key; char seed[2048];memset(seed, 0,
sizeof(seed));
                        RAND_seed(seed,
sizeof(seed));key=RSA_generate_key(32,3,NULL,NULL);
                        return(key==NULL);}

configure:1954: gcc -o conftest -g -O2 -I/usr/include
-I/usr/local/openssl/include -I/usr/lib/openssl/include \ 
-I/usr/local/ssl/include -I/usr/lib/ssl/include -I/usr/local/include \
-I/usr/pkg/include -I/opt/include -I/opt/openssl/include   \
conftest.c -lnsl -lz  -lutil -L/opt/openssl -lcrypto 1>&5
configure:1944: ssl/rsa.h: No such file or directory
configure:1945: ssl/bn.h: No such file or directory
configure:1946: ssl/sha.h: No such file or directory
configure: failed program was:
#line 1942 "configure"
#include "confdefs.h"

                        #include <ssl/rsa.h>
                        #include <ssl/bn.h>
                        #include <ssl/sha.h>
                        int main(void) 
                        {RSA *key; char seed[2048];memset(seed, 0,
sizeof(seed));
                        RAND_seed(seed,
sizeof(seed));key=RSA_generate_key(32,3,NULL,NULL);
                        return(key==NULL);}



peter

peter stern                             Frontier Flying Service Inc.
Network Administrator                   5245 Airport Industrial Rd
907-474-1739 x249                       Fairbanks AK 99709


On Fri, 10 Mar 2000, Mate Wierdl wrote:

> On Fri, Mar 10, 2000 at 04:13:33PM -0600, Ben Lindstrom wrote:
> > 
> > Two Places..
> > 
> >                 LIBS="$saved_LIBS -L$ssldir"         
> >                 CFLAGS="$CFLAGS -I$ssldir/include"   
> >                 if test "x$need_dash_r" = "x1" ; then
> >                         LIBS="$LIBS -R$ssldir"       
> > 
> > both LIBS lines have to change.. as stated about 4 times on this
> > list now in the last few days.
> 
> OK.  Look at my configure lines
> 
> LDFLAGS="-L/space/local/lib" \
> LIBS="-L/space/local/lib" \
> CFLAGS="$RPM_OPT_FLAGS -I/space/local/include" \
> LD=/usr/ccs/bin/ld ./configure  --prefix=/space/local \
> 				--with-ssl-dir=/space/local/lib 
> 
> Nevertheless, I get, in config.log,:
> 
> configure:1918: gcc -o conftest -O2 -I/space/local/include
> -I/space/local/lib/incl
> ude  -L/usr/ucblib conftest.c -ldl -lsocket -lnsl -lz
> -L/space/local/lib -lpam -L/
> space/local/lib -R/space/local/lib -lcrypto 1>&5
> /space/local/lib/libcrypto.a(rsa_lib.o): In function `RSA_new_method':
> /space/local/src/redhat/BUILD/wierdlm/openssl-0.9.4/crypto/rsa/rsa_lib.c:109:
> unde
> fined reference to `RSA_PKCS1_RSAref'
> collect2: ld returned 1 exit status
> 
> So I think the problem is not not finding the libs.
> 
> Mate
> 







More information about the openssh-unix-dev mailing list