LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 12-13-2006, 04:32 PM   #1
digital14
LQ Newbie
 
Registered: Dec 2006
Posts: 3

Rep: Reputation: 0
OpenSSL & Compile Errors


Hello,
I am currently trying to compile openssl-0.9.8d and am having problems.
I am running Ubuntu 6.10 (Edgy) and have installed libcrypt, libssl-dev, Pearl 5 and so on. When I type 'make' in the source directory, the following errors are produced:

making all in crypto...
make[1]: Entering directory `/home/digital/Desktop/openssl-0.9.8d/crypto'
making all in crypto/objects...
make[2]: Entering directory `/home/digital/Desktop/openssl-0.9.8d/crypto/objects'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/digital/Desktop/openssl-0.9.8d/crypto/objects'
making all in crypto/md2...
make[2]: Entering directory `/home/digital/Desktop/openssl-0.9.8d/crypto/md2'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/digital/Desktop/openssl-0.9.8d/crypto/md2'
making all in crypto/md4...
make[2]: Entering directory `/home/digital/Desktop/openssl-0.9.8d/crypto/md4'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/digital/Desktop/openssl-0.9.8d/crypto/md4'
making all in crypto/md5...
make[2]: Entering directory `/home/digital/Desktop/openssl-0.9.8d/crypto/md5'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/digital/Desktop/openssl-0.9.8d/crypto/md5'
making all in crypto/sha...
make[2]: Entering directory `/home/digital/Desktop/openssl-0.9.8d/crypto/sha'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/digital/Desktop/openssl-0.9.8d/crypto/sha'
making all in crypto/hmac...
make[2]: Entering directory `/home/digital/Desktop/openssl-0.9.8d/crypto/hmac'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/digital/Desktop/openssl-0.9.8d/crypto/hmac'
making all in crypto/ripemd...
make[2]: Entering directory `/home/digital/Desktop/openssl-0.9.8d/crypto/ripemd'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/digital/Desktop/openssl-0.9.8d/crypto/ripemd'
making all in crypto/des...
make[2]: Entering directory `/home/digital/Desktop/openssl-0.9.8d/crypto/des'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/digital/Desktop/openssl-0.9.8d/crypto/des'
making all in crypto/aes...
make[2]: Entering directory `/home/digital/Desktop/openssl-0.9.8d/crypto/aes'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/digital/Desktop/openssl-0.9.8d/crypto/aes'
making all in crypto/rc2...
make[2]: Entering directory `/home/digital/Desktop/openssl-0.9.8d/crypto/rc2'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/digital/Desktop/openssl-0.9.8d/crypto/rc2'
making all in crypto/rc4...
make[2]: Entering directory `/home/digital/Desktop/openssl-0.9.8d/crypto/rc4'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/digital/Desktop/openssl-0.9.8d/crypto/rc4'
making all in crypto/idea...
make[2]: Entering directory `/home/digital/Desktop/openssl-0.9.8d/crypto/idea'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/digital/Desktop/openssl-0.9.8d/crypto/idea'
making all in crypto/bf...
make[2]: Entering directory `/home/digital/Desktop/openssl-0.9.8d/crypto/bf'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/digital/Desktop/openssl-0.9.8d/crypto/bf'
making all in crypto/cast...
make[2]: Entering directory `/home/digital/Desktop/openssl-0.9.8d/crypto/cast'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/digital/Desktop/openssl-0.9.8d/crypto/cast'
making all in crypto/bn...
make[2]: Entering directory `/home/digital/Desktop/openssl-0.9.8d/crypto/bn'
cc -I.. -I../.. -I../../include -O -c -o bn_prime.o bn_prime.c
bn_prime.c: In function ‘BN_is_prime_fasttest_ex’:
bn_prime.c:265: error: ‘NUMPRIMES’ undeclared (first use in this function)
bn_prime.c:265: error: (Each undeclared identifier is reported only once
bn_prime.c:265: error: for each function it appears in.)
bn_prime.c:266: error: ‘primes’ undeclared (first use in this function)
bn_prime.c: In function ‘probable_prime’:
bn_prime.c:380: error: ‘NUMPRIMES’ undeclared (first use in this function)
bn_prime.c:387: error: ‘primes’ undeclared (first use in this function)
bn_prime.c: In function ‘probable_prime_dh’:
bn_prime.c:428: error: ‘NUMPRIMES’ undeclared (first use in this function)
bn_prime.c:431: error: ‘primes’ undeclared (first use in this function)
bn_prime.c: In function ‘probable_prime_dh_safe’:
bn_prime.c:476: error: ‘NUMPRIMES’ undeclared (first use in this function)
bn_prime.c:481: error: ‘primes’ undeclared (first use in this function)
make[2]: *** [bn_prime.o] Error 1
make[2]: Leaving directory `/home/digital/Desktop/openssl-0.9.8d/crypto/bn'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/home/digital/Desktop/openssl-0.9.8d/crypto'
make: *** [build_crypto] Error 1

I have googled this for some time now and cannot find a solution. Any help would be greatly appreciated.
 
Old 12-14-2006, 10:41 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
You are either missing crypto/bn/bn_prime.h wherein NUMPRIMES is defined or bn_prime.h is borked. This header is created by a Perl script aptly named bn_prime.h during the compile. If the header isn't there, you can manually generate it before compiling SSL.
Code:
perl crypto/bn/bn_prime.pl >bn_prime.h
 
Old 12-14-2006, 11:54 AM   #3
digital14
LQ Newbie
 
Registered: Dec 2006
Posts: 3

Original Poster
Rep: Reputation: 0
I tried the following command:

perl crypto/bn/bn_prime.pl >bn_prime.h

and am still receiving the same errors; here is a list of the following files in openssl-0.9.8d/crypto/bn directory.

openssl-0.9.8d/crypto/bn/asm
openssl-0.9.8d/crypto/bn/bn.h
openssl-0.9.8d/crypto/bn/bn.mul
openssl-0.9.8d/crypto/bn/bn_add.c
openssl-0.9.8d/crypto/bn/bn_add.o
openssl-0.9.8d/crypto/bn/bn_asm.c
openssl-0.9.8d/crypto/bn/bn_blind.c
openssl-0.9.8d/crypto/bn/bn_blind.o
openssl-0.9.8d/crypto/bn/bn_const.c
openssl-0.9.8d/crypto/bn/bn_ctx.c
openssl-0.9.8d/crypto/bn/bn_ctx.o
openssl-0.9.8d/crypto/bn/bn_depr.c
openssl-0.9.8d/crypto/bn/bn_div.c
openssl-0.9.8d/crypto/bn/bn_div.o
openssl-0.9.8d/crypto/bn/bn_err.c
openssl-0.9.8d/crypto/bn/bn_exp.c
openssl-0.9.8d/crypto/bn/bn_exp.o
openssl-0.9.8d/crypto/bn/bn_exp2.c
openssl-0.9.8d/crypto/bn/bn_gcd.c
openssl-0.9.8d/crypto/bn/bn_gcd.o
openssl-0.9.8d/crypto/bn/bn_gf2m.c
openssl-0.9.8d/crypto/bn/bn_kron.c
openssl-0.9.8d/crypto/bn/bn_kron.o
openssl-0.9.8d/crypto/bn/bn_lcl.h
openssl-0.9.8d/crypto/bn/bn_lib.c
openssl-0.9.8d/crypto/bn/bn_lib.o
openssl-0.9.8d/crypto/bn/bn_mod.c
openssl-0.9.8d/crypto/bn/bn_mod.o
openssl-0.9.8d/crypto/bn/bn_mont.c
openssl-0.9.8d/crypto/bn/bn_mpi.c
openssl-0.9.8d/crypto/bn/bn_mul.c
openssl-0.9.8d/crypto/bn/bn_mul.o
openssl-0.9.8d/crypto/bn/bn_nist.c
openssl-0.9.8d/crypto/bn/bn_prime.c
openssl-0.9.8d/crypto/bn/bn_prime.h
openssl-0.9.8d/crypto/bn/bn_prime.pl
openssl-0.9.8d/crypto/bn/bn_print.c
openssl-0.9.8d/crypto/bn/bn_print.o
openssl-0.9.8d/crypto/bn/bn_rand.c
openssl-0.9.8d/crypto/bn/bn_rand.o
openssl-0.9.8d/crypto/bn/bn_recp.c
openssl-0.9.8d/crypto/bn/bn_shift.c
openssl-0.9.8d/crypto/bn/bn_shift.o
openssl-0.9.8d/crypto/bn/bnspeed.c
openssl-0.9.8d/crypto/bn/bn_sqr.c
openssl-0.9.8d/crypto/bn/bn_sqrt.c
openssl-0.9.8d/crypto/bn/bn_sqrt.o
openssl-0.9.8d/crypto/bn/bntest.c
openssl-0.9.8d/crypto/bn/bn_word.c
openssl-0.9.8d/crypto/bn/bn_word.o
openssl-0.9.8d/crypto/bn/divtest.c
openssl-0.9.8d/crypto/bn/exp.c
openssl-0.9.8d/crypto/bn/expspeed.c
openssl-0.9.8d/crypto/bn/exptest.c
openssl-0.9.8d/crypto/bn/Makefile
openssl-0.9.8d/crypto/bn/todo
openssl-0.9.8d/crypto/bn/vms-helper.c
 
Old 12-14-2006, 12:32 PM   #4
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
Sometimes it's difficult to troubleshoot when you don't get the same problem. Earlier, I wasn't getting your error. I finally was able to reproduce your problem. The Perl script generated an empty file bn_prime.h when I ran it from the top of the source tree.

Try this as it just worked for me.
Code:
make clean
cd crypto/bn
rm -f bn_prime.h
perl bn_prime.pl >bn_prime.h
cd ../../
The header should be about 15k in size. It defines NUMPRIMES and then has a couple of lists of prime numbers. If that looks good, then try the compile again.

BTW, did you run the config script or are you OK with the defaults.
 
Old 12-17-2006, 10:58 PM   #5
digital14
LQ Newbie
 
Registered: Dec 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Ok...the second thread posted seem to work...I made it through the 'make' phase. However, when I type 'make install' I receive the following errors: ...

../libcrypto.a(bn_asm.o):bn_asm.c.text+0x1ff): first defined here
/usr/bin/ld: Warning: size of symbol `bn_mul_words' changed from 453 in ../libcrypto.a(bn_asm.o) to 320 in ../libcrypto.a(bn86-elf.o)
../libcrypto.a(bn86-elf.o): In function `bn_sqr_words':
bn-586.s.text+0x3f0): multiple definition of `bn_sqr_words'
../libcrypto.a(bn_asm.o):bn_asm.c.text+0x3c4): first defined here
/usr/bin/ld: Warning: size of symbol `bn_sqr_words' changed from 261 in ../libcrypto.a(bn_asm.o) to 225 in ../libcrypto.a(bn86-elf.o)
../libcrypto.a(bn86-elf.o): In function `bn_div_words':
bn-586.s.text+0x4e0): multiple definition of `bn_div_words'
../libcrypto.a(bn_asm.o):bn_asm.c.text+0x4407): first defined here
/usr/bin/ld: Warning: size of symbol `bn_div_words' changed from 333 in ../libcrypto.a(bn_asm.o) to 23 in ../libcrypto.a(bn86-elf.o)
../libcrypto.a(bn86-elf.o): In function `bn_add_words':
bn-586.s.text+0x500): multiple definition of `bn_add_words'
../libcrypto.a(bn_asm.o):bn_asm.c.text+0x4c9): first defined here
/usr/bin/ld: Warning: size of symbol `bn_add_words' changed from 261 in ../libcrypto.a(bn_asm.o) to 428 in ../libcrypto.a(bn86-elf.o)
../libcrypto.a(bn86-elf.o): In function `bn_sub_words':
bn-586.s.text+0x6b0): multiple definition of `bn_sub_words'
../libcrypto.a(bn_asm.o):bn_asm.c.text+0x5ce): first defined here
/usr/bin/ld: Warning: size of symbol `bn_sub_words' changed from 226 in ../libcrypto.a(bn_asm.o) to 428 in ../libcrypto.a(bn86-elf.o)
collect2: ld returned 1 exit status
make[2]: *** [link_app.] Error 1
make[2]: Leaving directory `/home/digital/Desktop/openssl-0.9.8d/apps'
make[1]: *** [openssl] Error 2
make[1]: Leaving directory `/home/digital/Desktop/openssl-0.9.8d/apps'
make: *** [build_apps] Error 1

I can't seem to install the package completely. BTW, thanks for the help Arow, and sorry I haven't replied sooner.
 
Old 10-08-2007, 10:51 AM   #6
e_puck
LQ Newbie
 
Registered: Oct 2007
Posts: 1

Rep: Reputation: 0
I suppose that means that openssl is already installed on your system! I get the same errors on centOS and I'm going to blame it on 'yum'. I swear that neat little package handler will death of me.
 
Old 03-04-2008, 08:01 AM   #7
salimsaay
LQ Newbie
 
Registered: Mar 2008
Posts: 2

Rep: Reputation: 0
Thumbs down Openssl with SDK

Quote:
Originally Posted by weibullguy View Post
Sometimes it's difficult to troubleshoot when you don't get the same problem. Earlier, I wasn't getting your error. I finally was able to reproduce your problem. The Perl script generated an empty file bn_prime.h when I ran it from the top of the source tree.

Try this as it just worked for me.
Code:
make clean
cd crypto/bn
rm -f bn_prime.h
perl bn_prime.pl >bn_prime.h
cd ../../
The header should be about 15k in size. It defines NUMPRIMES and then has a couple of lists of prime numbers. If that looks good, then try the compile again.

BTW, did you run the config script or are you OK with the defaults.
Hello to all,
I am using SDK for cross-compiling OpenSSL to Wrt54gl wireless router, i face to the same problem, when i run the openssl-0-9-8d i see the same error, then i downlowded the latest version of openssl( openssl-0.9.8g.tar.gz) with this one also i face to problem,i see this error,
make[1]: Nothing to be done for `all'.

the following is all process:
make[1]: Leaving directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/crypto'
making all in ssl...
make[1]: Entering directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/ssl'
cc -I../crypto -I.. -I../include -O -c -o s2_meth.o s2_meth.c
cc -I../crypto -I.. -I../include -O -c -o s2_srvr.o s2_srvr.c
cc -I../crypto -I.. -I../include -O -c -o s2_clnt.o s2_clnt.c
cc -I../crypto -I.. -I../include -O -c -o s2_lib.o s2_lib.c
cc -I../crypto -I.. -I../include -O -c -o bio_ssl.o bio_ssl.c
cc -I../crypto -I.. -I../include -O -c -o ssl_err.o ssl_err.c
cc -I../crypto -I.. -I../include -O -c -o kssl.o kssl.c
ar r ../libssl.a s2_meth.o s2_srvr.o s2_clnt.o s2_lib.o s2_enc.o s2_pkt.o s3_meth.o s3_srvr.o s3_clnt.o s3_lib.o s3_enc.o s3_pkt.o s3_both.o s23_meth.o s23_srvr.o s23_clnt.o s23_lib.o s23_pkt.o t1_meth.o t1_srvr.o t1_clnt.o t1_lib.o t1_enc.o d1_meth.o d1_srvr.o d1_clnt.o d1_lib.o d1_pkt.o d1_both.o d1_enc.o ssl_lib.o ssl_err2.o ssl_cert.o ssl_sess.o ssl_ciph.o ssl_stat.o ssl_rsa.o ssl_asn1.o ssl_txt.o ssl_algs.o bio_ssl.o ssl_err.o kssl.o
ar: creating ../libssl.a
/usr/bin/ranlib ../libssl.a || echo Never mind.
if [ -n "" ]; then \
(cd ..; make libssl); \
fi
make[1]: Leaving directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/ssl'
making all in engines...
make[1]: Entering directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/engines'
cc -I../include -O -c -o e_4758cca.o e_4758cca.c
cc -I../include -O -c -o e_aep.o e_aep.c
cc -I../include -O -c -o e_atalla.o e_atalla.c
cc -I../include -O -c -o e_cswift.o e_cswift.c
cc -I../include -O -c -o e_gmp.o e_gmp.c
cc -I../include -O -c -o e_chil.o e_chil.c
cc -I../include -O -c -o e_nuron.o e_nuron.c
cc -I../include -O -c -o e_sureware.o e_sureware.c
cc -I../include -O -c -o e_ubsec.o e_ubsec.c
make[1]: Leaving directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/engines'
making all in apps...
make[1]: Entering directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/apps'
cc -DMONOLITH -I.. -I../include -O -c -o verify.o verify.c
cc -DMONOLITH -I.. -I../include -O -c -o asn1pars.o asn1pars.c
cc -DMONOLITH -I.. -I../include -O -c -o req.o req.c
cc -DMONOLITH -I.. -I../include -O -c -o dgst.o dgst.c
cc -DMONOLITH -I.. -I../include -O -c -o dh.o dh.c
cc -DMONOLITH -I.. -I../include -O -c -o dhparam.o dhparam.c
cc -DMONOLITH -I.. -I../include -O -c -o enc.o enc.c
cc -DMONOLITH -I.. -I../include -O -c -o passwd.o passwd.c
cc -DMONOLITH -I.. -I../include -O -c -o gendh.o gendh.c
cc -DMONOLITH -I.. -I../include -O -c -o errstr.o errstr.c
cc -DMONOLITH -I.. -I../include -O -c -o engine.o engine.c
cc -DMONOLITH -I.. -I../include -O -c -o ocsp.o ocsp.c
cc -DMONOLITH -I.. -I../include -O -c -o prime.o prime.c
cc -DMONOLITH -I.. -I../include -O -c -o openssl.o openssl.c
rm -f openssl
shlib_target=; if [ -n "" ]; then \
shlib_target=""; \
fi; \
LIBRARIES="-L.. -lssl -L.. -lcrypto" ; \
make -f ../Makefile.shared -e \
APPNAME=openssl OBJECTS="openssl.o verify.o asn1pars.o req.o dgst.o dh.o dhparam.o enc.o passwd.o gendh.o errstr.o ca.o pkcs7.o crl2p7.o crl.o rsa.o rsautl.o dsa.o dsaparam.o ec.o ecparam.o x509.o genrsa.o gendsa.o s_server.o s_client.o speed.o s_time.o apps.o s_cb.o s_socket.o app_rand.o version.o sess_id.o ciphers.o nseq.o pkcs12.o pkcs8.o spkac.o smime.o rand.o engine.o ocsp.o prime.o" \
LIBDEPS=" $LIBRARIES " \
link_app.${shlib_target}
make[2]: Entering directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/apps'
( :; LIBDEPS="${LIBDEPS:--L.. -lssl -L.. -lcrypto }"; LDCMD="${LDCMD:-cc}"; LDFLAGS="${LDFLAGS:--O}"; LIBPATH=`for x in $LIBDEPS; do if echo $x | grep '^ *-L' > /dev/null 2>&1; then echo $x | sed -e 's/^ *-L//'; fi; done | uniq`; LIBPATH=`echo $LIBPATH | sed -e 's/ /:/g'`; LD_LIBRARY_PATH=$LIBPATH:$LD_LIBRARY_PATH ${LDCMD} ${LDFLAGS} -o ${APPNAME:=openssl} openssl.o verify.o asn1pars.o req.o dgst.o dh.o dhparam.o enc.o passwd.o gendh.o errstr.o ca.o pkcs7.o crl2p7.o crl.o rsa.o rsautl.o dsa.o dsaparam.o ec.o ecparam.o x509.o genrsa.o gendsa.o s_server.o s_client.o speed.o s_time.o apps.o s_cb.o s_socket.o app_rand.o version.o sess_id.o ciphers.o nseq.o pkcs12.o pkcs8.o spkac.o smime.o rand.o engine.o ocsp.o prime.o ${LIBDEPS} )
make[2]: Leaving directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/apps'
(cd ..; \
OPENSSL="`pwd`/util/opensslwrap.sh"; export OPENSSL; \
/usr/bin/perl tools/c_rehash certs)
Doing certs
aoltw1.pem => 0dbd0096.0
thawteCp.pem => c33a80d4.0
eng3.pem => 878cf4c6.0
thawteCb.pem => ddc328ff.0
vsignss.pem => f73e89fd.0
eng1.pem => 7a9820c1.0
argeng.pem => aad3d04d.0
make[1]: Leaving directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/apps'
making all in test...
make[1]: Entering directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/test'
cc -I.. -I../include -O -c -o bntest.o bntest.c
`/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/test'
( :; LIBDEPS="${LIBDEPS:--L.. -lssl -L.. -lcrypto }"; LDCMD="${LDCMD:-cc}"; LDFLAGS="${LDFLAGS:--O}"; LIBPATH=`for x in $LIBDEPS; do if echo $x | grep '^ *-L' > /dev/null 2>&1; then echo $x | sed -e 's/^ *-L//'; fi; done | uniq`; LIBPATH=`echo $LIBPATH | sed -e 's/ /:/g'`; LD_LIBRARY_PATH=$LIBPATH:$LD_LIBRARY_PATH ${LDCMD} ${LDFLAGS} -o ${APPNAME:=sha1test} sha1test.o ${LIBDEPS} )
make[2]: Leaving directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/test'
cc -I.. -I../include -O -c -o sha256t.o sha256t.c
make[2]: Entering directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/test'
( :; LIBDEPS="${LIBDEPS:--L.. -lssl -L.. -lcrypto }"; LDCMD="${LDCMD:-cc}"; LDFLAGS="${LDFLAGS:--O}"; LIBPATH=`for x in $LIBDEPS; do if echo $x | grep '^ *-L' > /dev/null 2>&1; then echo $x | sed -e 's/^ *-L//'; fi; done | uniq`; LIBPATH=`echo $LIBPATH | sed -e 's/ /:/g'`; LD_LIBRARY_PATH=$LIBPATH:$LD_LIBRARY_PATH ${LDCMD} ${LDFLAGS} -o ${APPNAME:=dhtest} dhtest.o ${LIBDEPS} )
make[2]: Leaving directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/test'
cc -I.. -I../include -O -c -o enginetest.o enginetest.c

make[2]: Entering directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/test'
( :; LIBDEPS="${LIBDEPS:--L.. -lssl -L.. -lcrypto }"; LDCMD="${LDCMD:-cc}"; LDFLAGS="${LDFLAGS:--O}"; LIBPATH=`for x in $LIBDEPS; do if echo $x | grep '^ *-L' > /dev/null 2>&1; then echo $x | sed -e 's/^ *-L//'; fi; done | uniq`; LIBPATH=`echo $LIBPATH | sed -e 's/ /:/g'`; LD_LIBRARY_PATH=$LIBPATH:$LD_LIBRARY_PATH ${LDCMD} ${LDFLAGS} -o ${APPNAME:=ssltest} ssltest.o ${LIBDEPS} )
make[2]: Leaving directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/test'
cc -I.. -I../include -O -c -o exptest.o exptest.c
make[2]: Leaving directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/test'
cc -I.. -I../include -O -c -o rsa_test.o rsa_test.c
make[2]: Entering directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/test'
( :; LIBDEPS="${LIBDEPS:--L.. -lssl -L.. -lcrypto }"; LDCMD="${LDCMD:-cc}"; LDFLAGS="${LDFLAGS:--O}"; LIBPATH=`for x in $LIBDEPS; do if echo $x | grep '^ *-L' > /dev/null 2>&1; then echo $x | sed -e 's/^ *-L//'; fi; done | uniq`; LIBPATH=`echo $LIBPATH | sed -e 's/ /:/g'`; LD_LIBRARY_PATH=$LIBPATH:$LD_LIBRARY_PATH ${LDCMD} ${LDFLAGS} -o ${APPNAME:=rsa_test} rsa_test.o ${LIBDEPS} )
make[2]: Leaving directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/test'
cc -I.. -I../include -O -c -o evp_test.o evp_test.c
make[2]: Entering directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/test'
( :; LIBDEPS="${LIBDEPS:--L.. -lssl -L.. -lcrypto }"; LDCMD="${LDCMD:-cc}"; LDFLAGS="${LDFLAGS:--O}"; LIBPATH=`for x in $LIBDEPS; do if echo $x | grep '^ *-L' > /dev/null 2>&1; then echo $x | sed -e 's/^ *-L//'; fi; done | uniq`; LIBPATH=`echo $LIBPATH | sed -e 's/ /:/g'`; LD_LIBRARY_PATH=$LIBPATH:$LD_LIBRARY_PATH ${LDCMD} ${LDFLAGS} -o ${APPNAME:=evp_test} evp_test.o ${LIBDEPS} )
make[2]: Leaving directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/test'
cc -I.. -I../include -O -c -o igetest.o igetest.c
make[2]: Entering directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/test'
( :; LIBDEPS="${LIBDEPS:--L.. -lssl -L.. -lcrypto }"; LDCMD="${LDCMD:-cc}"; LDFLAGS="${LDFLAGS:--O}"; LIBPATH=`for x in $LIBDEPS; do if echo $x | grep '^ *-L' > /dev/null 2>&1; then echo $x | sed -e 's/^ *-L//'; fi; done | uniq`; LIBPATH=`echo $LIBPATH | sed -e 's/ /:/g'`; LD_LIBRARY_PATH=$LIBPATH:$LD_LIBRARY_PATH ${LDCMD} ${LDFLAGS} -o ${APPNAME:=dummytest} dummytest.o ${LIBDEPS} )
make[2]: Leaving directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/test'
make[1]: Leaving directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/test'
making all in tools...
make[1]: Entering directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/tools'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/tools'
[salimsaay@salims openssl-0.9.8g]$
is please some one to help me ?
 
Old 03-10-2008, 04:50 AM   #8
salimsaay
LQ Newbie
 
Registered: Mar 2008
Posts: 2

Rep: Reputation: 0
Makefile

Hey i find the problem, of Openssl compiling with SDK, you need to change the Make file, path, version of packet, and name of packets that are in side of package

Best regards


Quote:
Originally Posted by salimsaay View Post
Hello to all,
I am using SDK for cross-compiling OpenSSL to Wrt54gl wireless router, i face to the same problem, when i run the openssl-0-9-8d i see the same error, then i downlowded the latest version of openssl( openssl-0.9.8g.tar.gz) with this one also i face to problem,i see this error,
make[1]: Nothing to be done for `all'.

the following is all process:
make[1]: Leaving directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/crypto'
making all in ssl...
make[1]: Entering directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/ssl'
cc -I../crypto -I.. -I../include -O -c -o s2_meth.o s2_meth.c
cc -I../crypto -I.. -I../include -O -c -o s2_srvr.o s2_srvr.c
cc -I../crypto -I.. -I../include -O -c -o s2_clnt.o s2_clnt.c
cc -I../crypto -I.. -I../include -O -c -o s2_lib.o s2_lib.c
cc -I../crypto -I.. -I../include -O -c -o bio_ssl.o bio_ssl.c
cc -I../crypto -I.. -I../include -O -c -o ssl_err.o ssl_err.c
cc -I../crypto -I.. -I../include -O -c -o kssl.o kssl.c
ar r ../libssl.a s2_meth.o s2_srvr.o s2_clnt.o s2_lib.o s2_enc.o s2_pkt.o s3_meth.o s3_srvr.o s3_clnt.o s3_lib.o s3_enc.o s3_pkt.o s3_both.o s23_meth.o s23_srvr.o s23_clnt.o s23_lib.o s23_pkt.o t1_meth.o t1_srvr.o t1_clnt.o t1_lib.o t1_enc.o d1_meth.o d1_srvr.o d1_clnt.o d1_lib.o d1_pkt.o d1_both.o d1_enc.o ssl_lib.o ssl_err2.o ssl_cert.o ssl_sess.o ssl_ciph.o ssl_stat.o ssl_rsa.o ssl_asn1.o ssl_txt.o ssl_algs.o bio_ssl.o ssl_err.o kssl.o
ar: creating ../libssl.a
/usr/bin/ranlib ../libssl.a || echo Never mind.
if [ -n "" ]; then \
(cd ..; make libssl); \
fi
make[1]: Leaving directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/ssl'
making all in engines...
make[1]: Entering directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/engines'
cc -I../include -O -c -o e_4758cca.o e_4758cca.c
cc -I../include -O -c -o e_aep.o e_aep.c
cc -I../include -O -c -o e_atalla.o e_atalla.c
cc -I../include -O -c -o e_cswift.o e_cswift.c
cc -I../include -O -c -o e_gmp.o e_gmp.c
cc -I../include -O -c -o e_chil.o e_chil.c
cc -I../include -O -c -o e_nuron.o e_nuron.c
cc -I../include -O -c -o e_sureware.o e_sureware.c
cc -I../include -O -c -o e_ubsec.o e_ubsec.c
make[1]: Leaving directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/engines'
making all in apps...
make[1]: Entering directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/apps'
cc -DMONOLITH -I.. -I../include -O -c -o verify.o verify.c
cc -DMONOLITH -I.. -I../include -O -c -o asn1pars.o asn1pars.c
cc -DMONOLITH -I.. -I../include -O -c -o req.o req.c
cc -DMONOLITH -I.. -I../include -O -c -o dgst.o dgst.c
cc -DMONOLITH -I.. -I../include -O -c -o dh.o dh.c
cc -DMONOLITH -I.. -I../include -O -c -o dhparam.o dhparam.c
cc -DMONOLITH -I.. -I../include -O -c -o enc.o enc.c
cc -DMONOLITH -I.. -I../include -O -c -o passwd.o passwd.c
cc -DMONOLITH -I.. -I../include -O -c -o gendh.o gendh.c
cc -DMONOLITH -I.. -I../include -O -c -o errstr.o errstr.c
cc -DMONOLITH -I.. -I../include -O -c -o engine.o engine.c
cc -DMONOLITH -I.. -I../include -O -c -o ocsp.o ocsp.c
cc -DMONOLITH -I.. -I../include -O -c -o prime.o prime.c
cc -DMONOLITH -I.. -I../include -O -c -o openssl.o openssl.c
rm -f openssl
shlib_target=; if [ -n "" ]; then \
shlib_target=""; \
fi; \
LIBRARIES="-L.. -lssl -L.. -lcrypto" ; \
make -f ../Makefile.shared -e \
APPNAME=openssl OBJECTS="openssl.o verify.o asn1pars.o req.o dgst.o dh.o dhparam.o enc.o passwd.o gendh.o errstr.o ca.o pkcs7.o crl2p7.o crl.o rsa.o rsautl.o dsa.o dsaparam.o ec.o ecparam.o x509.o genrsa.o gendsa.o s_server.o s_client.o speed.o s_time.o apps.o s_cb.o s_socket.o app_rand.o version.o sess_id.o ciphers.o nseq.o pkcs12.o pkcs8.o spkac.o smime.o rand.o engine.o ocsp.o prime.o" \
LIBDEPS=" $LIBRARIES " \
link_app.${shlib_target}
make[2]: Entering directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/apps'
( :; LIBDEPS="${LIBDEPS:--L.. -lssl -L.. -lcrypto }"; LDCMD="${LDCMD:-cc}"; LDFLAGS="${LDFLAGS:--O}"; LIBPATH=`for x in $LIBDEPS; do if echo $x | grep '^ *-L' > /dev/null 2>&1; then echo $x | sed -e 's/^ *-L//'; fi; done | uniq`; LIBPATH=`echo $LIBPATH | sed -e 's/ /:/g'`; LD_LIBRARY_PATH=$LIBPATH:$LD_LIBRARY_PATH ${LDCMD} ${LDFLAGS} -o ${APPNAME:=openssl} openssl.o verify.o asn1pars.o req.o dgst.o dh.o dhparam.o enc.o passwd.o gendh.o errstr.o ca.o pkcs7.o crl2p7.o crl.o rsa.o rsautl.o dsa.o dsaparam.o ec.o ecparam.o x509.o genrsa.o gendsa.o s_server.o s_client.o speed.o s_time.o apps.o s_cb.o s_socket.o app_rand.o version.o sess_id.o ciphers.o nseq.o pkcs12.o pkcs8.o spkac.o smime.o rand.o engine.o ocsp.o prime.o ${LIBDEPS} )
make[2]: Leaving directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/apps'
(cd ..; \
OPENSSL="`pwd`/util/opensslwrap.sh"; export OPENSSL; \
/usr/bin/perl tools/c_rehash certs)
Doing certs
aoltw1.pem => 0dbd0096.0
thawteCp.pem => c33a80d4.0
eng3.pem => 878cf4c6.0
thawteCb.pem => ddc328ff.0
vsignss.pem => f73e89fd.0
eng1.pem => 7a9820c1.0
argeng.pem => aad3d04d.0
make[1]: Leaving directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/apps'
making all in test...
make[1]: Entering directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/test'
cc -I.. -I../include -O -c -o bntest.o bntest.c
`/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/test'
( :; LIBDEPS="${LIBDEPS:--L.. -lssl -L.. -lcrypto }"; LDCMD="${LDCMD:-cc}"; LDFLAGS="${LDFLAGS:--O}"; LIBPATH=`for x in $LIBDEPS; do if echo $x | grep '^ *-L' > /dev/null 2>&1; then echo $x | sed -e 's/^ *-L//'; fi; done | uniq`; LIBPATH=`echo $LIBPATH | sed -e 's/ /:/g'`; LD_LIBRARY_PATH=$LIBPATH:$LD_LIBRARY_PATH ${LDCMD} ${LDFLAGS} -o ${APPNAME:=sha1test} sha1test.o ${LIBDEPS} )
make[2]: Leaving directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/test'
cc -I.. -I../include -O -c -o sha256t.o sha256t.c
make[2]: Entering directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/test'
( :; LIBDEPS="${LIBDEPS:--L.. -lssl -L.. -lcrypto }"; LDCMD="${LDCMD:-cc}"; LDFLAGS="${LDFLAGS:--O}"; LIBPATH=`for x in $LIBDEPS; do if echo $x | grep '^ *-L' > /dev/null 2>&1; then echo $x | sed -e 's/^ *-L//'; fi; done | uniq`; LIBPATH=`echo $LIBPATH | sed -e 's/ /:/g'`; LD_LIBRARY_PATH=$LIBPATH:$LD_LIBRARY_PATH ${LDCMD} ${LDFLAGS} -o ${APPNAME:=dhtest} dhtest.o ${LIBDEPS} )
make[2]: Leaving directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/test'
cc -I.. -I../include -O -c -o enginetest.o enginetest.c

make[2]: Entering directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/test'
( :; LIBDEPS="${LIBDEPS:--L.. -lssl -L.. -lcrypto }"; LDCMD="${LDCMD:-cc}"; LDFLAGS="${LDFLAGS:--O}"; LIBPATH=`for x in $LIBDEPS; do if echo $x | grep '^ *-L' > /dev/null 2>&1; then echo $x | sed -e 's/^ *-L//'; fi; done | uniq`; LIBPATH=`echo $LIBPATH | sed -e 's/ /:/g'`; LD_LIBRARY_PATH=$LIBPATH:$LD_LIBRARY_PATH ${LDCMD} ${LDFLAGS} -o ${APPNAME:=ssltest} ssltest.o ${LIBDEPS} )
make[2]: Leaving directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/test'
cc -I.. -I../include -O -c -o exptest.o exptest.c
make[2]: Leaving directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/test'
cc -I.. -I../include -O -c -o rsa_test.o rsa_test.c
make[2]: Entering directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/test'
( :; LIBDEPS="${LIBDEPS:--L.. -lssl -L.. -lcrypto }"; LDCMD="${LDCMD:-cc}"; LDFLAGS="${LDFLAGS:--O}"; LIBPATH=`for x in $LIBDEPS; do if echo $x | grep '^ *-L' > /dev/null 2>&1; then echo $x | sed -e 's/^ *-L//'; fi; done | uniq`; LIBPATH=`echo $LIBPATH | sed -e 's/ /:/g'`; LD_LIBRARY_PATH=$LIBPATH:$LD_LIBRARY_PATH ${LDCMD} ${LDFLAGS} -o ${APPNAME:=rsa_test} rsa_test.o ${LIBDEPS} )
make[2]: Leaving directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/test'
cc -I.. -I../include -O -c -o evp_test.o evp_test.c
make[2]: Entering directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/test'
( :; LIBDEPS="${LIBDEPS:--L.. -lssl -L.. -lcrypto }"; LDCMD="${LDCMD:-cc}"; LDFLAGS="${LDFLAGS:--O}"; LIBPATH=`for x in $LIBDEPS; do if echo $x | grep '^ *-L' > /dev/null 2>&1; then echo $x | sed -e 's/^ *-L//'; fi; done | uniq`; LIBPATH=`echo $LIBPATH | sed -e 's/ /:/g'`; LD_LIBRARY_PATH=$LIBPATH:$LD_LIBRARY_PATH ${LDCMD} ${LDFLAGS} -o ${APPNAME:=evp_test} evp_test.o ${LIBDEPS} )
make[2]: Leaving directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/test'
cc -I.. -I../include -O -c -o igetest.o igetest.c
make[2]: Entering directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/test'
( :; LIBDEPS="${LIBDEPS:--L.. -lssl -L.. -lcrypto }"; LDCMD="${LDCMD:-cc}"; LDFLAGS="${LDFLAGS:--O}"; LIBPATH=`for x in $LIBDEPS; do if echo $x | grep '^ *-L' > /dev/null 2>&1; then echo $x | sed -e 's/^ *-L//'; fi; done | uniq`; LIBPATH=`echo $LIBPATH | sed -e 's/ /:/g'`; LD_LIBRARY_PATH=$LIBPATH:$LD_LIBRARY_PATH ${LDCMD} ${LDFLAGS} -o ${APPNAME:=dummytest} dummytest.o ${LIBDEPS} )
make[2]: Leaving directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/test'
make[1]: Leaving directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/test'
making all in tools...
make[1]: Entering directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/tools'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/salimsaay/OpenWrt-SDK-Linux-i686-1/package/openssl-0.9.8g/tools'
[salimsaay@salims openssl-0.9.8g]$
is please some one to help me ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PostgreSQL and openssl don't compile right zecster Linux - Software 1 04-18-2006 10:48 PM
Traceroute 1.4a12 - Configure Errors & Compile War aztrix Linux - Software 0 10-17-2005 03:28 PM
OpenSSL make errors ridertech Linux - Newbie 3 02-07-2004 05:28 PM
compile php with openssl problem rmang Linux - Software 1 01-23-2004 09:14 AM
Apache Openssl compile fails rioguia Linux - Software 2 11-07-2003 08:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 07:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration