Topic Options
Rate This Topic
#125482 - 10/12/05 08:58 AM Compiling ARS module on Linux
SGodin Offline
Just Signed Up

Registered: 10/12/05
Posts: 3
Hi,

I am trying to install the ARS Perl module on a Linux server. I downloaded the ARSperl-1.84 package from CPAN.org.

I modified the Makefile.PL file to point to the API's. I ran the Makefile.PL and it went ok. Then I did 'make' and then 'make install'. I get this error when I run 'make install' :

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Skip blib/lib/ARSarerrno-h.pm (unchanged)
Skip blib/lib/artypes.ph (unchanged)
Skip blib/lib/ARSnparm.pm (unchanged)
Skip blib/lib/_h2ph_pre.ph (unchanged)
Skip blib/lib/ARSar-h.pm (unchanged)
Skip blib/lib/ARSnt-h.pm (unchanged)
Skip blib/lib/ARSnterrno-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/usr/lib/perl5/5.8.0/api/include -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O3 --pipe -DVERSION=\"1.84\" -DXS_VERSION=\"1.84\" -fPIC "-I/usr/lib/perl5/5.8.0/i586-linux-thread-multi/CORE" -g -DARS32 -DARS452 -malign-double -DPERL_PATCHLEVEL_IS=8 -DPERL_SUBVERSION_IS=0 -DPERL_BASEREV_IS=50 ARS.c
cc -c -I/usr/lib/perl5/5.8.0/api/include -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O3 --pipe -DVERSION=\"1.84\" -DXS_VERSION=\"1.84\" -fPIC "-I/usr/lib/perl5/5.8.0/i586-linux-thread-multi/CORE" -g -DARS32 -DARS452 -malign-double -DPERL_PATCHLEVEL_IS=8 -DPERL_SUBVERSION_IS=0 -DPERL_BASEREV_IS=50 support.c
cc -c -I/usr/lib/perl5/5.8.0/api/include -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O3 --pipe -DVERSION=\"1.84\" -DXS_VERSION=\"1.84\" -fPIC "-I/usr/lib/perl5/5.8.0/i586-linux-thread-multi/CORE" -g -DARS32 -DARS452 -malign-double -DPERL_PATCHLEVEL_IS=8 -DPERL_SUBVERSION_IS=0 -DPERL_BASEREV_IS=50 supportrev.c
Running Mkbootstrap for ARS ()
chmod 644 ARS.bs
rm -f blib/arch/auto/ARS/ARS.so
LD_RUN_PATH="/lib" cc -shared ARS.o support.o supportrev.o /usr/lib/perl5/5.8.0/api/lib/libar.a -o blib/arch/auto/ARS/ARS.so -L/usr/lib/perl5/5.8.0/api/lib -lpthread
/usr/lib/gcc-lib/i486-suse-linux/3.2.2/../../../../i486-suse-linux/bin/ld:/usr/lib/perl5/5.8.0/api/lib/libar.a: file format not recognized; treating as linker script
/usr/lib/gcc-lib/i486-suse-linux/3.2.2/../../../../i486-suse-linux/bin/ld:/usr/lib/perl5/5.8.0/api/lib/libar.a:1: parse error
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/ARS/ARS.so] Error 1
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Here is the technical info:

Linux SuSE v8.0 SP3
Apache 1.3.26
Perl 5.8.0

To test the installation, I try to execute a little script called test.pl :

#!/usr/local/perl5/bin/perl
use ARS;
print"Hello";


When I tried to run this, I get this error :

Can't locate loadable object for module ARS in @INC (@INC contains: /usr/lib/perl5/5.8.0/i586-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at ./test.pl line 4
Compilation failed in require at ./test.pl line 4.
BEGIN failed--compilation aborted at ./test.pl line 4.


Any help would be very appreciated !

Regards,
SGodin

Top
#125483 - 10/12/05 05:43 PM Re: Compiling ARS module on Linux [Re: tarndt]
Eric_Wolf Offline
Stealth Member

Registered: 09/14/05
Posts: 9
Well, if it didnt do the make install correctly, then it wouldnt work during runtime either.

First off, I haven't had a lot of luck with the latest release, which is why I am staying with 1.83 and 1.82 for now....I couldnt get it to compile either. Are you attempting to upgrade? Or is this a fresh install?
_________________________
The snozzberries taste like snozzberries!

Top
#125484 - 10/13/05 10:11 AM Re: Compiling ARS module on Linux [Re: D_Duong]
SGodin Offline
Just Signed Up

Registered: 10/12/05
Posts: 3
Hi,

Thank you very much for replying to my post.

No, it's a fresh install. We migrated from a Unix server to a Linux server and we are trying to make the ARS module work on our new server.

Would you suggest that I try a older version since the newest version seems to be unstable. If yes, where can I find version 1.83 or 1.82 ?

Thanks,
SGodin

Top
#125485 - 10/13/05 10:52 AM Re: Compiling ARS module on Linux [Re: tarndt]
Anonymous
Unregistered


you can get 1.82 from cpan as well....if you look under the "other releases" dropdown, it should have it there.

They also keep archives of previous releases on Sourceforge:

http://sourceforge.net/project/showfiles.php?group_id=116013

Top
#125486 - 10/13/05 11:56 AM Re: Compiling ARS module on Linux [Re: Anonymous]
Eric_Wolf Offline
Stealth Member

Registered: 09/14/05
Posts: 9
That last post was me, FYI.
_________________________
The snozzberries taste like snozzberries!

Top
#125487 - 11/01/05 03:12 PM Re: Compiling ARS module on Linux [Re: D_Duong]
SGodin Offline
Just Signed Up

Registered: 10/12/05
Posts: 3
Hi,

Sorry for the delay. I installed version 1.82 and it fixed my problem!

Thank you very much!

Best regards,
SGodin76

Top
#125488 - 12/19/05 06:19 PM Re: Compiling ARS module on Linux [Re: tarndt]
Brian_Luke Offline
newbie

Registered: 12/07/05
Posts: 33
I can't speak for linux, but on Windows, the libar.a file has been renamed or merged into a different file or something. I had to change the reference to libar.a in Makefile.PL to arapi63.lib (remember I'm on windows) to get the compile to work. This was ARS 6.3/Windows/ARSPerl 1.85.

Top
#125489 - 12/19/05 06:29 PM Re: Compiling ARS module on Linux [Re: tarndt]
Brian_Luke Offline
newbie

Registered: 12/07/05
Posts: 33
I just downloaded the linux files, and libar.a is present in the api/lib directory. There is also a libar.so. Perhaps try changing the Makefile.PL to reference the .so version instead of the .a version. (dynamic vs static linking)

Top