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




Geoffrey Endresen wrote:
> I would not be concerned about the warnings if the actual code worked, 
> but I still keep getting the warings.
> 
> This time I tried -m32. But I still get the cast warnings.
> 
> How can I get rid of these?
> 
> 
> -------| remedy-dev-4715: ~/ARSperl-1.91 |---------
> % make
> Skip blib/lib/ARSarerrno-h.pm (unchanged)
> Skip blib/lib/ARSnparm.pm (unchanged)
> Skip blib/lib/artypes.ph <http://artypes.ph> (unchanged)
> Skip blib/lib/_h2ph_pre.ph <http://h2ph_pre.ph> (unchanged)
> Skip blib/lib/ARSar-h.pm (unchanged)
> Skip blib/lib/ARSnterrno-h.pm (unchanged)
> Skip blib/lib/ARSnt-h.pm (unchanged)
> Skip blib/lib/ARSOOsup.pm (unchanged)
> Skip blib/lib/ARSOOmsgs.pm (unchanged)
> Skip blib/lib/ARSOOform.pm (unchanged)
> Skip blib/lib/ARS.pm (unchanged)
> cc -c  -I/opt/ar/remedy-app/api/include -pthread -fno-strict-aliasing 
> -pipe -Wdeclaration-after-statement -I/usr/local/include 
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O3   
> -DVERSION=\"1.91\" -DXS_VERSION=\"1.91\" -fpic 
> "-I/local/apollo/package/local_1/Linux-2.6c2.5-i686/Perl/Perl-124.0-1/perl/bin/perl5.8/../../lib/perl5.8-dist/Linux-2.6c2.5-i686-64int/CORE"
>   
> -g  -DARS32  -DARS452  -m32  -DPERL_PATCHLEVEL_IS=8 
> -DPERL_SUBVERSION_IS=8 -DPERL_BASEREV_IS=50  ARS.c
> 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
> cc -c  -I/opt/ar/remedy-app/api/include -pthread -fno-strict-aliasing 
> -pipe -Wdeclaration-after-statement -I/usr/local/include 
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O3   
> -DVERSION=\"1.91\" -DXS_VERSION=\"1.91\" -fpic 
> "-I/local/apollo/package/local_1/Linux-2.6c2.5-i686/Perl/Perl-124.0-1/perl/bin/perl5.8/../../lib/perl5.8-dist/Linux-2.6c2.5-i686-64int/CORE"
>   
> -g  -DARS32  -DARS452  -m32  -DPERL_PATCHLEVEL_IS=8 
> -DPERL_SUBVERSION_IS=8 -DPERL_BASEREV_IS=50  support.c
> support.c: In function 'get_logging_file_ptr':
> support.c:123: warning: cast to pointer from integer of different size
> cc -c  -I/opt/ar/remedy-app/api/include -pthread -fno-strict-aliasing 
> -pipe -Wdeclaration-after-statement -I/usr/local/include 
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O3   
> -DVERSION=\"1.91\" -DXS_VERSION=\"1.91\" -fpic 
> "-I/local/apollo/package/local_1/Linux-2.6c2.5-i686/Perl/Perl-124.0-1/perl/bin/perl5.8/../../lib/perl5.8-dist/Linux-2.6c2.5-i686-64int/CORE"
>   
> -g  -DARS32  -DARS452  -m32  -DPERL_PATCHLEVEL_IS=8 
> -DPERL_SUBVERSION_IS=8 -DPERL_BASEREV_IS=50  supportrev.c
> supportrev.c: In function 'rev_ARAssignFieldStruct_helper':
> supportrev.c:1735: warning: cast to pointer from integer of different size
> cc -c  -I/opt/ar/remedy-app/api/include -pthread -fno-strict-aliasing 
> -pipe -Wdeclaration-after-statement -I/usr/local/include 
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O3   
> -DVERSION=\"1.91\" -DXS_VERSION=\"1.91\" -fpic 
> "-I/local/apollo/package/local_1/Linux-2.6c2.5-i686/Perl/Perl-124.0-1/perl/bin/perl5.8/../../lib/perl5.8-dist/Linux-2.6c2.5-i686-64int/CORE"
>   
> -g  -DARS32  -DARS452  -m32  -DPERL_PATCHLEVEL_IS=8 
> -DPERL_SUBVERSION_IS=8 -DPERL_BASEREV_IS=50  supportrev_generated.c
> Running Mkbootstrap for ARS ()
> chmod 644 ARS.bs
> rm -f blib/arch/auto/ARS/ARS.so
> LD_RUN_PATH="/lib:/opt/ar/remedy-app/api/lib" cc  -shared 
> -L/usr/local/lib ARS.o support.o supportrev.o supportrev_generated.o 
> /opt/ar/remedy-app/api/lib/libar.a  -o blib/arch/auto/ARS/ARS.so     \
>            -L/opt/ar/remedy-app/api/lib -lpthread -licuucbmc 
> -licui18nbmc       \
> 
> chmod 755 blib/arch/auto/ARS/ARS.so
> cp ARS.bs blib/arch/auto/ARS/ARS.bs
> chmod 644 blib/arch/auto/ARS/ARS.bs
> 
> 
> 
> -- 
> -Geoff Endresen
> Amazon.com
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Arsperl-users mailing list
> Arsperl-users@arsperl.org
> https://lists.sourceforge.net/lists/listinfo/arsperl-users


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Arsperl-users mailing list
Arsperl-users@arsperl.org
https://lists.sourceforge.net/lists/listinfo/arsperl-users

Reply via email to