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] |
A big Thanks for all the help on this one. I'll be reinstalling perl using gcc.
You Monks rock.
-LO
| [reply] |
Well I reinstalled perl using gcc, and I'm still suck, when I use cc to compile to module I get
/usr/ucb/cc: language optional software package not installed
I can't seem to find any packages anywhere for Sun's cc compiler, so I'm getting most frustrated
I may have to attempt modifying the Config.pm as suggested earlier, but with my skill level i am hesistant.
Once again I thank all here for their help in this matter.
LO
| [reply] |
Hmm... check that the first perl on your path
is the one that you've just rebuilt using gcc.
Also try running perl -V to see the config
options that your perl was built with. The 'cc'
option should be about eight lines down.
--
<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] |