in reply to Re: Re: Problems Compiling Modules.
in thread Problems Compiling Modules.

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

  • Comment on Re: Re: Re: Problems Compiling Modules.

Replies are listed 'Best First'.
Re: Re: Re: Re: Problems Compiling Modules.
by LordOmar (Novice) on Dec 14, 2000 at 04:18 UTC
    A big Thanks for all the help on this one. I'll be reinstalling perl using gcc.

    You Monks rock.

    -LO
Re: Re: Re: Re: Problems Compiling Modules.
by LordOmar (Novice) on Dec 14, 2000 at 22:27 UTC
    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

      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

        You can also see the configuration of specific options, like this:
        % perl -V:cc -V:ccflags cc='cc'; ccflags='-Dbool=char -DHAS_BOOL -I/usr/local/include';