This is what I wrote some months ago to someone else (Geoffrey Endresen)
who appeared to have the same problem:

----------------------

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.

----------------------

He replied that he would try that, but I don't know if he was successful.


Regards
Thilo



[EMAIL PROTECTED] wrote:
> Hi,
> 
>  
> 
> I’m trying to compile ARSPerl 1.91on a 64 bit Redhat linux EL5 system.  
> When I run make, it fails with the following error: 
> 
>  
> 
> [EMAIL PROTECTED] ARSperl-1.91]# make
> 
> cp ARSarerrno-h.pm blib/lib/ARSarerrno-h.pm
> 
> cp ARSnparm.pm blib/lib/ARSnparm.pm
> 
> cp artypes.ph blib/lib/artypes.ph
> 
> cp _h2ph_pre.ph blib/lib/_h2ph_pre.ph
> 
> cp ARSar-h.pm blib/lib/ARSar-h.pm
> 
> cp ARSnterrno-h.pm blib/lib/ARSnterrno-h.pm
> 
> cp ARSnt-h.pm blib/lib/ARSnt-h.pm
> 
> cp ARSOOsup.pm blib/lib/ARSOOsup.pm
> 
> cp ARSOOmsgs.pm blib/lib/ARSOOmsgs.pm
> 
> cp ARSOOform.pm blib/lib/ARSOOform.pm
> 
> cp ARS.pm blib/lib/ARS.pm
> 
> AutoSplitting blib/lib/ARS.pm (blib/lib/auto/ARS)
> 
> /usr/bin/perl /usr/lib/perl5/5.8.8/ExtUtils/xsubpp  -typemap 
> /usr/lib/perl5/5.8.8/ExtUtils/typemap -typemap typemap  ARS.xs > ARS.xsc 
> && mv ARS.xsc ARS.c
> 
> gcc -c  -I/remedy/arheaders/remedy_7.01/api/include -D_REENTRANT 
> -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement 
> -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 
> -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 
> -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 
> -mtune=generic   -DVERSION=\"1.91\" -DXS_VERSION=\"1.91\" -fPIC 
> "-I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE"  -g   
> -Wno-unused-variable -Wuninitialized  -DARS32  -DARS452  -malign-double  
> -DPERL_PATCHLEVEL_IS=8 -DPERL_SUBVERSION_IS=8 -DPERL_BASEREV_IS=50  ARS.c
> 
> ARS.c:1: error: -malign-double makes no sense in the 64bit mode
> 
> make: *** [ARS.o] Error 1
> 
>  
> 
>  
> 
> I’ve tried the two solutions below which were in response to a post by 
> Chris Ford on 5/15/08.  Neither worked.
> 
>  
> 
> Solution 1:
> 
> You can run both 32-bit and 64-bit programs on 64-bit linux. Compile
> arsperl 32-bit by setting the CPPFLAGS to include -m32:
> 
> $ export CPPFLAGS="${CPPFLAGS} -m32"
> 
> Axton Grams
> 
> Solution 2:
> On Thu, May 15, 2008 at 7:33 PM, Rusty Copeland <[EMAIL PROTECTED]> wrote:
>>  Chris,
>>
>>  In the Makefile you could remove references to "-malign-double" which 
> seems to be causing your problem. That may fix that problem but the fact 
> you're compiling on a 64 bit system might cause other issues. Last I 
> heard the Remedy libraries are only available as 32 bit libraries. I 
> never had luck compiling ARSPerl on a 64 bit system. But perhaps that's 
> changed.
>>
>>  Rusty
>>
> 
>  
> 
> Has anyone successfully compiled ARSPerl 1.91on a 64 bit system? 
> 
>  
> 
> Thanks
> 
>  
> 
> --Wayne
> 
>  
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> 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
> Arsperl-users@arsperl.org
> 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
Arsperl-users@arsperl.org
https://lists.sourceforge.net/lists/listinfo/arsperl-users

Reply via email to