Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 141217 - app-emulation/uae-0.8.25: compile error with gcc-4
Summary: app-emulation/uae-0.8.25: compile error with gcc-4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Peter Volkov (RETIRED)
URL: http://bugs.donarmstrong.com/cgi-bin/...
Whiteboard:
Keywords:
Depends on:
Blocks: 117482
  Show dependency tree
 
Reported: 2006-07-20 16:12 UTC by Martin von Gagern
Modified: 2007-02-16 15:52 UTC (History)
4 users (show)

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


Attachments
uae-0.8.24-gcc4x.patch (uae-0.8.24-gcc4x.patch,1.41 KB, patch)
2006-08-22 11:36 UTC, Ahmed Ammar (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2006-07-20 16:12:52 UTC
Compiling app-emulation/uae-0.8.24 with gcc-4.1.1 gives me this error message:

i686-pc-linux-gnu-gcc -I. -I../src/include/ -c  -O2 -fomit-frame-pointer  -Wall -Wno-unused -Wno-format -W -Wmissing-prototypes -Wstrict-prototypes   -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DUSE_SDL -DGCCCONSTFUNC="__attribute__((const))" -mpreferred-stack-boundary=2 -fno-exceptions -DUNALIGNED_PROFITABLE -fno-strength-reduce -DREGPARAM="__attribute__((regparm(3)))" -DX86_ASSEMBLY -DOPTIMIZED_FLAGS -DUSE_ZFILE -D__inline__=inline -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -DSHM_SUPPORT_LINKS=1   custom.c -o custom.o
custom.c:58: error: static declaration of 'vpos' follows non-static declaration
../src/include/custom.h:42: error: previous declaration of 'vpos' was here
custom.c:115: error: static declaration of 'sprite_width' follows non-static declaration
../src/include/drawing.h:34: error: previous declaration of 'sprite_width' was here
custom.c:238: error: static declaration of 'next_sprite_entry' follows non-static declaration
../src/include/drawing.h:200: error: previous declaration of 'next_sprite_entry' was here
custom.c: In function 'update_fetch':
custom.c:1270: warning: comparison between signed and unsigned
custom.c: In function 'do_sprite_collisions':
custom.c:1557: warning: comparison between signed and unsigned
custom.c: In function 'do_sprites_1':
custom.c:3089: warning: comparison between signed and unsigned
make[1]: *** [custom.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/uae-0.8.24/work/uae-0.8.24/src'
make: *** [all] Error 2

After searching the web, it looks like the same would probably happen with gcc-4.0 as well. There is some patch at the URL, but I'm not sure what the intended meaning of the original code was, if the patch does the right thing.
Comment 1 Matteo Azzali (RETIRED) gentoo-dev 2006-08-01 03:28:49 UTC
this issue seems to be also in uae-0.8.25, together with various other issues
(./configure: line 12608: [: =: unary operator expected  for example)
Comment 2 Ahmed Ammar (RETIRED) gentoo-dev 2006-08-22 11:36:09 UTC
Created attachment 94880 [details, diff]
uae-0.8.24-gcc4x.patch

Basically extracted the patch from the URL, but still doesn't compile here, might try to fix it later.
Comment 3 Alex Buell 2006-09-04 04:46:51 UTC
Please download latest 0.8.25 and include patch, mark as stable. 
Comment 4 Evil Compile Person 2006-10-16 10:45:09 UTC
same here
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-12-07 16:20:33 UTC
@pva - can you have a look please?
Comment 6 Peter Volkov (RETIRED) gentoo-dev 2007-02-16 15:52:19 UTC
Well. This and some other debian patches are in cvs and are applied in uae-0.8.25-r1.