Re: [Arsperl-users] ARSperl 1.91 make test errors
Brought to you by:
jeffmurphy
|
From: Thilo S. <thi...@ap...> - 2008-09-09 17:46:26
|
As I said, I don't have any experience with 64-bit systems. So I don't
even know if it really is a solution.
That being said, you would probably have to compile ARSperl against the
32-bit Perl, and then specifically invoke that one to run ARSperl.
Regards,
Thilo Stapff
Vaughan, Mark wrote:
> Are there any other possible solutions?
>
> If I can get the SAs to install a 32-bit Perl, do I need to invoke that
> instance when using ARSperl or will the appropriate links already be in
> the ARSperl module so I can use my regular 64-bit?
>
> Sorry for the ignorance.
>
> -----Original Message-----
> From: ars...@ar...
> [mailto:ars...@ar...] On Behalf Of Thilo Stapff
> Sent: Tuesday, September 09, 2008 10:02 AM
> To: ARSperl User Discussion
> Subject: Re: [Arsperl-users] ARSperl 1.91 make test errors
>
>
> I don't have any experience with 64 bit systems so I can only take a
> guess here. To me, the situation looks as follows:
>
> The Remedy API libraries are 32 bit, so ARSperl has to be compiled with
> -m32.
>
> Your Perl interpreter is 64 bit, so ARSperl would also have to be
> compiled as 64 bit, which of course collides with the condition above.
>
> A possible solution might be to compile a Perl interpreter with -m32 and
> use that one for ARSperl.
>
>
> Regards,
> Thilo Stapff
>
>
>
>
> Vaughan, Mark wrote:
>> I have added the '-m32' switch as suggested in another thread, but I
>> still get the same errors:
>>
>> gcc -c -I/export/third-party/remedy/ars/software/ars710p3/api/include
>
>> -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
>> -O -DVERSION=\"1.91\" -DXS_VERSION=\"1.91\" -fPIC
>> "-I/usr/local/lib/perl5/5.8.5/sun4-solaris-64int/CORE" -g
>> -Wno-unused-variable -Wuninitialized -DARS32 -DARS452
>> -DPERL_PATCHLEVEL_IS=8 -DPERL_SUBVERSION_IS=5 -DPERL_BASEREV_IS=50
> -m32
>> ARS.c
>>
>> ARS.c: In function `XS_ARS_ars_CreateField':
>>
>> ARS.xs:3817: warning: `createMode' might be used uninitialized in this
>
>> function
>>
>> ARS.xs: In function `XS_ARS_ars_CreateActiveLink':
>>
>> ARS.xs:5178: warning: cast to pointer from integer of different size
>>
>> ARS.xs: In function `XS_ARS_ars_SetActiveLink':
>>
>> ARS.xs:5340: warning: cast to pointer from integer of different size
>>
>> ARS.xs: In function `XS_ARS_ars_CreateFilter':
>>
>> ARS.xs:5519: warning: cast to pointer from integer of different size
>>
>> ARS.xs: In function `XS_ARS_ars_SetFilter':
>>
>> ARS.xs:5661: warning: cast to pointer from integer of different size
>>
>> ARS.xs: In function `XS_ARS_ars_CreateEscalation':
>>
>> ARS.xs:5828: warning: cast to pointer from integer of different size
>>
>> ARS.xs: In function `XS_ARS_ars_SetEscalation':
>>
>> ARS.xs:5965: warning: cast to pointer from integer of different size
>>
>>
>>
>> Any help would be greatly appreciated.
>>
>>
>>
>> Thanks,
>>
>> Mark Vaughan
>>
>>
> ------------------------------------------------------------------------
>> *From:* ars...@ar...
>> [mailto:ars...@ar...] *On Behalf Of *Vaughan,
> Mark
>> *Sent:* Friday, September 05, 2008 4:02 PM
>> *To:* ARSperl User Discussion
>> *Subject:* [Arsperl-users] ARSperl 1.91 make test errors
>>
>>
>>
>> I have built 1.91 on Solaris 10 using gcc and it compiles with the
> usual
>> array of compilation errors ('warning: cast to pointer from integer of
>
>> different size' mostly).
>>
>>
>>
>> When I run 'make test', I get a handful of 'uninitialized value'
>> warnings inside of ARS.pm, line 49. I traced the problem to sub
>> ARS::ERRORSTR::FETCH. The problem is the messageType array contains
> an
>> invalid value (4294967295). As this value is -1 when using 32 bits
> and
>> casting is working correctly, I'm presuming that I am compiling
>> something incorrectly.
>>
>>
>>
>> The test cases exhibiting this error are:
>>
>> t/21setlogging
>>
>> t/31createschema
>>
>>
>>
>> Thanks,
>>
>> Mark Vaughan
>>
>>
>>
> ------------------------------------------------------------------------
>>
> ------------------------------------------------------------------------
> -
>> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
>> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the
> world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>
>>
>>
> ------------------------------------------------------------------------
>>
>>
>> --
>> Arsperl-users mailing list
>> Ars...@ar...
>> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>
>
> ------------------------------------------------------------------------
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the
> world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>
>
> --
> Arsperl-users mailing list
> Ars...@ar...
> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>
>
> --
> Arsperl-users mailing list
> Ars...@ar...
> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>
|