Closed dblaber closed 3 years ago
Linux build fails after commit https://github.com/cebix/macemu/commit/a46759990d33d7d1e2c7bac01459747d6180eb76 which surrounds video_sdl.cpp around an ifdef.
g++ -o SheepShaver -Wl,-T,ldscripts/linux-x86_64.ld obj/main.o obj/main_unix.o obj/prefs.o obj/prefs_items.o obj/prefs_unix.o obj/sys_unix.o obj/rom_patches.o obj/rsrc_patches.o obj/emul_op.o obj/name_registry.o obj/macos_util.o obj/timer.o obj/timer_unix.o obj/xpram.o obj/xpram_unix.o obj/adb.o obj/sony.o obj/disk.o obj/cdrom.o obj/scsi.o obj/gfxaccel.o obj/video.o obj/audio.o obj/ether.o obj/thunks.o obj/serial.o obj/extfs.o obj/disk_sparsebundle.o obj/tinyxml2.o obj/about_window_unix.o obj/user_strings.o obj/user_strings_unix.o obj/rpc_unix.o obj/sshpty.o obj/strlcpy.o obj/vm_alloc.o obj/sigsegv.o obj/video_blit.o obj/video_sdl.o obj/extfs_unix.o obj/prefs_dummy.o obj/serial_unix.o obj/ether_unix.o obj/scsi_linux.o obj/audio_sdl.o obj/prefs_editor_gtk.o obj/clip_dummy.o obj/jit-cache.o obj/basic-dyngen.o obj/ppc-dyngen.o obj/ppc-jit.o obj/ieeefp.o obj/mathlib.o obj/ppc-cpu.o obj/ppc-decode.o obj/ppc-execute.o obj/ppc-translate.o obj/utils-cpuinfo.o obj/sheepshaver_glue.o obj/ppc-dis.o obj/bootp.o obj/ip_output.o obj/tcp_input.o obj/cksum.o obj/mbuf.o obj/tcp_output.o obj/debug.o obj/misc.o obj/tcp_subr.o obj/if.o obj/sbuf.o obj/tcp_timer.o obj/ip_icmp.o obj/slirp.o obj/tftp.o obj/ip_input.o obj/socket.o obj/udp.o -lpthread -lm -lSDL -lpthread -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: obj/main.o: in function InitAll(char const*)': /home/dmb/Downloads/macemu/SheepShaver/src/Unix/../main.cpp:157: undefined reference toVideoInit()' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: obj/main.o: in function ExitAll()': /home/dmb/Downloads/macemu/SheepShaver/src/Unix/../main.cpp:302: undefined reference toVideoExit()' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: obj/gfxaccel.o: in function NQD_set_dirty_area': /home/dmb/Downloads/macemu/SheepShaver/src/Unix/../gfxaccel.cpp:63: undefined reference tovideo_set_dirty_area(int, int, int, int)' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /home/dmb/Downloads/macemu/SheepShaver/src/Unix/../gfxaccel.cpp:63: undefined reference to video_set_dirty_area(int, int, int, int)' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /home/dmb/Downloads/macemu/SheepShaver/src/Unix/../gfxaccel.cpp:63: undefined reference tovideo_set_dirty_area(int, int, int, int)' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: obj/video.o: in function UseHardwareCursor': /home/dmb/Downloads/macemu/SheepShaver/src/Unix/../video.cpp:151: undefined reference tovideo_can_change_cursor()' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: obj/video.o: in function VideoControl': /home/dmb/Downloads/macemu/SheepShaver/src/Unix/../video.cpp:543: undefined reference tovideo_can_change_cursor()' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /home/dmb/Downloads/macemu/SheepShaver/src/Unix/../video.cpp:544: undefined reference to video_set_cursor()' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /home/dmb/Downloads/macemu/SheepShaver/src/Unix/../video.cpp:470: undefined reference tovideo_can_change_cursor()' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /home/dmb/Downloads/macemu/SheepShaver/src/Unix/../video.cpp:362: undefined reference to video_set_palette()' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /home/dmb/Downloads/macemu/SheepShaver/src/Unix/../video.cpp:283: undefined reference tovideo_mode_change(VidLocals, unsigned int)' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /home/dmb/Downloads/macemu/SheepShaver/src/Unix/../video.cpp:421: undefined reference to `video_mode_change(VidLocals, unsigned int)' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /home/dmb/Downloads/macemu/SheepShaver/src/Unix/../video.cpp:470: undefined reference to video_can_change_cursor()' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /home/dmb/Downloads/macemu/SheepShaver/src/Unix/../video.cpp:473: undefined reference tovideo_set_cursor()' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: obj/sheepshaver_glue.o: in function sheepshaver_cpu::execute_native_op(unsigned int)': /home/dmb/Downloads/macemu/SheepShaver/src/Unix/../kpx_cpu/sheepshaver_glue.cpp:1049: undefined reference toVideoVBL()'
InitAll(char const*)': /home/dmb/Downloads/macemu/SheepShaver/src/Unix/../main.cpp:157: undefined reference to
ExitAll()': /home/dmb/Downloads/macemu/SheepShaver/src/Unix/../main.cpp:302: undefined reference to
NQD_set_dirty_area': /home/dmb/Downloads/macemu/SheepShaver/src/Unix/../gfxaccel.cpp:63: undefined reference to
video_set_dirty_area(int, int, int, int)' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /home/dmb/Downloads/macemu/SheepShaver/src/Unix/../gfxaccel.cpp:63: undefined reference to
UseHardwareCursor': /home/dmb/Downloads/macemu/SheepShaver/src/Unix/../video.cpp:151: undefined reference to
VideoControl': /home/dmb/Downloads/macemu/SheepShaver/src/Unix/../video.cpp:543: undefined reference to
video_set_cursor()' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /home/dmb/Downloads/macemu/SheepShaver/src/Unix/../video.cpp:470: undefined reference to
video_set_palette()' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /home/dmb/Downloads/macemu/SheepShaver/src/Unix/../video.cpp:283: undefined reference to
video_can_change_cursor()' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /home/dmb/Downloads/macemu/SheepShaver/src/Unix/../video.cpp:473: undefined reference to
sheepshaver_cpu::execute_native_op(unsigned int)': /home/dmb/Downloads/macemu/SheepShaver/src/Unix/../kpx_cpu/sheepshaver_glue.cpp:1049: undefined reference to
Linux build fails after commit https://github.com/cebix/macemu/commit/a46759990d33d7d1e2c7bac01459747d6180eb76 which surrounds video_sdl.cpp around an ifdef.
g++ -o SheepShaver -Wl,-T,ldscripts/linux-x86_64.ld obj/main.o obj/main_unix.o obj/prefs.o obj/prefs_items.o obj/prefs_unix.o obj/sys_unix.o obj/rom_patches.o obj/rsrc_patches.o obj/emul_op.o obj/name_registry.o obj/macos_util.o obj/timer.o obj/timer_unix.o obj/xpram.o obj/xpram_unix.o obj/adb.o obj/sony.o obj/disk.o obj/cdrom.o obj/scsi.o obj/gfxaccel.o obj/video.o obj/audio.o obj/ether.o obj/thunks.o obj/serial.o obj/extfs.o obj/disk_sparsebundle.o obj/tinyxml2.o obj/about_window_unix.o obj/user_strings.o obj/user_strings_unix.o obj/rpc_unix.o obj/sshpty.o obj/strlcpy.o obj/vm_alloc.o obj/sigsegv.o obj/video_blit.o obj/video_sdl.o obj/extfs_unix.o obj/prefs_dummy.o obj/serial_unix.o obj/ether_unix.o obj/scsi_linux.o obj/audio_sdl.o obj/prefs_editor_gtk.o obj/clip_dummy.o obj/jit-cache.o obj/basic-dyngen.o obj/ppc-dyngen.o obj/ppc-jit.o obj/ieeefp.o obj/mathlib.o obj/ppc-cpu.o obj/ppc-decode.o obj/ppc-execute.o obj/ppc-translate.o obj/utils-cpuinfo.o obj/sheepshaver_glue.o obj/ppc-dis.o obj/bootp.o obj/ip_output.o obj/tcp_input.o obj/cksum.o obj/mbuf.o obj/tcp_output.o obj/debug.o obj/misc.o obj/tcp_subr.o obj/if.o obj/sbuf.o obj/tcp_timer.o obj/ip_icmp.o obj/slirp.o obj/tftp.o obj/ip_input.o obj/socket.o obj/udp.o -lpthread -lm -lSDL -lpthread -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: obj/main.o: in function
InitAll(char const*)': /home/dmb/Downloads/macemu/SheepShaver/src/Unix/../main.cpp:157: undefined reference to
VideoInit()' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: obj/main.o: in functionExitAll()': /home/dmb/Downloads/macemu/SheepShaver/src/Unix/../main.cpp:302: undefined reference to
VideoExit()' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: obj/gfxaccel.o: in functionNQD_set_dirty_area': /home/dmb/Downloads/macemu/SheepShaver/src/Unix/../gfxaccel.cpp:63: undefined reference to
video_set_dirty_area(int, int, int, int)' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /home/dmb/Downloads/macemu/SheepShaver/src/Unix/../gfxaccel.cpp:63: undefined reference tovideo_set_dirty_area(int, int, int, int)' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /home/dmb/Downloads/macemu/SheepShaver/src/Unix/../gfxaccel.cpp:63: undefined reference to
video_set_dirty_area(int, int, int, int)' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: obj/video.o: in functionUseHardwareCursor': /home/dmb/Downloads/macemu/SheepShaver/src/Unix/../video.cpp:151: undefined reference to
video_can_change_cursor()' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: obj/video.o: in functionVideoControl': /home/dmb/Downloads/macemu/SheepShaver/src/Unix/../video.cpp:543: undefined reference to
video_can_change_cursor()' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /home/dmb/Downloads/macemu/SheepShaver/src/Unix/../video.cpp:544: undefined reference tovideo_set_cursor()' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /home/dmb/Downloads/macemu/SheepShaver/src/Unix/../video.cpp:470: undefined reference to
video_can_change_cursor()' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /home/dmb/Downloads/macemu/SheepShaver/src/Unix/../video.cpp:362: undefined reference tovideo_set_palette()' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /home/dmb/Downloads/macemu/SheepShaver/src/Unix/../video.cpp:283: undefined reference to
video_mode_change(VidLocals, unsigned int)' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /home/dmb/Downloads/macemu/SheepShaver/src/Unix/../video.cpp:421: undefined reference to `video_mode_change(VidLocals, unsigned int)' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /home/dmb/Downloads/macemu/SheepShaver/src/Unix/../video.cpp:470: undefined reference tovideo_can_change_cursor()' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /home/dmb/Downloads/macemu/SheepShaver/src/Unix/../video.cpp:473: undefined reference to
video_set_cursor()' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: obj/sheepshaver_glue.o: in functionsheepshaver_cpu::execute_native_op(unsigned int)': /home/dmb/Downloads/macemu/SheepShaver/src/Unix/../kpx_cpu/sheepshaver_glue.cpp:1049: undefined reference to
VideoVBL()'