<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Compiler error - gcc in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/compiler-error-gcc/m-p/3558804#M226093</link>
    <description>You're asking about Solaris in an HP-UX Forum? The gcc equivalent option to -KPIC is -pie (Position independent). Generally there is a "configure" script that will search your platform for the compiler and generate a makefile woith matching options. You are going to have to do a man gcc and match each option with it's equivalent for the Solaris cc compiler unless you can run configure again.</description>
    <pubDate>Mon, 06 Jun 2005 14:17:50 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2005-06-06T14:17:50Z</dc:date>
    <item>
      <title>Compiler error - gcc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiler-error-gcc/m-p/3558803#M226092</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I was tring to compile MIME-Base64-3.05 in SUN Solaris box. &lt;BR /&gt;&lt;BR /&gt;MIME uses "cc" for compilation. I don't have "cc" installed in my box. SO i changed the "cc" flag in the makefile to "gcc" and tried the compilation. &lt;BR /&gt;&lt;BR /&gt;I received the following error:&lt;BR /&gt;&lt;BR /&gt;gcc -c   -xO3 -xdepend     -DVERSION=\"3.05\"  -DXS_VERSION=\"3.05\" -KPIC -I/uc&lt;BR /&gt;gcc: unrecognized option `-KPIC'&lt;BR /&gt;gcc: language depend not recognized&lt;BR /&gt;gcc: Base64.c: linker input file unused since linking not done&lt;BR /&gt;Running Mkbootstrap for MIME::Base64 ()&lt;BR /&gt;chmod 644 Base64.bs&lt;BR /&gt;LD_RUN_PATH="" gcc -o blib/arch/auto/MIME/Base64/Base64.so  -G Base64.o     &lt;BR /&gt;gcc: Base64.o: No such file or directory&lt;BR /&gt;&lt;BR /&gt;I have understood from the error that the options -KPIC is not recognized by "gcc". I am not able to figure out what is the equivalent of "KPIC" in "gcc".&lt;BR /&gt;&lt;BR /&gt;Can anyone please help me resolve this error.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Anand&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Jun 2005 14:09:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiler-error-gcc/m-p/3558803#M226092</guid>
      <dc:creator>Anand_30</dc:creator>
      <dc:date>2005-06-06T14:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Compiler error - gcc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiler-error-gcc/m-p/3558804#M226093</link>
      <description>You're asking about Solaris in an HP-UX Forum? The gcc equivalent option to -KPIC is -pie (Position independent). Generally there is a "configure" script that will search your platform for the compiler and generate a makefile woith matching options. You are going to have to do a man gcc and match each option with it's equivalent for the Solaris cc compiler unless you can run configure again.</description>
      <pubDate>Mon, 06 Jun 2005 14:17:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiler-error-gcc/m-p/3558804#M226093</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-06-06T14:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: Compiler error - gcc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiler-error-gcc/m-p/3558805#M226094</link>
      <description>Thanks Clay,&lt;BR /&gt;&lt;BR /&gt;I actually could not find any good forums for SUN Solaris. SO, I thought I will try in in HP_UX forum. I definitely knew that I will get some answer.&lt;BR /&gt;&lt;BR /&gt;I successfully installed MIME. I had to use 'fKPIC' option and also change a few other parameters with the gcc compiler.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Anand</description>
      <pubDate>Mon, 06 Jun 2005 16:29:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiler-error-gcc/m-p/3558805#M226094</guid>
      <dc:creator>Anand_30</dc:creator>
      <dc:date>2005-06-06T16:29:33Z</dc:date>
    </item>
  </channel>
</rss>

