--------------------------------------------------
debian:/home/amir/Net-DNS-SEC-0.15# perl Makefile.PL
Warning: prerequisite Crypt::OpenSSL::Bignum 0.03 not found.
Warning: prerequisite Crypt::OpenSSL::DSA 0.1 not found.
Warning: prerequisite Crypt::OpenSSL::RSA 0.19 not found.
Writing Makefile for Net::DNS::SEC
I need to install all the dependencies.
Solution
======
sudo apt-get install libssl-dev
sudo perl -MCPAN -e "Crypt::OpenSSL::Bignum"
Below is the problem
==============
cpan[1]> install Crypt::OpenSSL::Bignum
CPAN: Storable loaded ok (v2.15)
Going to read '/root/.cpan/Metadata'
Database was generated on Fri, 23 Oct 2009 11:27:06 GMT
Running install for module 'Crypt::OpenSSL::Bignum'
Running make for I/IR/IROBERTS/Crypt-OpenSSL-Bignum-0.04.tar.gz
CPAN: Digest::SHA loaded ok (v5.47)
CPAN: Compress::Zlib loaded ok (v2.022)
Checksum for /root/.cpan/sources/authors/id/I/IR/IROBERTS/Crypt-OpenSSL-Bignum-0.04.tar.gz ok
Scanning cache /root/.cpan/build for sizes
............................................................................DONE
CPAN: Archive::Tar loaded ok (v1.54)
Crypt-OpenSSL-Bignum-0.04/
Crypt-OpenSSL-Bignum-0.04/Bignum/
Crypt-OpenSSL-Bignum-0.04/Bignum/CTX.pm
Crypt-OpenSSL-Bignum-0.04/LICENSE
Crypt-OpenSSL-Bignum-0.04/README
Crypt-OpenSSL-Bignum-0.04/Changes
Crypt-OpenSSL-Bignum-0.04/test.pl
Crypt-OpenSSL-Bignum-0.04/Makefile.PL
Crypt-OpenSSL-Bignum-0.04/META.yml
Crypt-OpenSSL-Bignum-0.04/typemap
Crypt-OpenSSL-Bignum-0.04/Bignum.pm
Crypt-OpenSSL-Bignum-0.04/Bignum.xs
Crypt-OpenSSL-Bignum-0.04/MANIFEST
CPAN: File::Temp loaded ok (v0.22)
CPAN: YAML loaded ok (v0.70)
CPAN.pm: Going to build I/IR/IROBERTS/Crypt-OpenSSL-Bignum-0.04.tar.gz
Checking if your kit is complete...
Looks good
Writing Makefile for Crypt::OpenSSL::Bignum
cp Bignum.pm blib/lib/Crypt/OpenSSL/Bignum.pm
cp Bignum/CTX.pm blib/lib/Crypt/OpenSSL/Bignum/CTX.pm
/usr/bin/perl /usr/share/perl/5.8/ExtUtils/xsubpp -typemap /usr/share/perl/5.8/ExtUtils/typemap -typemap typemap Bignum.xs > Bignum.xsc && mv Bignum.xsc Bignum.c
cc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"0.04\" -DXS_VERSION=\"0.04\" -fPIC "-I/usr/lib/perl/5.8/CORE" -DPERL5 -DOPENSSL_NO_KRB5 Bignum.c
Bignum.xs:5:25: error: openssl/ssl.h: No such file or directory
Bignum.xs:6:24: error: openssl/bn.h: No such file or directory
Bignum.xs:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
Bignum.c: In function ‘XS_Crypt__OpenSSL__Bignum__free_BN’:
Bignum.c:48: error: ‘BIGNUM’ undeclared (first use in this function)
Bignum.c:48: error: (Each undeclared identifier is reported only once
Bignum.c:48: error: for each function it appears in.)
Bignum.c:48: error: ‘self’ undeclared (first use in this function)
Bignum.c:51: error: expected expression before ‘)’ token
Bignum.xs: In function ‘XS_Crypt__OpenSSL__Bignum_new_from_word’:
Bignum.xs:46: error: ‘BIGNUM’ undeclared (first use in this function)
Bignum.xs:46: error: ‘bn’ undeclared (first use in this function)
Bignum.c:72: error: ‘RETVAL’ undeclared (first use in this function)
Bignum.xs: In function ‘XS_Crypt__OpenSSL__Bignum_new_from_decimal’:
Bignum.xs:59: error: ‘BIGNUM’ undeclared (first use in this function)
Bignum.xs:59: error: ‘bn’ undeclared (first use in this function)
Bignum.c:97: error: ‘RETVAL’ undeclared (first use in this function)
Bignum.xs: In function ‘XS_Crypt__OpenSSL__Bignum_new_from_hex’:
Bignum.xs:72: error: ‘BIGNUM’ undeclared (first use in this function)
Bignum.xs:72: error: ‘bn’ undeclared (first use in this function)
Bignum.c:122: error: ‘RETVAL’ undeclared (first use in this function)
Bignum.xs: In function ‘XS_Crypt__OpenSSL__Bignum_new_from_bin’:
Bignum.xs:85: error: ‘BIGNUM’ undeclared (first use in this function)
Bignum.xs:85: error: ‘bn’ undeclared (first use in this function)
Bignum.c:149: error: ‘RETVAL’ undeclared (first use in this function)
Bignum.xs: In function ‘XS_Crypt__OpenSSL__Bignum_zero’:
Bignum.xs:99: error: ‘BIGNUM’ undeclared (first use in this function)
Bignum.xs:99: error: ‘bn’ undeclared (first use in this function)
Bignum.c:173: error: ‘RETVAL’ undeclared (first use in this function)
Bignum.xs: In function ‘XS_Crypt__OpenSSL__Bignum_one’:
Bignum.xs:111: error: ‘BIGNUM’ undeclared (first use in this function)
Bignum.xs:111: error: ‘bn’ undeclared (first use in this function)
Bignum.c:197: error: ‘RETVAL’ undeclared (first use in this function)
Bignum.c: In function ‘XS_Crypt__OpenSSL__Bignum_to_decimal’:
Bignum.c:217: error: ‘BIGNUM’ undeclared (first use in this function)
Bignum.c:217: error: ‘self’ undeclared (first use in this function)
Bignum.c:222: error: expected expression before ‘)’ token
Bignum.xs:125: warning: assignment makes pointer from integer without a cast
Bignum.c: In function ‘XS_Crypt__OpenSSL__Bignum_to_hex’:
Bignum.c:242: error: ‘BIGNUM’ undeclared (first use in this function)
Bignum.c:242: error: ‘self’ undeclared (first use in this function)
Bignum.c:247: error: expected expression before ‘)’ token
Bignum.xs:136: warning: assignment makes pointer from integer without a cast
Bignum.c: In function ‘XS_Crypt__OpenSSL__Bignum_to_bin’:
Bignum.c:267: error: ‘BIGNUM’ undeclared (first use in this function)
Bignum.c:267: error: ‘self’ undeclared (first use in this function)
Bignum.c:275: error: expected expression before ‘)’ token
Bignum.c: In function ‘XS_Crypt__OpenSSL__Bignum_get_word’:
Bignum.c:297: error: ‘BIGNUM’ undeclared (first use in this function)
Bignum.c:297: error: ‘self’ undeclared (first use in this function)
Bignum.c:302: error: expected expression before ‘)’ token
Bignum.c: In function ‘XS_Crypt__OpenSSL__Bignum_add’:
Bignum.c:319: error: ‘BIGNUM’ undeclared (first use in this function)
Bignum.c:319: error: ‘a’ undeclared (first use in this function)
Bignum.c:320: error: ‘b’ undeclared (first use in this function)
Bignum.xs:168: error: ‘bn’ undeclared (first use in this function)
Bignum.c:327: error: expected expression before ‘)’ token
Bignum.c:330: error: expected expression before ‘)’ token
Bignum.c: In function ‘XS_Crypt__OpenSSL__Bignum_sub’:
Bignum.c:353: error: ‘BIGNUM’ undeclared (first use in this function)
Bignum.c:353: error: ‘a’ undeclared (first use in this function)
Bignum.c:354: error: ‘b’ undeclared (first use in this function)
Bignum.xs:182: error: ‘bn’ undeclared (first use in this function)
Bignum.c:361: error: expected expression before ‘)’ token
Bignum.c:364: error: expected expression before ‘)’ token
Bignum.c: In function ‘XS_Crypt__OpenSSL__Bignum_mul’:
Bignum.c:387: error: ‘BIGNUM’ undeclared (first use in this function)
Bignum.c:387: error: ‘a’ undeclared (first use in this function)
Bignum.c:388: error: ‘b’ undeclared (first use in this function)
Bignum.c:389: error: ‘BN_CTX’ undeclared (first use in this function)
Bignum.c:389: error: ‘ctx’ undeclared (first use in this function)
Bignum.xs:197: error: ‘bn’ undeclared (first use in this function)
Bignum.c:396: error: expected expression before ‘)’ token
Bignum.c:399: error: expected expression before ‘)’ token
Bignum.c:402: error: expected expression before ‘)’ token
Bignum.c: In function ‘XS_Crypt__OpenSSL__Bignum_div’:
Bignum.c:425: error: ‘BIGNUM’ undeclared (first use in this function)
Bignum.c:425: error: ‘a’ undeclared (first use in this function)
Bignum.c:426: error: ‘b’ undeclared (first use in this function)
Bignum.c:427: error: ‘BN_CTX’ undeclared (first use in this function)
Bignum.c:427: error: ‘ctx’ undeclared (first use in this function)
Bignum.xs:212: error: ‘quotient’ undeclared (first use in this function)
Bignum.c:435: error: expected expression before ‘)’ token
Bignum.c:438: error: expected expression before ‘)’ token
Bignum.c:441: error: expected expression before ‘)’ token
Bignum.xs:218: error: invalid lvalue in assignment
Bignum.c: In function ‘XS_Crypt__OpenSSL__Bignum_sqr’:
Bignum.c:465: error: ‘BIGNUM’ undeclared (first use in this function)
Bignum.c:465: error: ‘a’ undeclared (first use in this function)
Bignum.c:466: error: ‘BN_CTX’ undeclared (first use in this function)
Bignum.c:466: error: ‘ctx’ undeclared (first use in this function)
Bignum.xs:229: error: ‘bn’ undeclared (first use in this function)
Bignum.c:471: error: ‘RETVAL’ undeclared (first use in this function)
Bignum.c:474: error: expected expression before ‘)’ token
Bignum.c:477: error: expected expression before ‘)’ token
Bignum.c: In function ‘XS_Crypt__OpenSSL__Bignum_mod’:
Bignum.c:499: error: ‘BIGNUM’ undeclared (first use in this function)
Bignum.c:499: error: ‘a’ undeclared (first use in this function)
Bignum.c:500: error: ‘b’ undeclared (first use in this function)
Bignum.c:501: error: ‘BN_CTX’ undeclared (first use in this function)
Bignum.c:501: error: ‘ctx’ undeclared (first use in this function)
Bignum.xs:245: error: ‘bn’ undeclared (first use in this function)
Bignum.c:508: error: expected expression before ‘)’ token
Bignum.c:511: error: expected expression before ‘)’ token
Bignum.c:514: error: expected expression before ‘)’ token
Bignum.c: In function ‘XS_Crypt__OpenSSL__Bignum_mod_mul’:
Bignum.c:536: error: ‘BIGNUM’ undeclared (first use in this function)
Bignum.c:536: error: ‘a’ undeclared (first use in this function)
Bignum.c:537: error: ‘b’ undeclared (first use in this function)
Bignum.c:538: error: ‘m’ undeclared (first use in this function)
Bignum.c:539: error: ‘BN_CTX’ undeclared (first use in this function)
Bignum.c:539: error: ‘ctx’ undeclared (first use in this function)
Bignum.xs:261: error: ‘bn’ undeclared (first use in this function)
Bignum.c:544: error: ‘RETVAL’ undeclared (first use in this function)
Bignum.c:547: error: expected expression before ‘)’ token
Bignum.c:550: error: expected expression before ‘)’ token
Bignum.c:553: error: expected expression before ‘)’ token
Bignum.c:556: error: expected expression before ‘)’ token
Bignum.c: In function ‘XS_Crypt__OpenSSL__Bignum_exp’:
Bignum.c:577: error: ‘BIGNUM’ undeclared (first use in this function)
Bignum.c:577: error: ‘a’ undeclared (first use in this function)
Bignum.c:578: error: ‘p’ undeclared (first use in this function)
Bignum.c:579: error: ‘BN_CTX’ undeclared (first use in this function)
Bignum.c:579: error: ‘ctx’ undeclared (first use in this function)
Bignum.xs:277: error: ‘bn’ undeclared (first use in this function)
Bignum.c:584: error: ‘RETVAL’ undeclared (first use in this function)
Bignum.c:587: error: expected expression before ‘)’ token
Bignum.c:590: error: expected expression before ‘)’ token
Bignum.c:593: error: expected expression before ‘)’ token
Bignum.c: In function ‘XS_Crypt__OpenSSL__Bignum_mod_exp’:
Bignum.c:614: error: ‘BIGNUM’ undeclared (first use in this function)
Bignum.c:614: error: ‘a’ undeclared (first use in this function)
Bignum.c:615: error: ‘p’ undeclared (first use in this function)
Bignum.c:616: error: ‘m’ undeclared (first use in this function)
Bignum.c:617: error: ‘BN_CTX’ undeclared (first use in this function)
Bignum.c:617: error: ‘ctx’ undeclared (first use in this function)
Bignum.xs:294: error: ‘bn’ undeclared (first use in this function)
Bignum.c:622: error: ‘RETVAL’ undeclared (first use in this function)
Bignum.c:625: error: expected expression before ‘)’ token
Bignum.c:628: error: expected expression before ‘)’ token
Bignum.c:631: error: expected expression before ‘)’ token
Bignum.c:634: error: expected expression before ‘)’ token
Bignum.c: In function ‘XS_Crypt__OpenSSL__Bignum_mod_inverse’:
Bignum.c:655: error: ‘BIGNUM’ undeclared (first use in this function)
Bignum.c:655: error: ‘a’ undeclared (first use in this function)
Bignum.c:656: error: ‘n’ undeclared (first use in this function)
Bignum.c:657: error: ‘BN_CTX’ undeclared (first use in this function)
Bignum.c:657: error: ‘ctx’ undeclared (first use in this function)
Bignum.xs:310: error: ‘bn’ undeclared (first use in this function)
Bignum.c:662: error: ‘RETVAL’ undeclared (first use in this function)
Bignum.c:665: error: expected expression before ‘)’ token
Bignum.c:668: error: expected expression before ‘)’ token
Bignum.c:671: error: expected expression before ‘)’ token
Bignum.c: In function ‘XS_Crypt__OpenSSL__Bignum_gcd’:
Bignum.c:692: error: ‘BIGNUM’ undeclared (first use in this function)
Bignum.c:692: error: ‘a’ undeclared (first use in this function)
Bignum.c:693: error: ‘b’ undeclared (first use in this function)
Bignum.c:694: error: ‘BN_CTX’ undeclared (first use in this function)
Bignum.c:694: error: ‘ctx’ undeclared (first use in this function)
Bignum.xs:326: error: ‘bn’ undeclared (first use in this function)
Bignum.c:699: error: ‘RETVAL’ undeclared (first use in this function)
Bignum.c:702: error: expected expression before ‘)’ token
Bignum.c:705: error: expected expression before ‘)’ token
Bignum.c:708: error: expected expression before ‘)’ token
Bignum.c: In function ‘XS_Crypt__OpenSSL__Bignum_cmp’:
Bignum.c:729: error: ‘BIGNUM’ undeclared (first use in this function)
Bignum.c:729: error: ‘a’ undeclared (first use in this function)
Bignum.c:730: error: ‘b’ undeclared (first use in this function)
Bignum.c:735: error: expected expression before ‘)’ token
Bignum.c:738: error: expected expression before ‘)’ token
Bignum.c: In function ‘XS_Crypt__OpenSSL__Bignum_is_zero’:
Bignum.c:754: error: ‘BIGNUM’ undeclared (first use in this function)
Bignum.c:754: error: ‘a’ undeclared (first use in this function)
Bignum.c:759: error: expected expression before ‘)’ token
Bignum.c: In function ‘XS_Crypt__OpenSSL__Bignum_is_one’:
Bignum.c:775: error: ‘BIGNUM’ undeclared (first use in this function)
Bignum.c:775: error: ‘a’ undeclared (first use in this function)
Bignum.c:780: error: expected expression before ‘)’ token
Bignum.c: In function ‘XS_Crypt__OpenSSL__Bignum_is_odd’:
Bignum.c:796: error: ‘BIGNUM’ undeclared (first use in this function)
Bignum.c:796: error: ‘a’ undeclared (first use in this function)
Bignum.c:801: error: expected expression before ‘)’ token
Bignum.c: In function ‘XS_Crypt__OpenSSL__Bignum_copy’:
Bignum.c:817: error: ‘BIGNUM’ undeclared (first use in this function)
Bignum.c:817: error: ‘a’ undeclared (first use in this function)
Bignum.c:821: error: ‘RETVAL’ undeclared (first use in this function)
Bignum.c:824: error: expected expression before ‘)’ token
Bignum.c: In function ‘XS_Crypt__OpenSSL__Bignum_pointer_copy’:
Bignum.c:843: error: ‘BIGNUM’ undeclared (first use in this function)
Bignum.c:843: error: ‘a’ undeclared (first use in this function)
Bignum.c:850: error: expected expression before ‘)’ token
Bignum.c: In function ‘XS_Crypt__OpenSSL__Bignum__CTX_new’:
Bignum.c:868: error: ‘BN_CTX’ undeclared (first use in this function)
Bignum.c:868: error: ‘RETVAL’ undeclared (first use in this function)
Bignum.c: In function ‘XS_Crypt__OpenSSL__Bignum__CTX__free_BN_CTX’:
Bignum.c:885: error: ‘BN_CTX’ undeclared (first use in this function)
Bignum.c:885: error: ‘self’ undeclared (first use in this function)
Bignum.c:888: error: expected expression before ‘)’ token
make: *** [Bignum.o] Error 1
IROBERTS/Crypt-OpenSSL-Bignum-0.04.tar.gz
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Failed during this command:
IROBERTS/Crypt-OpenSSL-Bignum-0.04.tar.gz : make NO