Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Compiling Module

by pkhayeskp (Initiate)
on Jun 01, 2012 at 14:35 UTC ( #973786=perlquestion: print w/ replies, xml ) Need Help??
pkhayeskp has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to compile this information but getting an error. I am compiling the module - Params-Util-1.07.
# make gcc -c -D_POSIX_C_SOURCE=199506L -D_REENTRANT -Ae -D_HPUX_S +OURCE -Wl, +vnocompatwarnings +DAportable +DS2.0 +Z -DUSE_SITECUSTOMIZE -DNO_HASH +_SEED -D_L ARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fast +Onolimit +Opromote_indir +ect_calls -DVERSION=\"1.07\" -DXS_VERSION=\"1.07\" +Z "-I/opt/perl_32/lib/5. +8.8/PA-RIS C1.1-thread-multi/CORE" -DPERL_EXT Util.c gcc: +DAportable: No such file or directory gcc: +DS2.0: No such file or directory gcc: +Z: No such file or directory gcc: +Onolimit: No such file or directory gcc: +Opromote_indirect_calls: No such file or directory gcc: +Z: No such file or directory cc1: unrecognized option `-fast' *** Error exit code 1 Stop. #
Help

Comment on Compiling Module
Download Code
Re: Compiling Module
by Eliya (Vicar) on Jun 01, 2012 at 15:40 UTC
    ... gcc: +DAportable: No such file or directory gcc: +DS2.0: No such file or directory gcc: +Z: No such file or directory gcc: +Onolimit: No such file or directory gcc: +Opromote_indirect_calls: No such file or directory gcc: +Z: No such file or directory cc1: unrecognized option `-fast' *** Error exit code 1

    gcc doesn't understand the HP compiler specific options +DAportable, +DS2.0, +Z, etc.

    In case you're wondering where they're coming from:  Perl remembers how exactly it's been built, to be able to produce compatible extensions; and your perl apparently hasn't been built with gcc.

    So, either use HP's system compiler to build extension modules for your existing perl, or build your own perl with gcc, in which case you can then also use it to compile extension modules.

      Thanks for the info.
        FWIW, FYI, an extra piece of advice, build an extra perl with gcc , don't overwrite the system perl, it will undoubtedly break some system utilities (more work for you)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://973786]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (9)
As of 2014-12-27 17:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls