develooper Front page | perl.perl5.porters | Postings from May 2008

Compiling perl (5.10.x) with gcc <= 3.2.3

Thread Next
From:
Bram
Date:
May 16, 2008 09:45
Subject:
Compiling perl (5.10.x) with gcc <= 3.2.3
Message ID:
20080516184436.wm40kxptbkoswcc4@horde.wizbit.be

I've been installing all versions of gcc to test if Perl can compile
with it and how if it passes all test.

With gcc <= 3.2.3 I get:

./Configure -des -Dusedevel=y -Dcc=/opt/gcc/3.2.3/bin/gcc
==> No errors,

make
==> No errors,

make test
t/base/rs.....................................................Can't
load '../lib/auto/PerlIO/scalar/scalar.so' for module PerlIO::scalar:
libgcc_s.so.1: cannot open shared object file: No such file or
directory at ../lib/XSLoader.pm line 64.
   at ../lib/PerlIO/scalar.pm line 4


./perl harness
Can't load '../lib/auto/File/Glob/Glob.so' for module File::Glob:
libgcc_s.so.1: cannot open shared object file: No such file or
directory at ../lib/XSLoader.pm line 64.
   at ../lib/File/Glob.pm line 96
Compilation failed in require at harness line 69.
BEGIN failed--compilation aborted at harness line 69.



I have the file libgcc_s.so.1 in /opt/gcc/3.2.3/lib/libgcc_s.so.1
(gcc was compiled with prefix=/opt/gcc/3.2.3)


Setting  LD_LIBRARY_PATH  to  /opt/gcc/3.2.3/lib/ and running make  
test results in 'All tests successful.'.


If I build it with gcc > 3.2.3 then setting LD_LIBRARY_PATH is not needed.


Is this the normal/expected behavior?


Kind regards,

Bram



Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About