Skip Menu |
 

This queue is for tickets about the Crypt-IDEA CPAN distribution.

Report information
The Basics
Id: 2886
Status: resolved
Priority: 0/
Queue: Crypt-IDEA

People
Owner: DPARIS [...] cpan.org
Requestors: adamnealis [...] yahoo.co.uk
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.02
Fixed in: 1.07

Attachments


Subject: Crypt-IDEA-1.02 fails to compile under Solaris 2.8/perl 5.8
Download (untitled) / with headers
text/plain 2.6k
Attached are patches to three files from the 1.02 distribution. These patches lack a #define solaris 2.8 ... #endif block, but I don't know what a suitable #define would be. It looks like u_int16_u is not a Sol 2.8 typedef, whereas uint16_u is. Also ENDedness is defined in <arpa/nameser_compat.h>, not <endian.h>. uname -a SunOS valhalla 5.8 Generic_108528-21 sun4u sparc SUNW,Ultra-5_10 perl -version This is perl, v5.8.0 built for sun4-solaris Copyright 1987-2002, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using `man perl' or `perldoc perl'. If you have access to the Internet, point your browser at http://www.perl.com/, the Perl Home Page. sh-2.03$ perl Makefile.PL Checking if your kit is complete... Looks good Writing Makefile for Crypt::IDEA sh-2.03$ make cp IDEA.pod blib/lib/Crypt/IDEA.pod cp IDEA.pm blib/lib/Crypt/IDEA.pm /usr/local/bin/perl /usr/local/lib/perl5/5.8.0/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.8.0/ExtUtils/typemap -typemap type map IDEA.xs > IDEA.xsc && mv IDEA.xsc IDEA.c Please specify prototyping behavior for IDEA.xs (see perlxs manual) gcc -B/usr/ccs/bin/ -c -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.02\" -DXS_VERSION=\"1. 02\" -fPIC "-I/usr/local/lib/perl5/5.8.0/sun4-solaris/CORE" IDEA.c In file included from IDEA.xs:10: idea.h:5: parse error before "idea_cblock" idea.h:5: warning: data definition has no type or storage class idea.h:6: parse error before "idea_user_key" idea.h:6: warning: data definition has no type or storage class idea.h:7: parse error before "idea_ks" idea.h:7: warning: data definition has no type or storage class idea.h:9: parse error before "in" idea.h:10: parse error before "key" idea.h:11: parse error before "userKey" IDEA.xs: In function `XS_Crypt__IDEA_expand_key': IDEA.xs:24: parse error before "ks" IDEA.xs:30: `u_int16_t' undeclared (first use in this function) IDEA.xs:30: (Each undeclared identifier is reported only once IDEA.xs:30: for each function it appears in.) IDEA.xs:30: parse error before ')' token IDEA.xs:32: `ks' undeclared (first use in this function) IDEA.xs: In function `XS_Crypt__IDEA_invert_key': IDEA.xs:41: `u_int16_t' undeclared (first use in this function) IDEA.xs:41: parse error before "iks" IDEA.xs:47: parse error before ')' token IDEA.xs:49: `iks' undeclared (first use in this function) IDEA.xs: In function `XS_Crypt__IDEA_crypt': IDEA.xs:77: `u_int16_t' undeclared (first use in this function) IDEA.xs:77: parse error before ')' token make: *** [IDEA.o] Error 1
Download Crypt-IDEA.patches
application/octet-stream 4.3k

Message body not shown because it is not plain text.

From: gbrock [...] cpan.org
Download (untitled) / with headers
text/plain 220b
Any idea of the status of this patch? I just applied it to Crypt::IDEA 1.02 on Solaris 8 /perl5.8.3 and it worked a treat. Gavin Show quoted text
_____________________________ Gavin Brock - gbrock@cpan.org ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Download (untitled) / with headers
text/plain 376b
[GBROCK - Mon Apr 19 20:53:19 2004]: Show quoted text
> Any idea of the status of this patch? I just applied it to Crypt::IDEA > 1.02 on Solaris 8 /perl5.8.3 and it worked a treat.
I've no idea mate. I remember I created the patch and simply submitted it here. I haven't had any correspondence from anyone since, except for you of course! Maybe this isn't maintained any more. Cheers, Adam.
Download (untitled) / with headers
text/plain 566b
[guest - Tue Apr 20 05:58:24 2004]: Who knows. Big props for the patch. Cheers. For that, I tell you a secret. BlueTongue beer is really, really yummy. =D Show quoted text
> [GBROCK - Mon Apr 19 20:53:19 2004]: >
> > Any idea of the status of this patch? I just applied it to Crypt::IDEA > > 1.02 on Solaris 8 /perl5.8.3 and it worked a treat.
> > I've no idea mate. I remember I created the patch and simply > submitted it here. I haven't had any correspondence from > anyone since, except for you of course! Maybe this isn't > maintained any more. > > Cheers, > Adam.
From: welinda
Download (untitled) / with headers
text/plain 117b
Has anyone got any idea of the fix?I am having the same exact error message. I'm running solaris 8 and perl 5.6.1
Download (untitled) / with headers
text/plain 386b
[guest - Mon Nov 14 12:30:02 2005]: Show quoted text
> Has anyone got any idea of the fix?I am having the same exact error > message. I'm running solaris 8 and perl 5.6.1
In the original message I posted, I attached this file. Crypt-IDEA.patches If you apply the diffs to IDEA.xs, _idea.c and idea.h the package should compile. All I've done is to replace references to u_int16_t with uint16_t
Download (untitled) / with headers
text/plain 176b
The endian issue has been resolved in 1.04 (already uploaded to PAUSE) although I'm very reluctant to touch the typedef issue for fear of breaking on other architectures. -dsp


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.