I am trying to compile pce for my Mac OS X 10.13.
I tried two different configurations, which gave me different errors during compilation.
1) With tun/tap
./configure -with-x --with-sdl --enable-tun --enable-char-ppp --enable-char-tcp --enable-char-slip --enable-char-pty --enable-char-posix --enable-char-termios
Code:
CC src/lib/tun.o
src/lib/tun.c:36:10: fatal error: 'linux/if.h' file not found
#include <linux/if.h>
^~~~~~~~~~~~
1 error generated.
make: *** [src/lib/tun.o] Error 1
Installing tup/tap now follows a different path:
Code:
$ brew tap homebrew/cask
$ brew cask install tuntap
which fails with
Code:
==> Failed command:
/usr/bin/sudo -E -- /usr/sbin/installer -pkg /usr/local/Caskroom/tuntap/20150118/tuntap_20150118.pkg -target /
There is no tuntap under Caskroom
Code:
$ ls /usr/local/Caskroom
rar
2) Without tun/tap
./configure -with-x --with-sdl --enable-char-ppp --enable-char-tcp --enable-char-slip --enable-char-pty --enable-char-posix --enable-char-termios
It fails with...
Code:
LD src/arch/atarist/pce-atarist
Undefined symbols for architecture x86_64:
"_tun_close", referenced from:
_chr_ppp_open in char-ppp.o
_chr_ppp_close in char-ppp.o
_chr_slip_close in char-slip.o
"_tun_open", referenced from:
_chr_ppp_open in char-ppp.o
_chr_slip_open in char-slip.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [src/arch/atarist/pce-atarist] Error 1
3) Forcing to disable tun/tap
Code:
./configure -with-x --with-sdl --enable-char-ppp --enable-char-tcp --enable-char-slip --enable-char-pty --enable-char-posix --enable-char-termios --disable-tun
...
Sound drivers built: null wav
Sound drivers not built: oss sdl
Enabled options:
Disabled options: readline tun
Fails with the same error.
Code:
LD src/arch/atarist/pce-atarist
Undefined symbols for architecture x86_64:
"_tun_close", referenced from:
_chr_ppp_open in char-ppp.o
_chr_ppp_close in char-ppp.o
_chr_slip_close in char-slip.o
"_tun_open", referenced from:
_chr_ppp_open in char-ppp.o
_chr_slip_open in char-slip.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [src/arch/atarist/pce-atarist] Error 1
Any suggestions on how I can compile pce for my Mac OS X 10.13?