snes9xgit / snes9x

Snes9x - Portable Super Nintendo Entertainment System (TM) emulator
http://www.snes9x.com
Other
2.66k stars 460 forks source link

build error on ubuntu xenial 64bit #105

Closed CanadianJeff closed 8 years ago

CanadianJeff commented 8 years ago
root@xubuntu:/usr/src# cd snes9x/unix/
root@xubuntu:/usr/src/snes9x/unix# ./configure 
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether g++ accepts -O3... yes
checking whether g++ accepts -fomit-frame-pointer... yes
checking whether g++ accepts -fno-exceptions... yes
checking whether g++ accepts -fno-rtti... yes
checking whether g++ accepts -pedantic... yes
checking whether g++ accepts -Wall... yes
checking whether g++ accepts -W... yes
checking whether g++ accepts -Wno-unused-parameter... yes
checking whether the OS is Linux... yes
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for gzread in -lz... yes
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking for png_init_io in -lpng... yes
checking for mkstemp... yes
checking for X... libraries , headers 
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for strings.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking whether right shift int8 is arithmetic... yes
checking whether right shift int16 is arithmetic... yes
checking whether right shift int32 is arithmetic... yes
checking whether right shift int64 is arithmetic... yes
checking X11/extensions/Xv.h usability... yes
checking X11/extensions/Xv.h presence... yes
checking for X11/extensions/Xv.h... yes
checking whether sound is supported on this platform... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes

build information:
cc...............,,,. gcc
c++.................. g++
options.............. -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter 
defines.............. -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS
libs................. -lz -lpng -lSM -lICE -lX11 -lXext -lXv -lpthread

features:
Xvideo support....... yes
sound support........ yes
screenshot support... yes
netplay support...... no
gamepad support...... yes
GZIP support......... yes
ZIP support.......... yes
JMA support.......... yes
debugger............. no

configure: creating ./config.status
config.status: creating Makefile
root@xubuntu:/usr/src/snes9x/unix# make
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../apu/apu.cpp -o ../apu/apu.o
../apu/apu.cpp: In function ‘void S9xDeinitAPU()’:
../apu/apu.cpp:502:15: warning: deleting object of abstract class type ‘Resampler’ which has non-virtual destructor will cause undefined behaviour [-Wdelete-non-virtual-dtor]
   delete spc::resampler;
               ^
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../apu/bapu/dsp/sdsp.cpp -o ../apu/bapu/dsp/sdsp.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../apu/bapu/dsp/SPC_DSP.cpp -o ../apu/bapu/dsp/SPC_DSP.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../apu/bapu/smp/smp.cpp -o ../apu/bapu/smp/smp.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../apu/bapu/smp/smp_state.cpp -o ../apu/bapu/smp/smp_state.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../bsx.cpp -o ../bsx.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../c4.cpp -o ../c4.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../c4emu.cpp -o ../c4emu.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../cheats.cpp -o ../cheats.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../cheats2.cpp -o ../cheats2.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../clip.cpp -o ../clip.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../conffile.cpp -o ../conffile.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../controls.cpp -o ../controls.o
../controls.cpp: In function ‘void S9xSetJoypadLatch(bool)’:
../controls.cpp:2871:68: warning: iteration 3u invokes undefined behavior [-Waggressive-loop-optimizations]
      for (int j = 0, k = mp5[n].pads[j]; j < 4; k = mp5[n].pads[++j])
                                                                    ^
../controls.cpp:2871:44: note: containing loop
      for (int j = 0, k = mp5[n].pads[j]; j < 4; k = mp5[n].pads[++j])
                                            ^
../controls.cpp: In function ‘void S9xControlEOF()’:
../controls.cpp:3162:63: warning: iteration 3u invokes undefined behavior [-Waggressive-loop-optimizations]
     for (j = 0, i = mp5[n].pads[j]; j < 4; i = mp5[n].pads[++j])
                                                               ^
../controls.cpp:3162:39: note: containing loop
     for (j = 0, i = mp5[n].pads[j]; j < 4; i = mp5[n].pads[++j])
                                       ^
../controls.cpp:3162:63: warning: array subscript is above array bounds [-Warray-bounds]
     for (j = 0, i = mp5[n].pads[j]; j < 4; i = mp5[n].pads[++j])
                                                               ^
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../cpu.cpp -o ../cpu.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../cpuexec.cpp -o ../cpuexec.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../cpuops.cpp -o ../cpuops.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../crosshairs.cpp -o ../crosshairs.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../dma.cpp -o ../dma.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../dsp.cpp -o ../dsp.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../dsp1.cpp -o ../dsp1.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../dsp2.cpp -o ../dsp2.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../dsp3.cpp -o ../dsp3.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../dsp4.cpp -o ../dsp4.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../fxinst.cpp -o ../fxinst.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../fxemu.cpp -o ../fxemu.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../gfx.cpp -o ../gfx.o
../gfx.cpp: In function ‘void DrawBackgroundOffset(int, uint8, uint8, int)’:
../gfx.cpp:1487:9: warning: variable ‘DrawTile’ set but not used [-Wunused-but-set-variable]
  void (*DrawTile) (uint32, uint32, uint32, uint32);
         ^
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../globals.cpp -o ../globals.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../logger.cpp -o ../logger.o
../logger.cpp: In function ‘void S9xVideoLogger(void*, int, int, int, int)’:
../logger.cpp:245:10: warning: variable ‘ignore’ set but not used [-Wunused-but-set-variable]
   size_t ignore;
          ^
../logger.cpp: In function ‘void S9xAudioLogger(void*, int)’:
../logger.cpp:265:10: warning: variable ‘ignore’ set but not used [-Wunused-but-set-variable]
   size_t ignore;
          ^
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../memmap.cpp -o ../memmap.o
../memmap.cpp: In member function ‘bool8 CMemory::LoadSRTC()’:
../memmap.cpp:2021:9: warning: variable ‘ignore’ set but not used [-Wunused-but-set-variable]
  size_t ignore;
         ^
../memmap.cpp: In member function ‘bool8 CMemory::SaveSRTC()’:
../memmap.cpp:2036:9: warning: variable ‘ignore’ set but not used [-Wunused-but-set-variable]
  size_t ignore;
         ^
../memmap.cpp: In member function ‘bool8 CMemory::SaveSRAM(const char*)’:
../memmap.cpp:2169:11: warning: variable ‘ignore’ set but not used [-Wunused-but-set-variable]
    size_t ignore;
           ^
../memmap.cpp:2186:11: warning: variable ‘ignore’ set but not used [-Wunused-but-set-variable]
    size_t ignore;
           ^
../memmap.cpp: In member function ‘void CMemory::map_index(uint32, uint32, uint32, uint32, int, int)’:
../memmap.cpp:2858:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    Map[p] = (uint8 *) index;
                       ^
../memmap.cpp: In function ‘bool8 ReadBPSPatch(Stream*, long int, int32&)’:
../memmap.cpp:3930:75: warning: operation on ‘outputOffset’ may be undefined [-Wsequence-point]
     while(length--) patched_rom[outputOffset++] = Memory.ROM[outputOffset];
                                                                           ^
../memmap.cpp:3910:9: warning: unused variable ‘source_size’ [-Wunused-variable]
  uint32 source_size = XPSdecode(data, addr, size);
         ^
../memmap.cpp: At global scope:
../memmap.cpp:948:15: warning: ‘uint32 ReadUPSPointer(const uint8*, unsigned int&, unsigned int)’ declared ‘static’ but never defined [-Wunused-function]
 static uint32 ReadUPSPointer (const uint8 *, unsigned &, unsigned);
               ^
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../movie.cpp -o ../movie.o
../movie.cpp: In function ‘void flush_movie()’:
../movie.cpp:540:9: warning: variable ‘ignore’ set but not used [-Wunused-but-set-variable]
  size_t ignore;
         ^
../movie.cpp: In function ‘void truncate_movie()’:
../movie.cpp:552:6: warning: variable ‘ignore’ set but not used [-Wunused-but-set-variable]
  int ignore;
      ^
../movie.cpp: In function ‘void write_movie_header(FILE*, SMovie*)’:
../movie.cpp:639:9: warning: variable ‘ignore’ set but not used [-Wunused-but-set-variable]
  size_t ignore;
         ^
../movie.cpp: In function ‘void write_movie_extrarominfo(FILE*, SMovie*)’:
../movie.cpp:653:9: warning: variable ‘ignore’ set but not used [-Wunused-but-set-variable]
  size_t ignore;
         ^
../movie.cpp: In function ‘int S9xMovieOpen(const char*, bool8)’:
../movie.cpp:832:9: warning: variable ‘ignore’ set but not used [-Wunused-but-set-variable]
  size_t ignore;
         ^
../movie.cpp: In function ‘int S9xMovieCreate(const char*, uint8, uint8, const wchar_t*, int)’:
../movie.cpp:897:10: warning: variable ‘ignore’ set but not used [-Wunused-but-set-variable]
   size_t ignore;
          ^
../movie.cpp: In function ‘void S9xMovieUpdate(bool)’:
../movie.cpp:1062:11: warning: variable ‘ignore’ set but not used [-Wunused-but-set-variable]
    size_t ignore;
           ^
../movie.cpp: In function ‘void S9xMovieUpdateOnReset()’:
../movie.cpp:1088:10: warning: variable ‘ignore’ set but not used [-Wunused-but-set-variable]
   size_t ignore;
          ^
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../obc1.cpp -o ../obc1.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../ppu.cpp -o ../ppu.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../stream.cpp -o ../stream.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../sa1.cpp -o ../sa1.o
../sa1.cpp:715:34: warning: use of C++11 long long integer constant [-Wlong-long]
      SA1.overflow = (SA1.sum >= (1ULL << 40));
                                  ^
../sa1.cpp:716:18: warning: use of C++11 long long integer constant [-Wlong-long]
      SA1.sum &= (1ULL << 40) - 1;
                  ^
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../sa1cpu.cpp -o ../sa1cpu.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../screenshot.cpp -o ../screenshot.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../sdd1.cpp -o ../sdd1.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../sdd1emu.cpp -o ../sdd1emu.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../seta.cpp -o ../seta.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../seta010.cpp -o ../seta010.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../seta011.cpp -o ../seta011.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../seta018.cpp -o ../seta018.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../snapshot.cpp -o ../snapshot.o
../snapshot.cpp: In function ‘int S9xUnfreezeFromStream(Stream*)’:
../snapshot.cpp:1446:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  if (READ_STREAM(buffer, len, stream) != len)
                                       ^
../snapshot.cpp: In function ‘int UnfreezeBlock(Stream*, const char*, uint8*, int)’:
../snapshot.cpp:2095:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  if (READ_STREAM(block, len, stream) != len)
                                      ^
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../snes9x.cpp -o ../snes9x.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../spc7110.cpp -o ../spc7110.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../srtc.cpp -o ../srtc.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../tile.cpp -o ../tile.o
In file included from ../tile.cpp:1356:0,
                 from ../tile.cpp:818,
                 from ../tile.cpp:479:
../tile.cpp:1401:1: warning: multi-line comment [-Wcomment]
 //#define DRAW_PIXEL_H2x1(N, M) \
 ^
In file included from ../tile.cpp:1375:0,
                 from ../tile.cpp:818,
                 from ../tile.cpp:479:
../tile.cpp:1401:1: warning: multi-line comment [-Wcomment]
 //#define DRAW_PIXEL_H2x1(N, M) \
 ^
In file included from ../tile.cpp:818:0,
                 from ../tile.cpp:479:
../tile.cpp:1401:1: warning: multi-line comment [-Wcomment]
 //#define DRAW_PIXEL_H2x1(N, M) \
 ^
In file included from ../tile.cpp:1419:0,
                 from ../tile.cpp:818,
                 from ../tile.cpp:479:
../tile.cpp:1401:1: warning: multi-line comment [-Wcomment]
 //#define DRAW_PIXEL_H2x1(N, M) \
 ^
In file included from ../tile.cpp:1440:0,
                 from ../tile.cpp:818,
                 from ../tile.cpp:479:
../tile.cpp:1401:1: warning: multi-line comment [-Wcomment]
 //#define DRAW_PIXEL_H2x1(N, M) \
 ^
In file included from ../tile.cpp:1450:0,
                 from ../tile.cpp:818,
                 from ../tile.cpp:479:
../tile.cpp:1401:1: warning: multi-line comment [-Wcomment]
 //#define DRAW_PIXEL_H2x1(N, M) \
 ^
In file included from ../tile.cpp:1356:0,
                 from ../tile.cpp:925,
                 from ../tile.cpp:479:
../tile.cpp:1401:1: warning: multi-line comment [-Wcomment]
 //#define DRAW_PIXEL_H2x1(N, M) \
 ^
In file included from ../tile.cpp:1375:0,
                 from ../tile.cpp:925,
                 from ../tile.cpp:479:
../tile.cpp:1401:1: warning: multi-line comment [-Wcomment]
 //#define DRAW_PIXEL_H2x1(N, M) \
 ^
In file included from ../tile.cpp:925:0,
                 from ../tile.cpp:479:
../tile.cpp:1401:1: warning: multi-line comment [-Wcomment]
 //#define DRAW_PIXEL_H2x1(N, M) \
 ^
In file included from ../tile.cpp:1419:0,
                 from ../tile.cpp:925,
                 from ../tile.cpp:479:
../tile.cpp:1401:1: warning: multi-line comment [-Wcomment]
 //#define DRAW_PIXEL_H2x1(N, M) \
 ^
In file included from ../tile.cpp:1440:0,
                 from ../tile.cpp:925,
                 from ../tile.cpp:479:
../tile.cpp:1401:1: warning: multi-line comment [-Wcomment]
 //#define DRAW_PIXEL_H2x1(N, M) \
 ^
In file included from ../tile.cpp:1450:0,
                 from ../tile.cpp:925,
                 from ../tile.cpp:479:
../tile.cpp:1401:1: warning: multi-line comment [-Wcomment]
 //#define DRAW_PIXEL_H2x1(N, M) \
 ^
In file included from ../tile.cpp:1356:0,
                 from ../tile.cpp:971,
                 from ../tile.cpp:479:
../tile.cpp:1401:1: warning: multi-line comment [-Wcomment]
 //#define DRAW_PIXEL_H2x1(N, M) \
 ^
In file included from ../tile.cpp:1375:0,
                 from ../tile.cpp:971,
                 from ../tile.cpp:479:
../tile.cpp:1401:1: warning: multi-line comment [-Wcomment]
 //#define DRAW_PIXEL_H2x1(N, M) \
 ^
In file included from ../tile.cpp:971:0,
                 from ../tile.cpp:479:
../tile.cpp:1401:1: warning: multi-line comment [-Wcomment]
 //#define DRAW_PIXEL_H2x1(N, M) \
 ^
In file included from ../tile.cpp:1419:0,
                 from ../tile.cpp:971,
                 from ../tile.cpp:479:
../tile.cpp:1401:1: warning: multi-line comment [-Wcomment]
 //#define DRAW_PIXEL_H2x1(N, M) \
 ^
In file included from ../tile.cpp:1440:0,
                 from ../tile.cpp:971,
                 from ../tile.cpp:479:
../tile.cpp:1401:1: warning: multi-line comment [-Wcomment]
 //#define DRAW_PIXEL_H2x1(N, M) \
 ^
In file included from ../tile.cpp:1450:0,
                 from ../tile.cpp:971,
                 from ../tile.cpp:479:
../tile.cpp:1401:1: warning: multi-line comment [-Wcomment]
 //#define DRAW_PIXEL_H2x1(N, M) \
 ^
In file included from ../tile.cpp:1356:0,
                 from ../tile.cpp:1006,
                 from ../tile.cpp:479:
../tile.cpp:1401:1: warning: multi-line comment [-Wcomment]
 //#define DRAW_PIXEL_H2x1(N, M) \
 ^
In file included from ../tile.cpp:1375:0,
                 from ../tile.cpp:1006,
                 from ../tile.cpp:479:
../tile.cpp:1401:1: warning: multi-line comment [-Wcomment]
 //#define DRAW_PIXEL_H2x1(N, M) \
 ^
In file included from ../tile.cpp:1006:0,
                 from ../tile.cpp:479:
../tile.cpp:1401:1: warning: multi-line comment [-Wcomment]
 //#define DRAW_PIXEL_H2x1(N, M) \
 ^
In file included from ../tile.cpp:1419:0,
                 from ../tile.cpp:1006,
                 from ../tile.cpp:479:
../tile.cpp:1401:1: warning: multi-line comment [-Wcomment]
 //#define DRAW_PIXEL_H2x1(N, M) \
 ^
In file included from ../tile.cpp:1356:0,
                 from ../tile.cpp:1281,
                 from ../tile.cpp:479:
../tile.cpp:1401:1: warning: multi-line comment [-Wcomment]
 //#define DRAW_PIXEL_H2x1(N, M) \
 ^
In file included from ../tile.cpp:1375:0,
                 from ../tile.cpp:1281,
                 from ../tile.cpp:479:
../tile.cpp:1401:1: warning: multi-line comment [-Wcomment]
 //#define DRAW_PIXEL_H2x1(N, M) \
 ^
In file included from ../tile.cpp:1281:0,
                 from ../tile.cpp:479:
../tile.cpp:1401:1: warning: multi-line comment [-Wcomment]
 //#define DRAW_PIXEL_H2x1(N, M) \
 ^
In file included from ../tile.cpp:1419:0,
                 from ../tile.cpp:1281,
                 from ../tile.cpp:479:
../tile.cpp:1401:1: warning: multi-line comment [-Wcomment]
 //#define DRAW_PIXEL_H2x1(N, M) \
 ^
In file included from ../tile.cpp:1356:0,
                 from ../tile.cpp:1291,
                 from ../tile.cpp:479:
../tile.cpp:1401:1: warning: multi-line comment [-Wcomment]
 //#define DRAW_PIXEL_H2x1(N, M) \
 ^
In file included from ../tile.cpp:1375:0,
                 from ../tile.cpp:1291,
                 from ../tile.cpp:479:
../tile.cpp:1401:1: warning: multi-line comment [-Wcomment]
 //#define DRAW_PIXEL_H2x1(N, M) \
 ^
In file included from ../tile.cpp:1291:0,
                 from ../tile.cpp:479:
../tile.cpp:1401:1: warning: multi-line comment [-Wcomment]
 //#define DRAW_PIXEL_H2x1(N, M) \
 ^
In file included from ../tile.cpp:1419:0,
                 from ../tile.cpp:1291,
                 from ../tile.cpp:479:
../tile.cpp:1401:1: warning: multi-line comment [-Wcomment]
 //#define DRAW_PIXEL_H2x1(N, M) \
 ^
In file included from ../tile.cpp:1356:0,
                 from ../tile.cpp:1311,
                 from ../tile.cpp:479:
../tile.cpp:1401:1: warning: multi-line comment [-Wcomment]
 //#define DRAW_PIXEL_H2x1(N, M) \
 ^
In file included from ../tile.cpp:1375:0,
                 from ../tile.cpp:1311,
                 from ../tile.cpp:479:
../tile.cpp:1401:1: warning: multi-line comment [-Wcomment]
 //#define DRAW_PIXEL_H2x1(N, M) \
 ^
In file included from ../tile.cpp:1311:0,
                 from ../tile.cpp:479:
../tile.cpp:1401:1: warning: multi-line comment [-Wcomment]
 //#define DRAW_PIXEL_H2x1(N, M) \
 ^
In file included from ../tile.cpp:1419:0,
                 from ../tile.cpp:1311,
                 from ../tile.cpp:479:
../tile.cpp:1401:1: warning: multi-line comment [-Wcomment]
 //#define DRAW_PIXEL_H2x1(N, M) \
 ^
In file included from ../tile.cpp:1356:0,
                 from ../tile.cpp:1321,
                 from ../tile.cpp:479:
../tile.cpp:1401:1: warning: multi-line comment [-Wcomment]
 //#define DRAW_PIXEL_H2x1(N, M) \
 ^
In file included from ../tile.cpp:1375:0,
                 from ../tile.cpp:1321,
                 from ../tile.cpp:479:
../tile.cpp:1401:1: warning: multi-line comment [-Wcomment]
 //#define DRAW_PIXEL_H2x1(N, M) \
 ^
In file included from ../tile.cpp:1321:0,
                 from ../tile.cpp:479:
../tile.cpp:1401:1: warning: multi-line comment [-Wcomment]
 //#define DRAW_PIXEL_H2x1(N, M) \
 ^
In file included from ../tile.cpp:1419:0,
                 from ../tile.cpp:1321,
                 from ../tile.cpp:479:
../tile.cpp:1401:1: warning: multi-line comment [-Wcomment]
 //#define DRAW_PIXEL_H2x1(N, M) \
 ^
In file included from ../tile.cpp:479:0:
../tile.cpp:1401:1: warning: multi-line comment [-Wcomment]
 //#define DRAW_PIXEL_H2x1(N, M) \
 ^
../tile.cpp:1401:1: warning: multi-line comment [-Wcomment]
 //#define DRAW_PIXEL_H2x1(N, M) \
 ^
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../filter/2xsai.cpp -o ../filter/2xsai.o
../filter/2xsai.cpp: In function ‘void SuperEagle(uint8*, int, uint8*, int, int, int)’:
../filter/2xsai.cpp:282:20: warning: variable ‘colorA0’ set but not used [-Wunused-but-set-variable]
             uint32 colorA0, colorA1, colorA2, colorA3, colorB0, colorB1, colorB2, colorB3, colorS1, colorS2;
                    ^
../filter/2xsai.cpp:282:47: warning: variable ‘colorA3’ set but not used [-Wunused-but-set-variable]
             uint32 colorA0, colorA1, colorA2, colorA3, colorB0, colorB1, colorB2, colorB3, colorS1, colorS2;
                                               ^
../filter/2xsai.cpp:282:56: warning: variable ‘colorB0’ set but not used [-Wunused-but-set-variable]
             uint32 colorA0, colorA1, colorA2, colorA3, colorB0, colorB1, colorB2, colorB3, colorS1, colorS2;
                                                        ^
../filter/2xsai.cpp:282:83: warning: variable ‘colorB3’ set but not used [-Wunused-but-set-variable]
             uint32 colorA0, colorA1, colorA2, colorA3, colorB0, colorB1, colorB2, colorB3, colorS1, colorS2;
                                                                                   ^
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../filter/blit.cpp -o ../filter/blit.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../filter/epx.cpp -o ../filter/epx.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../filter/hq2x.cpp -o ../filter/hq2x.o
gcc -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../filter/snes_ntsc.c -o ../filter/snes_ntsc.o
cc1: warning: command line option ‘-fno-rtti’ is valid for C++/ObjC++ but not for C
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../statemanager.cpp -o ../statemanager.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM unix.cpp -o unix.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM x11.cpp -o x11.o
x11.cpp: In function ‘void S9xProcessEvents(bool8)’:
x11.cpp:1670:49: warning: ‘KeySym XKeycodeToKeysym(Display*, KeyCode, int)’ is deprecated [-Wdeprecated-declarations]
      KeyCode kc = XKeysymToKeycode(GUI.display, XKeycodeToKeysym(GUI.display, event.xkey.keycode, 0));
                                                 ^
In file included from x11.cpp:191:0:
/usr/include/X11/Xlib.h:1687:15: note: declared here
 extern KeySym XKeycodeToKeysym(
               ^
x11.cpp:1670:49: warning: ‘KeySym XKeycodeToKeysym(Display*, KeyCode, int)’ is deprecated [-Wdeprecated-declarations]
      KeyCode kc = XKeysymToKeycode(GUI.display, XKeycodeToKeysym(GUI.display, event.xkey.keycode, 0));
                                                 ^
In file included from x11.cpp:191:0:
/usr/include/X11/Xlib.h:1687:15: note: declared here
 extern KeySym XKeycodeToKeysym(
               ^
x11.cpp:1670:100: warning: ‘KeySym XKeycodeToKeysym(Display*, KeyCode, int)’ is deprecated [-Wdeprecated-declarations]
      KeyCode kc = XKeysymToKeycode(GUI.display, XKeycodeToKeysym(GUI.display, event.xkey.keycode, 0));
                                                                                                    ^
In file included from x11.cpp:191:0:
/usr/include/X11/Xlib.h:1687:15: note: declared here
 extern KeySym XKeycodeToKeysym(
               ^
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../loadzip.cpp -o ../loadzip.o
../loadzip.cpp: In function ‘bool8 LoadZip(const char*, uint32*, uint8*)’:
../loadzip.cpp:270:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if (l <= 0 || l != FileSize)
                   ^
gcc -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../unzip/ioapi.c -o ../unzip/ioapi.o
cc1: warning: command line option ‘-fno-rtti’ is valid for C++/ObjC++ but not for C
gcc -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM ../unzip/unzip.c -o ../unzip/unzip.o
cc1: warning: command line option ‘-fno-rtti’ is valid for C++/ObjC++ but not for C
../unzip/unzip.c: In function ‘unzOpenCurrentFile3’:
../unzip/unzip.c:1220:24: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
         s->pcrc_32_tab = get_crc_table();
                        ^
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM -fexceptions ../jma/7zlzma.cpp -o ../jma/7zlzma.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM -fexceptions ../jma/crc32.cpp -o ../jma/crc32.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM -fexceptions ../jma/iiostrm.cpp -o ../jma/iiostrm.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM -fexceptions ../jma/inbyte.cpp -o ../jma/inbyte.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM -fexceptions ../jma/jma.cpp -o ../jma/jma.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM -fexceptions ../jma/lzma.cpp -o ../jma/lzma.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM -fexceptions ../jma/lzmadec.cpp -o ../jma/lzmadec.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM -fexceptions ../jma/s9x-jma.cpp -o ../jma/s9x-jma.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -c -O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic -Wall -W -Wno-unused-parameter  -DJOYSTICK_SUPPORT -DZLIB -DUNZIP_SUPPORT -DJMA_SUPPORT -DHAVE_LIBPNG -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H -DHAVE_STDINT_H -DRIGHTSHIFT_IS_SAR -DUSE_XVIDEO -DUSE_THREADS -DMITSHM -fexceptions ../jma/winout.cpp -o ../jma/winout.o
g++ -I. -I.. -I../apu/ -I../apu/bapu -I../unzip/ -I../jma/ -I../filter/ -o snes9x ../apu/apu.o ../apu/bapu/dsp/sdsp.o ../apu/bapu/dsp/SPC_DSP.o ../apu/bapu/smp/smp.o ../apu/bapu/smp/smp_state.o ../bsx.o ../c4.o ../c4emu.o ../cheats.o ../cheats2.o ../clip.o ../conffile.o ../controls.o ../cpu.o ../cpuexec.o ../cpuops.o ../crosshairs.o ../dma.o ../dsp.o ../dsp1.o ../dsp2.o ../dsp3.o ../dsp4.o ../fxinst.o ../fxemu.o ../gfx.o ../globals.o ../logger.o ../memmap.o ../movie.o ../obc1.o ../ppu.o ../stream.o ../sa1.o ../sa1cpu.o ../screenshot.o ../sdd1.o ../sdd1emu.o ../seta.o ../seta010.o ../seta011.o ../seta018.o ../snapshot.o ../snes9x.o ../spc7110.o ../srtc.o ../tile.o ../filter/2xsai.o ../filter/blit.o ../filter/epx.o ../filter/hq2x.o ../filter/snes_ntsc.o ../statemanager.o unix.o x11.o ../loadzip.o ../unzip/ioapi.o ../unzip/unzip.o ../jma/7zlzma.o ../jma/crc32.o ../jma/iiostrm.o ../jma/inbyte.o ../jma/jma.o ../jma/lzma.o ../jma/lzmadec.o ../jma/s9x-jma.o ../jma/winout.o -lm -lz -lpng -lSM -lICE -lX11 -lXext -lXv -lpthread
../screenshot.o: In function `S9xDoScreenshot(int, int)':
screenshot.cpp:(.text+0xa2): undefined reference to `png_set_longjmp_fn'
collect2: error: ld returned 1 exit status
Makefile:50: recipe for target 'snes9x' failed
make: *** [snes9x] Error 1
root@xubuntu:/usr/src/snes9x/unix# 
andoruB commented 8 years ago

What does apt policy libpng-dev return?

Also I would suggest using pastebin to paste such large blocks of text... or some other kind of online text sharing platform.

LeCharlatan commented 8 years ago

Hi there, I got an error while compiling snes9x-gtk stable 1.54 from source here : https://github.com/snes9xgit/snes9x/releases

src/filter_xbrz.cpp: In function ‘void xBRZ(uint8*, uint32, uint8*, uint32, int, int, int)’:
src/filter_xbrz.cpp:258:87: error: ‘xbrz::ColorFormat’ is not a class or namespace
 alingFactor, &renderBuffer[0], &xbrzBuffer[0], width, height, xbrz::ColorFormat
                                                                     ^
Makefile:1570 : la recette pour la cible « src/snes9x_gtk-filter_xbrz.o » a échouée
make[1]: *** [src/snes9x_gtk-filter_xbrz.o] Erreur 1
make[1] : on quitte le répertoire « /home/linux/Documents/Compile/snes9x-1.54/gtk »
Makefile:2472 : la recette pour la cible « all-recursive » a échouée
make: *** [all-recursive] Erreur 1

This error appears on both 32-bits and 64-bits whatever I configure gtk2 or gtk3

Note that the Unix version no-gui compiles flawlessly

bearoso commented 8 years ago

What version of gcc are you using? xBRZ now requires C++11, so you'll have to use something that supports it.

bearoso commented 8 years ago

The png error is someone working on Ubuntu trying to cover their bases and breaking things. Gentoo did something similar a while back.

jcdenton2k commented 8 years ago

Better than pastebin:

https://cryptbin.com/

Encryption ensures that the contents have not been altered from the original. Plus their website loads faster :)

Other issue with pastebin is the amount of malicious content being dumped there (until it is eventually removed) resulting in the risk of legitimate content also being removed if it looks like source code. There have been some instances of this in the past so I always try to recommend alternatives to pastebin when possible.

andoruB commented 8 years ago

@jcdenton2k Thanks for the tip, will certainly use it from now on!

LeCharlatan commented 8 years ago

What version of gcc are you using? xBRZ now requires C++11, so you'll have to use something that supports it.

I'm using gcc/g++ 5.3.1, the default one on Ubuntu Xenial

Maybe I missed something To compile I did those following commands :

snes9x-1.54/gtk$ ./autogen.sh then snes9x-1.54/gtk$ ./configure --with-gtk3 then snes9x-1.54/gtk$ make

then got the error during the making process

Edit : Successfully compiled without xBRZ using --without-xbrz argument on configuration step Too bad, actually can't compile with xBRZ

bearoso commented 8 years ago

Yes, looks like the new xBRZ is hideously non-compliant, and only builds on gcc 6, not gcc 5 nor clang 3.8. I'll have to redo the process of un-C++11ing it.

bearoso commented 8 years ago

Scratch that, the std flag wasn't taking. Fixing it in git.

bearoso commented 8 years ago

Fixed with a macro. I wasn't seeing an error, because I'm using gcc 6, and it has C++11 by default (doh). You'll still need C++11 if you want xBRZ, but it shouldn't fail if your compiler has support.

LeCharlatan commented 8 years ago

Thanks Bearoso, it works like a charm :)