I keep getting an error when I try the standard "perl Makefile.PL; make; make install" for this module. I am using Perl 5.8.7 from sunfreeware.org, as well as openssl 0.9.8d from the same site. GCC is 4.0.2 provided from SUN's website (Pkg names are SUNW0gccfss_solaris10 and the pre-req SUNW0scgfss).
Here is the output I get from my build attempts:
build4u{root}160: /usr/local/bin/perl Makefile.PL
Note (probably harmless): No library found for -lcrypto
Writing Makefile for Crypt::OpenSSL::AES
build4u{root}161: make
gcc -B/usr/ccs/bin/ -c -I. -I/usr/local/ssl/include/openssl/ -fno-strict-aliasing -pipe
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" -fPIC "-I/usr/local/lib/perl5/5.8.7/sun4-solaris/CORE" AES.c
AES.xs:5:25: error: openssl/aes.h: No such file or directory
AES.xs:18: error: syntax error before 'AES_KEY'
AES.xs:18: warning: no semicolon at end of struct or union
AES.xs:19: warning: data definition has no type or storage class
AES.xs:20: warning: data definition has no type or storage class
AES.c: In function 'XS_Crypt__OpenSSL__AES_new':
AES.c:41: error: syntax error before 'RETVAL'
AES.xs:48: error: 'RETVAL' undeclared (first use in this function)
AES.xs:48: error: (Each undeclared identifier is reported only once
AES.xs:48: error: for each function it appears in.)
AES.xs:48: error: invalid application of 'sizeof' to incomplete type 'struct state'
AES.xs:48: warning: division by zero
AES.xs:48: error: invalid application of 'sizeof' to incomplete type 'struct state'
AES.xs:48: error: invalid application of 'sizeof' to incomplete type 'struct state'
AES.c: In function 'XS_Crypt__OpenSSL__AES_encrypt':
AES.c:73: error: syntax error before 'self'
AES.c:79: error: 'self' undeclared (first use in this function)
AES.c:79: error: called object 'Crypt__OpenSSL__AES' is not a function
AES.xs:68: error: 'AES_BLOCK_SIZE' undeclared (first use in this function)
AES.xs:74: error: 'AES_decrypt' undeclared (first use in this function)
AES.xs:74: error: 'AES_encrypt' undeclared (first use in this function)
AES.xs: In function 'boot_Crypt__OpenSSL__AES':
AES.xs:29: error: 'AES_BLOCK_SIZE' undeclared (first use in this function)
*** Error code 1
make: Fatal error: Command failed for target `AES.o'
This line:
AES.xs:5:25: error: openssl/aes.h: No such file or directory
really grabs my attention since I know that aes.h exists in the include path (I had to modify Makefile.PL to insert that path)
The other errors also seem wierd since I imagine others have installed this module before without getting basic compiler syntax complaints.
Has anyone successfully installed this module on Solaris 10? How did you go about doing it?
Thanks,
Mike.