[hatari-devel] Build fails

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]

Hi there,

i have some trouble building hatari from source (fresh hg clone on Linux
Mint 18.3). I've configured it using this:

../configure --prefix=/usr --enable-winuae-cpu

which gave me this short summary

Libraries summary :

  - sdl :	using SDL2 v2.0.4
  - readline :	found, enables history/completion in the debugger
  - zlib :	found, allows to use zip/gz files directly
  - png :	found, allows to compress screenshot/avi files using png
  - portaudio :	found, enables the microphone input in Falcon mode
  - portmidi :	not found, install it for MIDI support on Windows / OSX
  - capsimage :	v5 not found, install it to use .IPF, .RAW and .CTR disk
  - udev :	found, required for media change detection in NatFeats SCSI
          	devices on udev-based systems (Linux)

then, after "make" it immediately stops with this error:

ragnar@albenhus ~/src/hatari $ make
Scanning dependencies of target Floppy
[  1%] Building C object src/CMakeFiles/Floppy.dir/createBlankImage.c.o
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:219:0,
                 from /usr/include/stdlib.h:121,
                 from /home/ragnar/src/hatari/src/includes/main.h:14,
                 from /home/ragnar/src/hatari/src/createBlankImage.c:11:
/usr/include/x86_64-linux-gnu/sys/select.h:54:18: error: conflicting
types for ‘__fd_mask’
 typedef long int __fd_mask;
In file included from /usr/include/stdio.h:45:0,
                 from /home/ragnar/src/hatari/src/includes/main.h:13,
                 from /home/ragnar/src/hatari/src/createBlankImage.c:11:
/usr/include/x86_64-linux-gnu/bits/types.h:86:27: note: previous
declaration of ‘__fd_mask’ was here
 typedef unsigned long int __fd_mask;
src/CMakeFiles/Floppy.dir/build.make:62: recipe for target
'src/CMakeFiles/Floppy.dir/createBlankImage.c.o' failed
make[2]: *** [src/CMakeFiles/Floppy.dir/createBlankImage.c.o] Error 1
CMakeFiles/Makefile2:162: recipe for target
'src/CMakeFiles/Floppy.dir/all' failed
make[1]: *** [src/CMakeFiles/Floppy.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

Hope this helps and what can i do to build it?


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/