Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Building Net:SSLeay fails with latest openssl 1.0.2h

by jobinjoseph121 (Novice)
on Aug 08, 2016 at 12:41 UTC ( #1169356=perlquestion: print w/replies, xml ) Need Help??

jobinjoseph121 has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

We are using Net::SSLeay 1.77 module source from cpan and compile it locally.
This perl module got compiled successfully till the openssl upgrade to latest version 1.0.2h.

Now we are receiving the following error in the Windows build (both x64 and x86).
SSLeay.xs(6060) : error C2143: syntax error : missing ';' before 'type +' SSLeay.xs(6061) : error C2065: 'first' : undeclared identifier SSLeay.xs(6063) : error C2065: 'first' : undeclared identifier SSLeay.xs(6068) : error C2143: syntax error : missing ';' before 'type +' SSLeay.xs(6069) : error C2275: 'ASN1_GENERALIZEDTIME' : illegal use of + this type as an expression ../../include/openssl/ossl_typ.h(95) : see declaration of 'ASN +1_GENERALIZEDTIME' SSLeay.xs(6069) : error C2065: 'revocationTime' : undeclared identifie +r SSLeay.xs(6069) : error C2065: 'thisupdate' : undeclared identifier SSLeay.xs(6069) : error C2100: illegal indirection SSLeay.xs(6069) : error C2065: 'nextupdate' : undeclared identifier SSLeay.xs(6069) : error C2100: illegal indirection SSLeay.xs(6075) : error C2065: 'status' : undeclared identifier SSLeay.xs(6076) : error C2065: 'revocationTime' : undeclared identifie +r

Checking the SSLeay.xs file, all the variables for which this error is seen seem to be declared in the same file itself.

Since i am new to this, could you please help to identify what should be wrong here?

Thanks,
Jobin

Replies are listed 'Best First'.
Re: Building Net:SSLeay fails with latest openssl 1.0.2h
by syphilis (Archbishop) on Aug 09, 2016 at 05:02 UTC
    No such problem for me on Windows with Net-SLeay-1.77 and openssl 1.0.2h.

    Are you using a Microsoft Compiler ?
    Line 6060 is:
    int first = OCSP_resp_find(bsr, certid, -1);
    I've struck scoping issues like this with MS compilers before.

    Try changing line 6060 to:
    first = OCSP_resp_find(bsr, certid, -1);
    and then change line 6030 to:
    int i,want_array, first;
    Cheers,
    Rob
Re: Building Net:SSLeay fails with latest openssl 1.0.2h
by $h4X4_|=73}{ (Monk) on Aug 08, 2016 at 20:13 UTC
Re: Building Net:SSLeay fails with latest openssl 1.0.2h
by Cow1337killr (Monk) on Aug 13, 2016 at 14:37 UTC

    By the way, version 1.78 of Net-SSLeay is on CPAN, now.

      By the way, version 1.78 of Net-SSLeay is on CPAN, now

      I don't think the changes in 1.78 will address the OP's issue.

      Cheers,
      Rob

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1169356]
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2023-05-30 12:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?