hello!

I'm new to this group so any help would be gratefully appreciated.

A colleague (who has now left) created an xsub initially on a SuSE 
linux machine with perl 5.8.0 and gcc - this worked fine.

We ported that to HPUX 11.00 with gcc, again with perl 5.8.0. This 
worked fine too.

I am now trying to get this working on a HPUX 10.20 with a HP ansi C 
compiler (again with perl 5.8.0) - and I'm coming across big problems.

The output from make is


perl Makefile.PL

Checking if your kit is complete...
Looks good
MakeMaker (v6.03)
Warning (non-fatal): Target 'dynamic' depends on targets in skipped 
section 'dynamic_lib'
Warning (non-fatal): Target 'static' depends on targets in skipped 
section 'static_lib'
Writing Makefile for Crypt::RC4XS::rc4
Writing Makefile for Crypt::RC4XS

now doing make ...

cp RC4XS.pm blib/lib/Crypt/RC4XS.pm
AutoSplitting blib/lib/Crypt/RC4XS.pm (blib/lib/auto/Crypt/RC4XS)
        cd rc4 && make 
        cc -c  -I .  -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings -
D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g    -DVERSION=\"\"  -
DXS_VERSION=\"\" +Z "-
I/u/confman/versions/es_temp/root/lib/perl5/5.8.0/PA-RISC1.1/CORE"   
rc4_enc.c
        cc -c  -I .  -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings -
D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g    -DVERSION=\"\"  -
DXS_VERSION=\"\" +Z "-
I/u/confman/versions/es_temp/root/lib/perl5/5.8.0/PA-RISC1.1/CORE"   
rc4_skey.c
        ar cr librc4.a rc4_enc.o rc4_skey.o
        : librc4.a
        ar cr librc4.a rc4_enc.o rc4_skey.o
        : librc4.a
        /u/confman/versions/es_temp/root/bin/perl /u/confman/versions/
es_temp/root/lib/perl5/5.8.0/ExtUtils/xsubpp  -nolinenumbers -
typemap /u/confman/versions/es_temp/root/lib/perl5/5.8.0/ExtUtils/type
map -typemap typemap  RC4XS.xs > RC4XS.xsc && mv RC4XS.xsc RC4XS.c
        cc -c  -I.  -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings -
D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g    -DVERSION=\"0.01\"  -
DXS_VERSION=\"0.01\" +Z "-
I/u/confman/versions/es_temp/root/lib/perl5/5.8.0/PA-RISC1.1/CORE"   
RC4XS.c
cc: "RC4XS.c", line 146: error 1000: Unexpected symbol: "SV".
cc: "RC4XS.c", line 147: error 1000: Unexpected symbol: "unsigned".
cc: "RC4XS.c", line 150: error 1588: "out" undefined.
cc: "RC4XS.c", line 151: error 1532: Reference through a non-pointer.
cc: "RC4XS.c", line 151: error 1527: Incompatible types in cast: Must 
cast from scalar to scalar or to void type.
cc: "RC4XS.c", line 151: error 1588: "XSauto_length_of_indata" 
undefined.
cc: "RC4XS.c", line 151: warning 563: Argument #1 is not the correct 
type.
cc: "RC4XS.c", line 151: warning 563: Argument #2 is not the correct 
type.
cc: "RC4XS.c", line 151: error 1532: Reference through a non-pointer.
cc: "RC4XS.c", line 151: error 1527: Incompatible types in cast: Must 
cast from scalar to scalar or to void type.
cc: "RC4XS.c", line 151: error 1552: First expression of ?: must be 
arithmetic.
cc: "RC4XS.c", line 152: error 1532: Reference through a non-pointer.
cc: "RC4XS.c", line 152: error 1532: Reference through a non-pointer.
cc: "RC4XS.c", line 152: error 1527: Incompatible types in cast: Must 
cast from scalar to scalar or to void type.
cc: "RC4XS.c", line 152: error 1532: Reference through a non-pointer.
cc: "RC4XS.c", line 152: error 1527: Incompatible types in cast: Must 
cast from scalar to scalar or to void type.
cc: "RC4XS.c", line 152: warning 563: Argument #1 is not the correct 
type.
cc: "RC4XS.c", line 152: warning 604: Pointers are not assignment-
compatible.
cc: "RC4XS.c", line 152: warning 563: Argument #2 is not the correct 
type.
cc: "RC4XS.c", line 152: warning 527: Integral value implicitly 
converted to pointer in assignment.
cc: "RC4XS.c", line 152: warning 563: Argument #3 is not the correct 
type.
cc: "RC4XS.c", line 152: error 1552: First expression of ?: must be 
arithmetic.
cc: "RC4XS.c", line 152: warning 604: Pointers are not assignment-
compatible.
cc: "RC4XS.c", line 154: warning 563: Argument #3 is not the correct 
type.
cc: "RC4XS.c", line 157: error 1588: "key" undefined.
cc: "RC4XS.c", line 157: warning 563: Argument #1 is not the correct 
type.
cc: "RC4XS.c", line 157: error 1527: Incompatible types in cast: Must 
cast from scalar to scalar or to void type.
cc: "RC4XS.c", line 157: warning 527: Integral value implicitly 
converted to pointer in assignment.
cc: "RC4XS.c", line 157: warning 563: Argument #2 is not the correct 
type.
cc: "RC4XS.c", line 157: error 1588: "indata" undefined.
cc: "RC4XS.c", line 157: warning 563: Argument #3 is not the correct 
type.
cc: "RC4XS.c", line 157: warning 526: Pointer implicitly converted to 
integral value in assignment.
cc: "RC4XS.c", line 157: warning 563: Argument #4 is not the correct 
type.
cc: "RC4XS.c", line 161: error 1532: Reference through a non-pointer.
cc: "RC4XS.c", line 161: error 1527: Incompatible types in cast: Must 
cast from scalar to scalar or to void type.
cc: "RC4XS.c", line 162: error 1588: "RETVAL" undefined.
cc: "RC4XS.c", line 182: error 1000: Unexpected symbol: "RC4_KEY".
cc: "RC4XS.c", line 190: error 1588: "XSauto_length_of_kdata" 
undefined.
cc: "RC4XS.c", line 190: warning 563: Argument #2 is not the correct 
type.
cc: "RC4XS.c", line 190: error 1588: "kdata" undefined.
cc: "RC4XS.c", line 190: warning 563: Argument #3 is not the correct 
type.
cc: "RC4XS.c", line 193: error 1588: "RETVAL" undefined.
cc: "RC4XS.c", line 195: error 1527: Incompatible types in cast: Must 
cast from scalar to scalar or to void type.
*** Error exit code 1

Stop.



I think there is something fundamentally wrong otherwise it would 
never have built on the other platforms.

Can anyone help?

thanks,

Raj

Reply via email to