<?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: CPAN error when compiling C code in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cpan-error-when-compiling-c-code/m-p/3382734#M707345</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;compiling perl modules or other freeware stuff is seldom successful with the original HP-UX cc. All makefiles are designed for gcc. &lt;BR /&gt;&lt;BR /&gt;Since the HP-UX porting center discontinued the 11.00 branch, you can get latest gcc for HP-UX 11.00 from &lt;A href="http://mirrors.develooper.com/" target="_blank"&gt;http://mirrors.develooper.com/&lt;/A&gt; .&lt;BR /&gt;&lt;BR /&gt;I successfully compiled perl modules via CPAN with an gcc 3.3.2 on a HP-UX 11.00 system. Since we have an internal CPAN mirror, I have no hassle with any firewalls :-)&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 23 Nov 2004 07:48:02 GMT</pubDate>
    <dc:creator>Eiff, Volker</dc:creator>
    <dc:date>2004-11-23T07:48:02Z</dc:date>
    <item>
      <title>CPAN error when compiling C code</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpan-error-when-compiling-c-code/m-p/3382733#M707344</link>
      <description>greetings,&lt;BR /&gt;&lt;BR /&gt;i'm trying to setup CPAN on our HP 9000, HP-UX 11.0. i run into an error whenever i try to install a module that contains C code: &lt;BR /&gt;&lt;BR /&gt;cc1: Invalid option `-fno-strict-aliasing'&lt;BR /&gt;*** Error exit code 1&lt;BR /&gt;&lt;BR /&gt;i saw this when installing LWP to get CPAN past our firewall, but worked around it by removing the option from the makefile. is there a way to tell CPAN to remove this option from all its makefiles? or would it be better to upgrade our gcc so it recognizes the option? we do have the standard HP cc compiler, can i tell CPAN to use that? IIRC, i have to use the same compiler that perl used, which is gcc. if we need to upgrade gcc, is it fairly simple or are there known problems? any advice is appreciated. TIA&lt;BR /&gt;&lt;BR /&gt;ken&lt;BR /&gt;&lt;BR /&gt;version info:&lt;BR /&gt;# uname -r&lt;BR /&gt;B.11.00&lt;BR /&gt;&lt;BR /&gt;cpan&amp;gt; i /CPAN/&lt;BR /&gt;...&lt;BR /&gt;Module          CPAN (A/AN/ANDK/CPAN-1.76.tar.gz)&lt;BR /&gt;..&lt;BR /&gt;&lt;BR /&gt;perl was obtained from &lt;A href="http://hpux.connect.org.uk/hppd/hpux/Languages/perl-5.8.3/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Languages/perl-5.8.3/&lt;/A&gt;&lt;BR /&gt;# perl -V&lt;BR /&gt;Summary of my perl5 (revision 5.0 version 8 subversion 3) configuration:&lt;BR /&gt;  Platform:&lt;BR /&gt;    osname=hpux, osvers=11.00, archname=PA-RISC2.0&lt;BR /&gt;    uname='hp-ux ness b.11.00 a 9000780 2012209406 two-user license '&lt;BR /&gt;    config_args='-d -e -Dcc=gcc -Dprefix=/usr/local useposix=true'&lt;BR /&gt;    hint=recommended, useposix=true, d_sigaction=define&lt;BR /&gt;    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef&lt;BR /&gt;    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef&lt;BR /&gt;    use64bitint=undef use64bitall=undef uselongdouble=undef&lt;BR /&gt;    usemymalloc=n, bincompat5005=undef&lt;BR /&gt;  Compiler:&lt;BR /&gt;    cc='gcc', ccflags ='-D_HPUX_SOURCE -fno-strict-aliasing -I/usr/local/include &lt;BR /&gt;&lt;BR /&gt;-D_LARGEFILE_SOURCE',&lt;BR /&gt;    optimize='-O2',&lt;BR /&gt;    cppflags='-D_HPUX_SOURCE -D_HPUX_SOURCE -fno-strict-aliasing -I/usr/local/include'&lt;BR /&gt;    ccversion='', gccversion='3.3.2', gccosandvers='hpux11.00'&lt;BR /&gt;    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321&lt;BR /&gt;    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16&lt;BR /&gt;    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=4&lt;BR /&gt;    alignbytes=8, prototype=define&lt;BR /&gt;  Linker and Libraries:&lt;BR /&gt;    ld='/usr/bin/ld', ldflags =' -L/usr/local/lib -L/opt/local/lib'&lt;BR /&gt;    libpth=/usr/local/lib /opt/local/lib /lib /usr/lib /usr/ccs/lib&lt;BR /&gt;    libs=-lnsl -lnm -lndbm -lgdbm -ldb -lmalloc -ldld -lm&lt;BR /&gt;    perllibs=-lnsl -lnm -lmalloc -ldld -lm&lt;BR /&gt;    libc=/lib/libc.sl, so=sl, useshrplib=false, libperl=libperl.a&lt;BR /&gt;    gnulibc_version=''&lt;BR /&gt;  Dynamic Linking:&lt;BR /&gt;    dlsrc=dl_hpux.xs, dlext=sl, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-B,deferred '&lt;BR /&gt;    cccdlflags='-fPIC', lddlflags='-b -L/usr/local/lib -L/opt/local/lib'&lt;BR /&gt;&lt;BR /&gt;Characteristics of this binary (from libperl): &lt;BR /&gt;  Compile-time options: USE_LARGE_FILES&lt;BR /&gt;  Built under hpux&lt;BR /&gt;  Compiled at Feb  2 2004 09:09:51&lt;BR /&gt;  %ENV:&lt;BR /&gt;    PERL5LIB="/xxx/xxx/script/perl"&lt;BR /&gt;  @INC:&lt;BR /&gt;    /xxx/xxx/script/perl&lt;BR /&gt;    /usr/local/lib/perl5/5.8.3/PA-RISC2.0&lt;BR /&gt;    /usr/local/lib/perl5/5.8.3&lt;BR /&gt;    /usr/local/lib/perl5/site_perl/5.8.3/PA-RISC2.0&lt;BR /&gt;    /usr/local/lib/perl5/site_perl/5.8.3&lt;BR /&gt;    /usr/local/lib/perl5/site_perl&lt;BR /&gt;    .&lt;BR /&gt;# gcc -v&lt;BR /&gt;Reading specs from /usr/local/lib/gcc-lib/hppa1.0-hp-hpux11.00/2.7.2.3/specs&lt;BR /&gt;gcc version 2.7.2.3&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Sep 2004 16:39:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpan-error-when-compiling-c-code/m-p/3382733#M707344</guid>
      <dc:creator>ken kroel</dc:creator>
      <dc:date>2004-09-20T16:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: CPAN error when compiling C code</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpan-error-when-compiling-c-code/m-p/3382734#M707345</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;compiling perl modules or other freeware stuff is seldom successful with the original HP-UX cc. All makefiles are designed for gcc. &lt;BR /&gt;&lt;BR /&gt;Since the HP-UX porting center discontinued the 11.00 branch, you can get latest gcc for HP-UX 11.00 from &lt;A href="http://mirrors.develooper.com/" target="_blank"&gt;http://mirrors.develooper.com/&lt;/A&gt; .&lt;BR /&gt;&lt;BR /&gt;I successfully compiled perl modules via CPAN with an gcc 3.3.2 on a HP-UX 11.00 system. Since we have an internal CPAN mirror, I have no hassle with any firewalls :-)&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Nov 2004 07:48:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpan-error-when-compiling-c-code/m-p/3382734#M707345</guid>
      <dc:creator>Eiff, Volker</dc:creator>
      <dc:date>2004-11-23T07:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: CPAN error when compiling C code</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpan-error-when-compiling-c-code/m-p/3382735#M707346</link>
      <description>Try this:&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Gnu/gcc-3.4.3/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Gnu/gcc-3.4.3/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Pay attention to downloading and installing all pre-requisites.&lt;BR /&gt;&lt;BR /&gt;This stuff can be compiled under hpux cc with changes, but its hardly ever worth the trouble.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 23 Nov 2004 08:23:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpan-error-when-compiling-c-code/m-p/3382735#M707346</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-11-23T08:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: CPAN error when compiling C code</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpan-error-when-compiling-c-code/m-p/3382736#M707347</link>
      <description>thanks for the replies. i was able to download and install gcc3.4.2, but ran into trouble when i tried replacing the existing gcc 2.7.2.3. &lt;BR /&gt;&lt;BR /&gt;i tried just replacing the gcc executable, but it complained loudly, so i obviously missed switching other things. how can i find out what needs to be replaced/renamed/relinked, etc, to get the new version working?&lt;BR /&gt;&lt;BR /&gt;it installed in /usr/local/pa20_64/bin/gcc&lt;BR /&gt;&lt;BR /&gt;the following are the results of trying to install a module in CPAN, after the switch:&lt;BR /&gt;&lt;BR /&gt;Running make test&lt;BR /&gt;        /usr/bin/perl /usr/local/lib/perl5/5.8.3/ExtUtils/xsubpp -noprototypes -typemap /usr/local/lib/perl5/5.8.3/ExtUtils/typemap  ReadKey.xs &amp;gt; ReadKey.xsc &amp;amp;&amp;amp; mv ReadKey.xsc ReadKey.c&lt;BR /&gt;        gcc -c    -D_HPUX_SOURCE -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -O2    -DVERSION=\"2.21\"  -DXS_VERSION=\"2.21\" -fPIC "-I/usr/local/lib/perl5/5.8.3/PA-RISC2.0/CORE"   ReadKey.c&lt;BR /&gt;        rm -f blib/arch/auto/Term/ReadKey/ReadKey.sl&lt;BR /&gt;        LD_RUN_PATH="" /usr/bin/ld  -b -L/usr/local/lib -L/opt/local/lib ReadKey.o  -o blib/arch/auto/Term/ReadKey/ReadKey.sl      &lt;BR /&gt;        chmod 755 blib/arch/auto/Term/ReadKey/ReadKey.sl&lt;BR /&gt;        PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" -w test.pl&lt;BR /&gt;1 .. 8&lt;BR /&gt;/usr/lib/dld.sl: Bad magic number for shared library: blib/arch/auto/Term/ReadKey/ReadKey.sl&lt;BR /&gt;/usr/lib/dld.sl: Exec format error&lt;BR /&gt;Can't load 'blib/arch/auto/Term/ReadKey/ReadKey.sl' for module Term::ReadKey: Exec format error at /usr/local/lib/perl5/5.8.3/PA-RISC2.0/DynaLoader.pm line 229.&lt;BR /&gt; at test.pl line 22&lt;BR /&gt;Compilation failed in require at test.pl line 22.&lt;BR /&gt;BEGIN failed--compilation aborted at test.pl line 22.&lt;BR /&gt;not ok 1&lt;BR /&gt;*** Error exit code 255&lt;BR /&gt;&lt;BR /&gt;Stop.&lt;BR /&gt;  /usr/bin/make test -- NOT OK&lt;BR /&gt;Running make install&lt;BR /&gt;  make test had returned bad status, won't install without force</description>
      <pubDate>Tue, 23 Nov 2004 17:12:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpan-error-when-compiling-c-code/m-p/3382736#M707347</guid>
      <dc:creator>ken kroel</dc:creator>
      <dc:date>2004-11-23T17:12:22Z</dc:date>
    </item>
  </channel>
</rss>

