dsully / perl-crypt-openssl-x509

Perl interface to OpenSSL's X509 module.
Other
25 stars 33 forks source link

Error compiling 1.804 on SPARC Solaris 10 #34

Open bcarroll opened 10 years ago

bcarroll commented 10 years ago

I edited Makefile.PL and added /usr/sfw/local/include so the openssl header files could be located. inc '-I/usr/include/openssl -I/usr/local/include/ssl -I/usr/local/ssl/include -I/usr/sfw/include';

libs '-L/usr/lib -L/usr/local/lib -L/usr/local/ssl/lib -lcrypto -L/usr/sfw/lib';

I am still getting an error when I compile Crypt::OpenSSL::X509 though.

root@devbox [/usr/local/cpan/Crypt-OpenSSL-X509-1.804]# make cc -c -I/usr/include/openssl -I/usr/local/include/ssl -I/usr/local/ssl/include -I/usr/sfw/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -m64 -D_TS_ERRNO -O2 -DVERSION=\"1.804\" -DXS_VERSION=\"1.804\" -KPIC "-I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE" X509.c "X509.xs", line 89: warning: assignment type mismatch: pointer to function(pointer to struct bio_st {pointer to struct bio_method_st {..} method, pointer to function(..) returning long callback, pointer to char cb_arg, int init, int shutdown, int flags, int retry_reason, int num, pointer to void ptr, pointer to struct bio_st {..} next_bio, pointer to struct bio_st {..} prev_bio, int references, unsigned long num_read, unsigned long num_write, struct crypto_ex_data_st {..} ex_data}, int, pointer to const char, int, long, long) returning long "=" pointer to void "X509.xs", line 111: warning: implicit function declaration: is_utf8_string_loclen "X509.xs", line 238: undefined symbol: i2d_of_void "X509.xs", line 238: syntax error before or at: ) cc: acomp failed for X509.c *\ Error code 2 make: Fatal error: Command failed for target `X509.o'

dsully commented 10 years ago

Hi - I don't have access to any Solaris boxes. What version of OpenSSL are you using?

Happy to accept a pull request if you can figure out the issue.

Thanks

bcarroll commented 10 years ago

I am using the openssl that is included with Solaris 10 (0.9.8)

jhunt commented 9 years ago

@bcarroll, what specific sub-version of OpenSSL are you using? 0.9.8o? 0.9.8b?