Is gcc version 2.95.2 the same compiler you used to compile perl?
The compiler configuration used to build perl is also used to build binary modules,
so compiling modules with a different compiler can cause problems. | [reply] |
No, the installation of perl on the box is the default perl installation that comes with Solaris 8, however the default cc compiler also failed to compile the perl modules (however I switched to gcc because I had needed it to install another program) and it seemed to get furthur into the Module compile than the default cc compiler. I will post the errors from that cc compiler tommorow as I am leaving work now.However I do remember it saying something like the:
cc: language depend not recognized
Line in the gcc error message.
LordOmar
| [reply] |
The default Sun compiler really isn't up to much. As
you know, gcc is far better.
Your problem is that you have some pre-built Sun version
of Perl which was built using Sun's compiler. This therefore
expects all new modules to be compiled with the same
compiler (or, more accurately, the same compiler options).
As the Sun compiler and gcc have different
command-line options, you see the problems that you are
getting.
I've never yet seen a pre-built Perl that I really have
confidence in, so my solution would be to rebuilt Perl
from the sources using gcc.
--
<http://www.dave.org.uk>
"Perl makes the fun jobs fun
and the boring jobs bearable" - me
| [reply] |
I've seen the -KPIC trouble; Sol's cc using one form and
gcc uses another (lower case maybe?).
The Config.pm has the options used on the perl compile
and they get put in when installing modules, so you've got that
conflict. Same w/ the "language" depend, you're getting
the command line for one compiler (gcc, I guess) w/ the
other (cc). I've modified Config.pm (probably a really
bad idea), you're probably looking at other troubles and
'changing' compilers isn't going to help. Lord, er, goodness,
er, Larry knows I tried it enough.
a
| [reply] |