Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 103268 - net-misc/putty fails to compile due to Werror
Summary: net-misc/putty fails to compile due to Werror
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Tavis Ormandy (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-21 11:10 UTC by golloza
Modified: 2005-08-21 11:22 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Removes -Werror from unix/Makefile.gtk, works for me. (putty-0.57-filter-werror.patch,288 bytes, patch)
2005-08-21 11:11 UTC, golloza
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description golloza 2005-08-21 11:10:15 UTC
net-misc/putty-0.57 fails to compile because a warning occurs (GCC 3.4.3) and
unix/Makefile.gtk enables Werror:

cc    -march=athlon-xp -O1 -fomit-frame-pointer -pipe -Wall -Werror -g -I.././
-I../charset/ -I../unix/ -I../mac/ `gtk-config --cflags` -c .././tree234.c
.././tree234.c: In function `add234_internal':
.././tree234.c:121: warning: 'n' might be used uninitialized in this function
make: *** [tree234.o] Error 1
make: *** Waiting for unfinished jobs....

I suppose that this type of warning doesn't occur with gcc < 3.4 and given the
fact that both putty-0.57 and gcc-3.4.4 are marked stable on some archs (amd64
and ppc namely), the build will fail even if you're using a compiler marked
'stable'.

As a workaround, I propose to remove -Werror from the Makefile.

Head of emerge info, will post the full one if need be (I can't stand these
bloated comments):
Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.4.3,
glibc-2.3.4.20040808-r1, 2.6.13-rc5-mm1 i686)
Comment 1 golloza 2005-08-21 11:11:35 UTC
Created attachment 66490 [details, diff]
Removes -Werror from unix/Makefile.gtk, works for me.
Comment 2 Tavis Ormandy (RETIRED) gentoo-dev 2005-08-21 11:22:06 UTC
Thanks Christoph, I've applied your changes to the ebuild.