Subject: | "-Wformat=0" not supported with Sun Studio 12 update 1 |
GD-2.44 fails to build on Solaris 10 with Sun Studio 12 update 1
due to the unsupported compiler option "-Wformat=0".
If I run "perl Makefile.PL" and comment-out the "CCFLAGS = -Wformat=0"
line in the resulting Makefile, it builds correctly.
Show quoted text
Notice: Type perl Makefile.PL -h for command-line option summary.
Configuring for libgd version 2.0.34.
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 GD_PNG GD_GIF GD_GIFANIM GD_OPENPOLYGON GD_UNCLOSEDPOLY GD_ANIMGIF GD_FTCIRCLE VERSION_33
GD library used from: /opt/sfw
Note (probably harmless): No library found for -liconv
Writing Makefile for GD
-bash-3.00$ make
/usr/perl5/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/opt/sfw/include -Wformat=0 -xO3 -xspace -xildoff -DVERSION=\"2.44\" -DXS_VERSION=\"2.44\" -KPIC "-I/usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE" -DHAVE_JPEG -DHAVE_FT -DHAVE_XPM -DHAVE_GIF -DHAVE_PNG -DHAVE_ANIMGIF -DVERSION_33 -DHAVE_UNCLOSEDPOLY -DHAVE_FONTCONFIG -DHAVE_FTCIRCLE GD.c
cc: -W option with unknown program format=0
*** Error code 1
make: Fatal error: Command failed for target `GD.o'
due to the unsupported compiler option "-Wformat=0".
If I run "perl Makefile.PL" and comment-out the "CCFLAGS = -Wformat=0"
line in the resulting Makefile, it builds correctly.
Show quoted text
##########################################################
$ perl Makefile.PLNotice: Type perl Makefile.PL -h for command-line option summary.
Configuring for libgd version 2.0.34.
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 GD_PNG GD_GIF GD_GIFANIM GD_OPENPOLYGON GD_UNCLOSEDPOLY GD_ANIMGIF GD_FTCIRCLE VERSION_33
GD library used from: /opt/sfw
Note (probably harmless): No library found for -liconv
Writing Makefile for GD
-bash-3.00$ make
/usr/perl5/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/opt/sfw/include -Wformat=0 -xO3 -xspace -xildoff -DVERSION=\"2.44\" -DXS_VERSION=\"2.44\" -KPIC "-I/usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE" -DHAVE_JPEG -DHAVE_FT -DHAVE_XPM -DHAVE_GIF -DHAVE_PNG -DHAVE_ANIMGIF -DVERSION_33 -DHAVE_UNCLOSEDPOLY -DHAVE_FONTCONFIG -DHAVE_FTCIRCLE GD.c
cc: -W option with unknown program format=0
*** Error code 1
make: Fatal error: Command failed for target `GD.o'