Skip Menu |

This queue is for tickets about the GD CPAN distribution.

Report information
The Basics
Id: 53483
Status: resolved
Priority: 0/
Queue: GD

People
Owner: Nobody in particular
Requestors: nathan.weeks [...] ars.usda.gov
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.44
Fixed in: (no value)



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
##########################################################
$ perl Makefile.PL
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'

On Thu Jan 07 11:13:47 2010, https://me.yahoo.com/a/hrV0CgkEsuTLYbdkMG5s3Exn0d64qynD#b89f9 wrote: Show quoted text
> GD-2.44 fails to build on Solaris 10 with Sun Studio 12 update 1 > due to the unsupported compiler option "-Wformat=0".
I've removed it with 2.57 -- Reini Urban
Fixed with 2.57. And we'll re-add under $Config{gccversion} only. This is gcc specific. -- Reini Urban