2011年01月15日 snes9x make error [長年日記]
_ snes9x make error
ちょっとやわらかい話題を...
snes9xをビルドしてみた。
$ tar xvzf snes9x-1.43-src.tar.gz $ cd snes9x-1.43-src/snes9x $ ./configure && make
しばらくすると、以下のエラーが出た。
c++ -fno-rtti -I/home/m-ito/tmp/snes9x-1.43-src/snes9x -I/home/m-ito/tmp/snes9x-1.43-src/snes9x/unzip -Ii386 -c -O2 -fomit-frame-pointer -fno-exceptions -Wall -W -pedantic -Wno-unused-parameter -pipe -I/home/m-ito/tmp/snes9x-1.43-src/snes9x -I/home/m-ito/tmp/snes9x-1.43-src/snes9x/unzip -Ii386 -DMITSHM -DVAR_CYCLES -DCPU_SHUTDOWN -DSPC700_SHUTDOWN -DZSNES_FX -DEXECUTE_SUPERFX_PER_LINE -DZSNES_C4 -DUSE_THREADS -DSPC700_C -DNETPLAY_SUPPORT -DUNZIP_SUPPORT -DMMX -DSDD1_DECOMP -DJOYSTICK_SUPPORT -DNO_INLINE_SET_GET -DZLIB -DHAVE_MKSTEMP -DUSE_DGA_EXTENSION -DUSE_VIDMODE_EXTENSION -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H '-DACCEPT_SIZE_T=socklen_t' /home/m-ito/tmp/snes9x-1.43-src/snes9x/globals.cpp -o globals.o /home/m-ito/tmp/snes9x-1.43-src/snes9x/dsp1.h:128: error: previous declaration of 'SDSP1 DSP1' with 'C++' linkage /home/m-ito/tmp/snes9x-1.43-src/snes9x/globals.cpp:126: error: conflicts with new declaration with 'C' linkage /home/m-ito/tmp/snes9x-1.43-src/snes9x/ppu.h:336: error: previous declaration of 'SnesModel M1SNES' with 'C++' linkage /home/m-ito/tmp/snes9x-1.43-src/snes9x/globals.cpp:134: error: conflicts with new declaration with 'C' linkage /home/m-ito/tmp/snes9x-1.43-src/snes9x/ppu.h:337: error: previous declaration of 'SnesModel M2SNES' with 'C++' linkage /home/m-ito/tmp/snes9x-1.43-src/snes9x/globals.cpp:135: error: conflicts with new declaration with 'C' linkage /home/m-ito/tmp/snes9x-1.43-src/snes9x/ppu.h:335: error: previous declaration of 'SnesModel* Model' with 'C++' linkage /home/m-ito/tmp/snes9x-1.43-src/snes9x/globals.cpp:136: error: conflicts with new declaration with 'C' linkage make: *** [globals.o] Error 1
snes9x-1.43-externc.patchを当てれば解決する。