Subject: | Compilation Failure on Fedora 12 (OpenSSL-1.0.0) |
On a Fedora 12 system attempting to make Crypt-OpenSSL-X509-1.0:
# uname -a
Linux my.hostname.com 2.6.32.9-70.fc12.i686.PAE #1 SMP Wed Mar 3
04:57:21 UTC 2010 i686 i686 i386 GNU/Linux
# rpm -q openssl-devel
openssl-devel-1.0.0-0.13.beta4.fc12.i686
# rpm -q perl
perl-5.10.0-87.fc12.i686
# cd Crypt-OpenSSL-X509-1.0
# perl Makefile.PL
/usr/lib/libcrypto.so
Found `/libcrypto.so'.
Checking if your kit is complete...
Looks good
Writing Makefile for Crypt::OpenSSL::X509
# make
cp X509.pm blib/lib/Crypt/OpenSSL/X509.pm
/usr/bin/perl "-Iinc" /usr/lib/perl5/5.10.0/ExtUtils/xsubpp -typemap
/usr/lib/perl5/5.10.0/ExtUtils/typemap -typemap typemap X509.xs >
X509.xsc && mv X509.xsc X509.c
gcc -c -I/usr/include/openssl -D_REENTRANT -D_GNU_SOURCE
-DPERL_USE_SAFE_PUTENV -DDEBUGGING -fno-strict-aliasing -pipe
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/include/gdbm -g -Wall -DVERSION=\"1.0\" -DXS_VERSION=\"1.0\"
-fPIC "-I/usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE" X509.c
X509.xs: In function ‘XS_Crypt__OpenSSL__X509_accessor’:
X509.xs:367: error: ‘STACK’ undeclared (first use in this function)
X509.xs:367: error: (Each undeclared identifier is reported only once
X509.xs:367: error: for each function it appears in.)
X509.xs:367: error: ‘emlst’ undeclared (first use in this function)
X509.xs: In function ‘XS_Crypt__OpenSSL__X509_as_string’:
X509.xs:454: error: ‘ASN1_HEADER’ undeclared (first use in this function)
X509.xs:454: error: expected ‘;’ before ‘ah’
X509.xs:459: error: ‘ah’ undeclared (first use in this function)
X509.xs:461: warning: implicit declaration of function ‘X509_asn1_meth’
X509.xs:463: error: ‘i2d_ASN1_HEADER’ undeclared (first use in this
function)
make: *** [X509.o] Error 1
STACK and ASN1_HEADER are no longer in OpenSSL-1.0.0, and thus the
module will not build.