Subject: | Crypt-IDEA-1.02 fails to compile under Solaris 2.8/perl 5.8 |
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
Message body not shown because it is not plain text.