From: Wil C. <wc...@na...> - 2006-07-14 20:43:55
|
On Tue, 2006-07-11 at 19:08 -0500, John Tesch wrote: >=20 > Because the PERL for AIX was compiled with the IBM C compiler, I've > found you really need to have it installed when compiling other > modules. Trying to use gcc just doesn't work. In looking at other > mailing lists the requirement to compile modules with the same > compiler as PERL was compiled with seems to not be just an IBM AIX > problem, but quite common.=20 I build my own Perl, because it's always a little doubtful whether libraries (and XS modules) built with a different compiler than Perl itself is built with will work, even between GCC releases, much less a wholly different compiler. Building Perl with GCC is pretty straight-forward, but there are gotchas--the common GCC message '-b must be at the beginning of the command' is due to GCC receiving CFLAGS (or LDFLAGS?) intended for xlC or a direct call to ld. I noticed with Perl 5.8.7 that there were problems with the documented way of using GCC, because the Configure script would use CC=3Dgcc but *FLAGS intended for xlC. Here's the incantation I found that worked: bash ${PERLSRC}/Configure -des \ -Dcc=3Dgcc -Dusethreads \ -Dprefix=3D/usr/local/perl5 \ -Dmksymlinks Wil --=20 Wil Cooley <wc...@na...> Naked Ape Consulting, Ltd |