There is no support for 64-bit. I installed ARSperl-1.91 on 64-bit RHEL 5.6. 
Here is how I did it:

I am running ARS 7.6.3, so I had to install ARS 7.1 on the 64-bit machine.
I built as 32-bit Perl interpreter on Fedora Core 13 and copied it to the 
64-bit machine.
I unpacked ARSperl-1.91 and modified $ARSAPI in the Makefile.PL to point to the 
7.1 API. 
ARSperl-1.91 already has $ARSVERSION = 7.1; No need to change this.
I compiled Makefile.PL with the 32-bit interpreter:

% perl Makefile.PL

Next I added the -m32 switch to the following flags in the Makefile created by 
the previous command: (This information was provided by Steve Kallestad of 
Ingenuity Professional Services.)

CCCDLFLAGS = -fPIC -m32
CCDLFLAGS = -Wl,-E -m32
LDDLFLAGS = -shared -O2 -L/usr/local/lib -fstack-protector -m32
LDFLAGS =  -fstack-protector -L/usr/local/lib -m32

I compiled and installed ARSperl with the following normal commands:

% make
% make install

-----Original Message-----
From: Misi Mladoniczky [mailto:m...@rrr.se] 
Sent: Friday, March 18, 2011 3:59 AM
To: ARSperl User Discussion
Subject: Re: [Arsperl-users] arsperl 1.92 and ars 7.5 64bit

Any luck with this?

I am trying to compile on linux with ARAPI 7.6.3.

To get it to compile I changed the Makefile to include the libicu*bmc libraries.

EXTRALIBS = -L/home/share/ars/api/api763linux/bin -lnsl LDLOADLIBS = 
-L/home/share/ars/api/api763linux/bin -lnsl -lpthread
-licuucbmc_lx64 -licui18nbmc_lx64 -licudatabmc_lx64

The output from "make test" is:
t/00connect.t ........... *** glibc detected *** /usr/bin/perl: double free or 
corruption (fasttop): 0x00000000024138d0 ***

Any ideas on how to get forward here?

         Best Regards - Misi, RRR AB, http://rrr.se/sv/

> Hi there,
> I'm trying to get arsperl 1.92 work with ARS 7.5 64-bit(lx64) 
> libraries, but when I run make test, I am getting the following error:
>
> PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
> "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00connect.t 
> ........... *** glibc detected *** /usr/bin/perl: double free or 
> corruption (fasttop): 0x00000000018dbbe0 ***
>
> And the test just hangs there. I have to ctrl-c to come out.
>
> Running it under gdb, it seems like there's a bug in the code(?) that 
> does a double free or something? Here's a partial backtrace from gdb:
> *#16 0x00007ff6222bd5b6 in malloc_printerr (action=3, 
> str=0x7ff622390c70 "double free or corruption (fasttop)", ptr=<value 
> optimized out>) at
> malloc.c:6266*
> *#17 0x00007ff6222c3e83 in __libc_free (mem=<value optimized out>) at
> malloc.c:3738*
> *#18 0x00007ff621c8e933 in slt_free () from
> /usr/local/lib/perl/5.10.1/auto/ARS/ARS.so*
> *#19 0x00007ff621b7bf29 in ClientConnToPort () from
> /usr/local/lib/perl/5.10.1/auto/ARS/ARS.so*
> *#20 0x00007ff621b5c573 in IssueRPCToARServer () from
> /usr/local/lib/perl/5.10.1/auto/ARS/ARS.so*
> *#21 0x00007ff621b5c0c4 in ARRPCCallServer () from
> /usr/local/lib/perl/5.10.1/auto/ARS/ARS.so*
> *#22 0x00007ff621b803d9 in ARGetEncryptInfo () from
> /usr/local/lib/perl/5.10.1/auto/ARS/ARS.so*
> *#23 0x00007ff621b7e754 in ARKeyExchangeHandler () from
> /usr/local/lib/perl/5.10.1/auto/ARS/ARS.so*
> *#24 0x00007ff621b7e591 in ARKeyExchange () from
> /usr/local/lib/perl/5.10.1/auto/ARS/ARS.so*
> *#25 0x00007ff621b60881 in ARLoadRPCControlStruct1 () from
> /usr/local/lib/perl/5.10.1/auto/ARS/ARS.so*
> *#26 0x00007ff621b6024d in ARLoadRPCControlStruct () from
> /usr/local/lib/perl/5.10.1/auto/ARS/ARS.so*
> *#27 0x00007ff621b713ef in ARVerifyUser () from
> /usr/local/lib/perl/5.10.1/auto/ARS/ARS.so*
> *#28 0x00007ff621b12a74 in XS_ARS_ars_Login (my_perl=<value optimized
> out>,
> cv=<value optimized out>) at ARS.xs:426*
>
> It's the same result with or without -malign_double option. The 
> architecture is "lx64" and the linking was done as so:
> LD_RUN_PATH="/usr/ar/7.5/api/lib" cc  -shared -O2 -g -L/usr/local/lib
> -fstack-protector ARS.o support.o supportrev.o supportrev_generated.o   -o
> blib/arch/auto/ARS/ARS.so /usr/ar/7.5/api/lib/libar_lx64.a \
>    -L/usr/ar/7.5/api/lib -lnsl -lpthread -licuucbmc_lx64 
> -licui18nbmc_lx64
> -licudatabmc_lx64
>
> Has anyone got arsperl1.92 work with 64-bit perl and 64-bit 7.5 ar 
> libs on Linux? Any pointers/suggestions will be highly appreciated!
>
> --
> ~H
> http://www.harishkotha.com
> ----------------------------------------------------------------------
> -------- Free Software Download: Index, Search & Analyze Logs and 
> other IT data in Real-Time with Splunk. Collect, index and harness all 
> the fast moving IT data generated by your applications, servers and 
> devices whether physical, virtual or in the cloud. Deliver compliance 
> at lower cost and gain new business insights. 
> http://p.sf.net/sfu/splunk-dev2dev
>
> --
> Arsperl-users mailing list
> Arsperl-users@arsperl.org
> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>



------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit for your organization - 
today and in the future.
http://p.sf.net/sfu/internap-sfd2d


--
Arsperl-users mailing list
Arsperl-users@arsperl.org
https://lists.sourceforge.net/lists/listinfo/arsperl-users

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d


--
Arsperl-users mailing list
Arsperl-users@arsperl.org
https://lists.sourceforge.net/lists/listinfo/arsperl-users

Reply via email to