Description of problem: I am not sure if this is really a compiler issue, but the upstream maintainer said he did not see anything obviously wrong with the line in question. Anyway, I tried to build RPM Fusion's mame package and it failed with errors like src/ldplayer/ldplayer.c:578:2: error: expected primary-expression before ',' token build log is here: http://buildsys.rpmfusion.org/logs/fedora-development-rpmfusion_nonfree/8973-mame-0.141u1-1.fc15/x86_64/build.log For convenience, the source can be seen here: http://mamedev.org/source/src/ldplayer/ldplayer.c.html Version-Release number of selected component (if applicable): 4.6.0-0.3.fc15 How reproducible: always Steps to Reproduce: 1. get mame srpm from rpmfusion's nonfree cvs 2. go to devel branch 3. make mockbuild Actual results: build fails Expected results: build succeeds
Please provide preprocessed source, i.e. rerun the gcc -DCRLF=2 -DINLINE="static inline" -DLSB_FIRST -DPTR64 -DNDEBUG -DDISTRO=generic "-DSDLMAME_ARCH=" -DSYNC_IMPLEMENTATION=tc -DSDLMAME_UNIX -DUSE_OPENGL=1 -DUSE_DISPATCH_GL=1 -DSDLMAME_X11 -DNATIVE_DRC=drcbe_x64 -pipe -g2 -fno-omit-frame-pointer -O2 -fno-strict-aliasing -Wall -Wcast-align -Wundef -Wformat-security -Wwrite-strings -Wno-sign-compare -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DINI_PATH="\"/etc/mame;\"" -m64 `sdl-config --cflags | sed -e 's:/SDL::' -e 's:\(-I[^ ]*\)::g'` `pkg-config --cflags-only-other gtk+-2.0` `pkg-config --cflags-only-other gconf-2.0` -Isrc/ldplayer -Iobj/sdl/ldplayer/ldplayer/layout -Isrc/emu -Iobj/sdl/ldplayer/emu -Iobj/sdl/ldplayer/emu/layout -Isrc/lib/util -Isrc/osd -Isrc/osd/sdl -Isrc/debug -include src/osd/sdl/sdlprefix.h `sdl-config --cflags | sed -e 's:/SDL::' -e 's:\(-D[^ ]*\)::g'` `pkg-config --cflags fontconfig` `pkg-config --cflags-only-I gtk+-2.0` `pkg-config --cflags-only-I gconf-2.0` -I/usr/X11/include -I/usr/X11R6/include -I/usr/openwin/include -Isrc/ldplayer -Iobj/sdl/ldplayer/ldplayer/layout -Isrc/emu -Iobj/sdl/ldplayer/emu -Iobj/sdl/ldplayer/emu/layout -Isrc/lib/util -Isrc/osd -Isrc/osd/sdl -x c++ -std=gnu++98 -c src/ldplayer/ldplayer.c command with additional -save-temps option and attach ldplayer.ii it creates.
Created attachment 475489 [details] requested ldplayer.ii file
You are not including <stddef.h> thus offsetof is not defined.