Beefy Boxes and Bandwidth Generously Provided by pair Networks Russ
Problems? Is your data what you think it is?
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??
I'm having issues compiling GD on a Solaris 11 server. I've tried both with the Sun compiler and gcc. Below is the output from each attempt with each compiler. Any help will be greatly appreciated.

Native compiler
root@solaris11:~/.cpan/build/GD-2.46-5lwh43# perl Makefile.PL Notice: Type perl Makefile.PL -h for command-line option summary. Configuring for libgd version 2.0.35. Checking for stray libgd header files...cc: Warning: Option -nt-search +-dirs passed to ld, if ld is invoked, ignored otherwise usage: cc [ options ] files. Use 'cc -flags' for details none found. Included Features: GD_XPM GD_JPEG GD_FONTCONFIG GD_FREETYPE G +D_PNG GD_GIF GD_GIFANIM GD_OPENPOLYGON GD_UNCLOSEDPOLY GD_ANIMGIF GD_ +FTCIRCLE VERSION_33 GD library used from: /usr Note (probably harmless): No library found for -liconv Writing Makefile for GD Writing MYMETA.yml and MYMETA.json root@solaris11:~/.cpan/build/GD-2.46-5lwh43# make /usr/bin/perl GD/Image.pm.PLS GD/Image.pm Extracting Image.pm (with variable substitutions) Skip blib/lib/GD/Polyline.pm (unchanged) Skip blib/lib/qd.pl (unchanged) Skip blib/lib/GD/Image.pm (unchanged) Skip blib/lib/GD.pm (unchanged) Skip blib/lib/GD/Simple.pm (unchanged) Skip blib/lib/GD/Polygon.pm (unchanged) Skip blib/lib/GD/Group.pm (unchanged) cc -c -I/usr/include/gd2 -Wformat=0 -xO4 -DVERSION=\"2.46\" -DXS +_VERSION=\"2.46\" -KPIC "-I/usr/perl5/5.12/lib/i86pc-solaris-64int/CO +RE" -DHAVE_JPEG -DHAVE_FT -DHAVE_XPM -DHAVE_GIF -DHAVE_PNG -DHAVE_AN +IMGIF -DVERSION_33 -DHAVE_UNCLOSEDPOLY -DHAVE_FONTCONFIG -DHAVE_FTCIR +CLE GD.c cc: -W option with unknown program format=0 *** Error code 1 make: Fatal error: Command failed for target `GD.o'
Via GCC compiler

root@solaris11:~/.cpan/build/GD-2.46-5lwh43# perlgcc Makefile.PL Notice: Type perl Makefile.PL -h for command-line option summary. Configuring for libgd version 2.0.35. Checking for stray libgd header files...none found. Included Features: GD_XPM GD_JPEG GD_FONTCONFIG GD_FREETYPE G +D_PNG GD_GIF GD_GIFANIM GD_OPENPOLYGON GD_UNCLOSEDPOLY GD_ANIMGIF GD_ +FTCIRCLE VERSION_33 GD library used from: /usr Have /usr/perl5/5.12/lib/Sun/Solaris/PerlGcc Want /usr/perl5/5.12/lib/i86pc-solaris-64int Your perl and your Config.pm seem to have different ideas about the architecture they are running on. Perl thinks: [PerlGcc] Config says: [i86pc-solaris-64int] This may or may not cause problems. Please check your installation of +perl if you have problems building this extension. Note (probably harmless): No library found for -liconv Writing Makefile for GD Writing MYMETA.yml and MYMETA.json root@solaris11:~/.cpan/build/GD-2.46-5lwh43# make /usr/perl5/5.12/bin/perl GD/Image.pm.PLS GD/Image.pm Extracting Image.pm (with variable substitutions) Skip blib/lib/GD/Polyline.pm (unchanged) Skip blib/lib/qd.pl (unchanged) Skip blib/lib/GD/Image.pm (unchanged) Skip blib/lib/GD.pm (unchanged) Skip blib/lib/GD/Simple.pm (unchanged) Skip blib/lib/GD/Polygon.pm (unchanged) Skip blib/lib/GD/Group.pm (unchanged) gcc -c -I/usr/include/gd2 -Wformat=0 -xO4 -DVERSION=\"2.46\" -DX +S_VERSION=\"2.46\" -KPIC "-I/usr/perl5/5.12/lib/i86pc-solaris-64int/C +ORE" -DHAVE_JPEG -DHAVE_FT -DHAVE_XPM -DHAVE_GIF -DHAVE_PNG -DHAVE_A +NIMGIF -DVERSION_33 -DHAVE_UNCLOSEDPOLY -DHAVE_FONTCONFIG -DHAVE_FTCI +RCLE GD.c gcc: unrecognized option '-KPIC' gcc: language O4 not recognized gcc: language O4 not recognized gcc: GD.c: linker input file unused because linking not done Running Mkbootstrap for GD () chmod 644 GD.bs rm -f blib/arch/auto/GD/GD.so LD_RUN_PATH="/usr/lib" cc -G -L/usr/lib -L/usr/ccs/lib -L/lib -L/usr +/gnu/lib GD.o -o blib/arch/auto/GD/GD.so \ -L/usr/lib -L/usr/lib/amd64 -L/usr/lib -lXpm -lX11 -ljpeg -lfontcon +fig -lfreetype -lpng -lz -lm -lgd \ ld: fatal: file GD.o: open failed: No such file or directory ld: fatal: file processing errors. No output written to blib/arch/auto +/GD/GD.so *** Error code 2 make: Fatal error: Command failed for target `blib/arch/auto/GD/GD.so'


In reply to Compiling GD on Solaris 11 by jfinn

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others scrutinizing the Monastery: (7)
    As of 2014-04-20 00:10 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      April first is:







      Results (485 votes), past polls