dsully/perl-crypt-openssl-x509 — Issue #11: Solaris compile tips?
Author: kevinjc
Created: 2011-12-19 23:09:10+00:00
State: open

I have two openssl version compiled for 64 bits (0.9.7g, and 1.0.0e) and a third for 32 bits (1d). I have two perls (both 5.8.7), one 32 and one 64.
Errors are about the same, can't verify that they are exactly the same but I think they are.

Here is the output from the 64 bit version of Perl and OpenSSL 0.9.7g

# /tools/gcc/3_4_2/bin/gcc -c -I/tools/openssl/0_9_7g/include -mcpu=v9 -m64 -Wa,-xarch=v9 -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Werror -DVERSION=\"1.800.2\" -DXS_VERSION=\"1.800.2\" -fPIC "-I/tools/perl/5_8_7/lib/5.8.7/sun4-solaris-64/CORE" X509.c
X509.xs: In function `sv_bio_utf8_on':
X509.xs:107: warning: implicit declaration of function `is_utf8_string_loclen'
X509.xs: In function `_decode_netscape':
X509.xs:231: warning: assignment from incompatible pointer type
X509.xs:234: error: `i2d_of_void' undeclared (first use in this function)
X509.xs:234: error: (Each undeclared identifier is reported only once
X509.xs:234: error: for each function it appears in.)
X509.xs:234: error: parse error before ')' token
X509.c: In function `XS_Crypt__OpenSSL__X509___X509_cleanup':
X509.c:360: warning: unused variable `ax'

Hmm, or maybe there is a difference in the OpenSSL version:

# make
Skip blib/lib/Crypt/OpenSSL/X509.pm (unchanged)
gcc -c -I/tools/openssl/1.0.0e/include -mcpu=v9 -m64 -Wa,-xarch=v9 -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Werror -DVERSION=\"1.800.2\" -DXS_VERSION=\"1.800.2\" -fPIC "-I/tools/perl/5_8_7/lib/5.8.7/sun4-solaris-64/CORE" X509.c
X509.xs: In function `sv_bio_utf8_on':
X509.xs:107: warning: implicit declaration of function `is_utf8_string_loclen'
X509.c: In function `XS_Crypt__OpenSSL__X509___X509_cleanup':
X509.c:360: warning: unused variable `ax'
*** Error code 1
make: Fatal error: Command failed for target `X509.o'

Any ideas appreciated.