Skip Menu |

This queue is for tickets about the Tk CPAN distribution.

Report information
The Basics
Id: 4387
Status: resolved
Priority: 0/
Queue: Tk

People
Owner: Nobody in particular
Requestors: djerius [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 804.025_beta5
Fixed in: (no value)



Subject: Tk (png/zlib) assumes gcc on solaris
The included zlib distribution is incorrectly configured for Solaris if Perl is compiled with Sun's cc and gcc is also available. The problem is that zlib's configure sees gcc and provides gcc CFLAGS. But, PNG/Makefile overrides the value of CC (using that in Perl's Config) but not CFLAGS, thus leading to passing gcc options to Sun's cc, which doesn't recognize them. In particular it passes -O3, which is ignored (loudly) during compiles, but causes a linker failure during links. The solution that seems to work is do the equivalent of env CC=$Config{'cc'} sh ./configure
Subject: Re: [cpan #4387] Tk (png/zlib) assumes gcc on solaris
To: bug-Tk [...] rt.cpan.org
Date: Sun, 16 Nov 2003 10:34:06 +0000
From: Nick Ing-Simmons <nick [...] ing-simmons.net>
RT-Send-Cc:
via RT <bug-Tk@rt.cpan.org> writes: Show quoted text
>This message about Tk was sent to you by DJERIUS <DJERIUS@cpan.org> via rt.cpan.org > >Full context and any attached attachments can be found at: ><URL: https://rt.cpan.org/Ticket/Display.html?id=4387 > > >The included zlib distribution is incorrectly configured for Solaris if Perl is compiled with Sun's cc and gcc is also available. The problem is that zlib's configure sees gcc and provides gcc CFLAGS. But, PNG/Makefile overrides the value of CC (using that in Perl's Config) but not CFLAGS, >thus leading to passing gcc options to Sun's cc, which doesn't recognize them. In particular it passes -O3, which is ignored (loudly) during >compiles, but causes a linker failure during links. The solution that >seems to work is do the equivalent of > >env CC=$Config{'cc'} sh ./configure
Done - thanks for the diagnosis and suggestion.
Subject: Re: [cpan #4387] Tk (png/zlib) assumes gcc on solaris
To: bug-Tk [...] rt.cpan.org
Date: Mon, 17 Nov 2003 10:20:49 +0000
From: Nick Ing-Simmons <nick.ing-simmons [...] elixent.com>
RT-Send-Cc:
via RT <bug-Tk@rt.cpan.org> writes: Show quoted text
>This message about Tk was sent to you by DJERIUS <DJERIUS@cpan.org> via rt.cpan.org > >Full context and any attached attachments can be found at: ><URL: https://rt.cpan.org/Ticket/Display.html?id=4387 > > >The included zlib distribution is incorrectly configured for Solaris if Perl is compiled with Sun's cc and gcc is also available. The problem is that zlib's configure sees gcc and provides gcc CFLAGS. But, PNG/Makefile overrides the value of CC (using that in Perl's Config) but not CFLAGS, >thus leading to passing gcc options to Sun's cc, which doesn't recognize them. In particular it passes -O3, which is ignored (loudly) during >compiles, but causes a linker failure during links. The solution that >seems to work is do the equivalent of > >env CC=$Config{'cc'} sh ./configure
Fixed? In beta6.