Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: tclarke [...] adaptivetech.com.au
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Does not compile in make test or make install sections
Here is the output when trying to compile the package I have tried this on Solaris 7 running perl 5.001 and on windows using cygwin, perl version 5.6.1 and 5.0. Anyone have any ideas?? I have applied the patches and workarounds and nothing works. I want to use SCP and SSH in a script I am writing. Cheers Todd. bash-2.03# perl Makefile.PL POLLUTE=1 PREFIX=/export/home/todd/ssh_perl Writing Makefile for Crypt::IDEA bash-2.03# make test gcc -c -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_POLLUTE -O -DVERSION=\"1.01\" -DXS_VERSION=\"1.01\" -fPIC -I/usr/local/lib/perl5/5.6.1/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:20: parse error before "ks" IDEA.xs:26: `u_int16_t' undeclared (first use in this function) IDEA.xs:26: (Each undeclared identifier is reported only once IDEA.xs:26: for each function it appears in.) IDEA.xs:26: parse error before ')' token IDEA.xs:28: `ks' undeclared (first use in this function) IDEA.xs: In function `XS_Crypt__IDEA_invert_key': IDEA.xs:37: `u_int16_t' undeclared (first use in this function) IDEA.xs:37: parse error before "iks" IDEA.xs:43: parse error before ')' token IDEA.xs:45: `iks' undeclared (first use in this function) IDEA.xs: In function `XS_Crypt__IDEA_crypt': IDEA.xs:73: `u_int16_t' undeclared (first use in this function) IDEA.xs:73: parse error before ')' token make: *** [IDEA.o] Error 1 bash-2.03# make install gcc -c -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_POLLUTE -O -DVERSION=\"1.01\" -DXS_VERSION=\"1.01\" -fPIC -I/usr/local/lib/perl5/5.6.1/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:20: parse error before "ks" IDEA.xs:26: `u_int16_t' undeclared (first use in this function) IDEA.xs:26: (Each undeclared identifier is reported only once IDEA.xs:26: for each function it appears in.) IDEA.xs:26: parse error before ')' token IDEA.xs:28: `ks' undeclared (first use in this function) IDEA.xs: In function `XS_Crypt__IDEA_invert_key': IDEA.xs:37: `u_int16_t' undeclared (first use in this function) IDEA.xs:37: parse error before "iks" IDEA.xs:43: parse error before ')' token IDEA.xs:45: `iks' undeclared (first use in this function) IDEA.xs: In function `XS_Crypt__IDEA_crypt': IDEA.xs:73: `u_int16_t' undeclared (first use in this function) IDEA.xs:73: parse error before ')' token make: *** [IDEA.o] Error 1
From: mvishchers [...] psi.de
we have the same problems on Solaris 8. The compilation succeeded after we added the following line in idea.h (line 4) #define u_int16_t uint16_t We also had to remove the "#include <endian.h>" from idea.c But unfortunately, tests 3 and 4 failed (no matter how we define BYTE_ORDER) Cheers, Michael [guest - Tue Apr 23 19:45:22 2002]: Show quoted text
> Here is the output when trying to compile the package > > I have tried this on Solaris 7 running perl 5.001 and on windows using > cygwin, perl version 5.6.1 and 5.0. > > Anyone have any ideas?? I have applied the patches and workarounds and > nothing works. I want to use SCP and SSH in a script I am writing. > > Cheers > > Todd. > > > bash-2.03# perl Makefile.PL POLLUTE=1 > PREFIX=/export/home/todd/ssh_perl > Writing Makefile for Crypt::IDEA > bash-2.03# make test > gcc -c -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE > -D_FILE_OFFSET_BITS=64 -DPERL_POLLUTE -O -DVERSION=\"1.01\" > -DXS_VERSION=\"1.01\" -fPIC > -I/usr/local/lib/perl5/5.6.1/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:20: parse error before "ks" > IDEA.xs:26: `u_int16_t' undeclared (first use in this function) > IDEA.xs:26: (Each undeclared identifier is reported only once > IDEA.xs:26: for each function it appears in.) > IDEA.xs:26: parse error before ')' token > IDEA.xs:28: `ks' undeclared (first use in this function) > IDEA.xs: In function `XS_Crypt__IDEA_invert_key': > IDEA.xs:37: `u_int16_t' undeclared (first use in this function) > IDEA.xs:37: parse error before "iks" > IDEA.xs:43: parse error before ')' token > IDEA.xs:45: `iks' undeclared (first use in this function) > IDEA.xs: In function `XS_Crypt__IDEA_crypt': > IDEA.xs:73: `u_int16_t' undeclared (first use in this function) > IDEA.xs:73: parse error before ')' token > make: *** [IDEA.o] Error 1 > bash-2.03# make install > gcc -c -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE > -D_FILE_OFFSET_BITS=64 -DPERL_POLLUTE -O -DVERSION=\"1.01\" > -DXS_VERSION=\"1.01\" -fPIC > -I/usr/local/lib/perl5/5.6.1/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:20: parse error before "ks" > IDEA.xs:26: `u_int16_t' undeclared (first use in this function) > IDEA.xs:26: (Each undeclared identifier is reported only once > IDEA.xs:26: for each function it appears in.) > IDEA.xs:26: parse error before ')' token > IDEA.xs:28: `ks' undeclared (first use in this function) > IDEA.xs: In function `XS_Crypt__IDEA_invert_key': > IDEA.xs:37: `u_int16_t' undeclared (first use in this function) > IDEA.xs:37: parse error before "iks" > IDEA.xs:43: parse error before ')' token > IDEA.xs:45: `iks' undeclared (first use in this function) > IDEA.xs: In function `XS_Crypt__IDEA_crypt': > IDEA.xs:73: `u_int16_t' undeclared (first use in this function) > IDEA.xs:73: parse error before ')' token > make: *** [IDEA.o] Error 1
I head the same problem and the fix mentioned above did it for me. I also could see the problems with test 3 and 4. I added print "not " unless ($cipher- Show quoted text
>decrypt($cipher->encrypt($in)) eq $in);
print "ok 5\n"; and got this okay. Show quoted text
> make test
PERL_DL_NONLAZY=1 /opt/local/noctools/bin/perl - Iblib/arch -Iblib/lib -I/opt/local/perl.5.6.1/lib/5.6.1/sun4-solaris - I/opt/local/perl.5.6.1/lib/5.6.1 test.pl 1..4 ok 1 ok 2 not ok 3 not ok 4 ok 5 I think that having D(E(M))=M is more important then comparing against a precoded scalar. Am I right? .kai
[guest - Wed Apr 24 06:34:29 2002]: This is what I had to hack to get it to compile. Then the normal perl Makefile.PL;make;make test all work. At least with perl 5.6.1... I couldn't find endian.h but I found that arpa/nameser_compat.h had BYTE_ORDER and LITTLE_ENDIAN defined after grepping thru /usr/include diff -r Crypt-IDEA-1.01/IDEA.xs Crypt-IDEA-1.01-solaris/IDEA.xs 66c66 < if (output == &sv_undef) --- Show quoted text
> if (output == &PL_sv_undef)
diff -r Crypt-IDEA-1.01/idea.c Crypt-IDEA-1.01-solaris/idea.c 8c8 < #include <endian.h> --- Show quoted text
> #include <arpa/nameser_compat.h>
diff -r Crypt-IDEA-1.01/idea.h Crypt-IDEA-1.01-solaris/idea.h 3a4 Show quoted text
> typedef uint16_t u_int16_t;
Show quoted text
> we have the same problems on Solaris 8. > > The compilation succeeded after we added the following line in idea.h > (line 4) > #define u_int16_t uint16_t > > We also had to remove the "#include <endian.h>" from idea.c > > But unfortunately, tests 3 and 4 failed (no matter how we define > BYTE_ORDER) > > Cheers, > > Michael > > [guest - Tue Apr 23 19:45:22 2002]: >
> > Here is the output when trying to compile the package > > > > I have tried this on Solaris 7 running perl 5.001 and on windows
using Show quoted text
> > cygwin, perl version 5.6.1 and 5.0. > > > > Anyone have any ideas?? I have applied the patches and
workarounds and Show quoted text
> > nothing works. I want to use SCP and SSH in a script I am writing. > > > > Cheers > > > > Todd. > > > > > > bash-2.03# perl Makefile.PL POLLUTE=1 > > PREFIX=/export/home/todd/ssh_perl > > Writing Makefile for Crypt::IDEA > > bash-2.03# make test > > gcc -c -fno-strict-aliasing -I/usr/local/include
-D_LARGEFILE_SOURCE Show quoted text
> > -D_FILE_OFFSET_BITS=64 -DPERL_POLLUTE -O
-DVERSION=\"1.01\" Show quoted text
> > -DXS_VERSION=\"1.01\" -fPIC > > -I/usr/local/lib/perl5/5.6.1/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:20: parse error before "ks" > > IDEA.xs:26: `u_int16_t' undeclared (first use in this function) > > IDEA.xs:26: (Each undeclared identifier is reported only once > > IDEA.xs:26: for each function it appears in.) > > IDEA.xs:26: parse error before ')' token > > IDEA.xs:28: `ks' undeclared (first use in this function) > > IDEA.xs: In function `XS_Crypt__IDEA_invert_key': > > IDEA.xs:37: `u_int16_t' undeclared (first use in this function) > > IDEA.xs:37: parse error before "iks" > > IDEA.xs:43: parse error before ')' token > > IDEA.xs:45: `iks' undeclared (first use in this function) > > IDEA.xs: In function `XS_Crypt__IDEA_crypt': > > IDEA.xs:73: `u_int16_t' undeclared (first use in this function) > > IDEA.xs:73: parse error before ')' token > > make: *** [IDEA.o] Error 1 > > bash-2.03# make install > > gcc -c -fno-strict-aliasing -I/usr/local/include
-D_LARGEFILE_SOURCE Show quoted text
> > -D_FILE_OFFSET_BITS=64 -DPERL_POLLUTE -O
-DVERSION=\"1.01\" Show quoted text
> > -DXS_VERSION=\"1.01\" -fPIC > > -I/usr/local/lib/perl5/5.6.1/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:20: parse error before "ks" > > IDEA.xs:26: `u_int16_t' undeclared (first use in this function) > > IDEA.xs:26: (Each undeclared identifier is reported only once > > IDEA.xs:26: for each function it appears in.) > > IDEA.xs:26: parse error before ')' token > > IDEA.xs:28: `ks' undeclared (first use in this function) > > IDEA.xs: In function `XS_Crypt__IDEA_invert_key': > > IDEA.xs:37: `u_int16_t' undeclared (first use in this function) > > IDEA.xs:37: parse error before "iks" > > IDEA.xs:43: parse error before ')' token > > IDEA.xs:45: `iks' undeclared (first use in this function) > > IDEA.xs: In function `XS_Crypt__IDEA_crypt': > > IDEA.xs:73: `u_int16_t' undeclared (first use in this function) > > IDEA.xs:73: parse error before ')' token > > make: *** [IDEA.o] Error 1
> >
The best advice I can give you for building up a tool which can deal with SSH is to use Crypt::Blowfish. It doesn't have any of the problems IDEA has and it is also has no patent issues. Fixing endian issues with Crypt::IDEA is on the list of things for me to do .. but it's fairly far down that list. -dsp