Re: [Prelude Hybrid IDS] #288: gcc:gcc: unrecognized option `-KPIC'

"Prelude Hybrid IDS" <[email protected]>
Newsgroups gmane.comp.security.ids.prelude.devel
Message-ID <[email protected]>
#288: gcc:gcc: unrecognized option `-KPIC'
------------------------------+---------------------------------------------
 Reporter:  [email protected]  |        Owner:     
     Type:  defect            |       Status:  new
 Priority:  normal            |    Milestone:     
Component:  libprelude        |      Version:  0.9
 Severity:  normal            |   Resolution:     
 Keywords:                    |  
------------------------------+---------------------------------------------

Comment(by pollux):

 Some interesting comments for the exact same problem here:
 [http://cpan.org/modules/by-module/Compress/Compress-Raw-
 Bzip2-2.004.readme]

 Quoting the text:

 === Solaris build fails with "gcc: unrecognized option `-KPIC'" ===

 You are running Solaris and you get an error like this when you try to
 build this Perl module

 {{{
 gcc: unrecognized option `-KPIC'
 }}}

 This symptom usually means that you are using a Perl binary that has been
 built with the Sun C compiler, but you are using gcc to build this module.

 When Perl builds modules that need a C compiler, it will attempt to use
 the same C compiler and command line options that was used to build perl
 itself. In this case "-KPIC" is a valid option for the Sun C compiler,
 but not for gcc. The equivalent option for gcc is "-fPIC".

 The solution is either:

     1. Build both Perl and this module with the same C compiler, either
        by using the Sun C compiler for both or gcc for both.

     2. Try generating the Makefile for this module like this perl

 {{{
 perl Makefile.PL CC=gcc CCCDLFLAGS=-fPIC OPTIMIZE=" " LD=gcc
 make test
 }}}

        This second option seems to work when mixing a Perl binary built
        with the Sun C compiler and this module built with gcc. Your
        mileage may vary.

-- 
Ticket URL: <https://trac.prelude-ids.org/ticket/288#comment:4>
Prelude Hybrid IDS <http://www.prelude-ids.org>
The Prelude Hybrid Intrusion Detection System suite
_______________________________________________
Prelude-devel site list
[email protected]
http://lists.prelude-ids.org/mailman/listinfo/prelude-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.