[uae] Build error on Mac OS X (Intel)

  • From: "Adam Mercer" <ramercer@xxxxxxxxx>
  • To: uae@xxxxxxxxxxxxx
  • Date: Sat, 12 Aug 2006 05:31:31 -0500

Hi

I'm getting the following build error on Mac OS X 10.4.7 (Intel),
configured with

./configure --with-cocoa-gui --with-sdl-gfx --with-sdl-sound

if gcc -DHAVE_CONFIG_H -I. -I. -I. -I../src/include -I../src -I../src
-I..  -I/usr/include  -DFPUEMU -DCPUEMU_0 -DCPUEMU_5 -DCPUEMU_6
-DUNALIGNED_PROFITABLE -DJIT -DAGA -DAUTOCONFIG -DFILESYS -DBSDSOCKET
-DSUPPORT_THREADS -DUSE_SDL -DFDI2RAW -DDEBUGGER -DSAVESTATE
-DENFORCER -DACTION_REPLAY
-I/Library/Frameworks/SDL.framework/Headers -D_REENTRANT   -g -O2
-mdynamic-no-pic -fomit-frame-pointer   -Wall -Wno-unused -Wno-format
-W -Wmissing-prototypes -Wstrict-prototypes -fno-strength-reduce
-DREGPARAM="__attribute__((regparm(3)))" -g -O2 -DNO_MAIN_IN_MAIN_C
-MT compemu_support.o -MD -MP -MF ".deps/compemu_support.Tpo" -c -o
compemu_support.o compemu_support.c; \
then mv -f ".deps/compemu_support.Tpo" ".deps/compemu_support.Po";
else rm -f ".deps/compemu_support.Tpo"; exit 1; fi
compemu_support.c:622: error: static declaration of 'touchcnt' follows
non-static declaration
../src/include/compemu.h:197: error: previous declaration of 'touchcnt' was here
make[3]: *** [compemu_support.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

The attached patch fixes the build for me.

Cheers

Adam

Other related posts: