Code Monkey home page Code Monkey logo

Comments (13)

cpcbegin avatar cpcbegin commented on July 29, 2024 1

There is a problem in new GNU/Linux because the code requires libwxgtk2.8 but new distros only have libwxgtk3.

from arnold.

rofl0r avatar rofl0r commented on July 29, 2024 1

you need to run ./autogen.sh, which creates the configure file

from arnold.

rofl0r avatar rofl0r commented on July 29, 2024 1

looks like you gotta install gtk+2-dev for autogen.sh to work

from arnold.

Chouzinho avatar Chouzinho commented on July 29, 2024

In Lubunu 19.10 64-bit, if I run ./autogen.sh I get this error message:
~/arnold-master/src$ ./autogen.sh
configure.ac:30: warning: macro 'AM_PATH_GTK_2_0' not found in library

A configure file is then created, but it doesn't work:

~/arnold-master/src$ ./configure
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 how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/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 whether byte ordering is bigendian... no
./configure: line 3457: syntax error near unexpected token 2.2.0,$as_echo' ./configure: line 3457: AM_PATH_GTK_2_0(2.2.0,$as_echo "#define HAVE_GTK 1" >>confdefs.h'

~/arnold-master/src$ make
cc -Wl,-b,binary,roms/amsdose/amsdos.rom,roms/cpc464e/os.rom,roms/cpc464e/basic.rom,roms/cpc664e/os.rom,roms/cpc664e/basic.rom,roms/cpc6128e/os.rom,roms/cpc6128e/basic.rom,roms/cpc6128s/os.rom,roms/cpc6128s/basic.rom,roms/cpcplus/system.cpr,roms/kcc/kccos.rom,roms/kcc/kccbas.rom,-b,elf64-x86-64 -o arnold
-lX11 -lXext cpc/arnold.o cpc/asic.o cpc/audioevent.o cpc/bmp.o cpc/cpc.o cpc/crtc.o cpc/dumpym.o cpc/fdc.o cpc/fdd.o cpc/fdi.o cpc/garray.o cpc/multface.o cpc/printer.o cpc/psgplay.o cpc/psg.o cpc/render.o cpc/render5.o cpc/snapshot.o cpc/sampload.o cpc/spo256.o cpc/pal.o cpc/voc.o cpc/tzxold.o cpc/wav.o cpc/westpha.o cpc/yiq.o cpc/z8536.o cpc/csw.o cpc/cassette.o cpc/amsdos.o cpc/debugger/gdebug.o cpc/debugger/breakpt.o cpc/diskimage/diskimg.o cpc/ramrom.o cpc/diskimage/dsk.o cpc/diskimage/extdsk.o cpc/diskimage/iextdsk.o cpc/z80/z80.o cpc/debugger/memdump.o cpc/riff.o cpc/snapv3.o cpc/messages.o unix/main.o unix/host.o unix/global.o unix/display.o unix/display_sdl.o unix/gtkui.o unix/sdlsound.o unix/configfile.o unix/roms.o unix/ifacegen.o unix/alsasound.o unix/alsasound-mmap.o unix/alsasound-common.o unix/osssound.o unix/sound.o
/usr/bin/ld: cpc/audioevent.o: in function Digiblaster_EndFrame': audioevent.c:(.text+0xce0): undefined reference to Digiblaster_Update'
/usr/bin/ld: cpc/audioevent.o: in function Audio_Digiblaster_Write': audioevent.c:(.text+0xd19): undefined reference to Digiblaster_Update'
/usr/bin/ld: cpc/fdc.o: in function FDC_NormalSeekComplete': fdc.c:(.text+0x131): undefined reference to FDC_SeekComplete'
/usr/bin/ld: cpc/fdc.o: in function FDC_CheckSeek': fdc.c:(.text+0x1ed): undefined reference to FDC_SeekComplete'
/usr/bin/ld: cpc/fdc.o: in function FDC_BeginSeek': fdc.c:(.text+0x255): undefined reference to FDC_SeekComplete'
/usr/bin/ld: cpc/psgplay.o: in function UpdateNoise': psgplay.c:(.text+0x55d): undefined reference to NoiseChooseOutput'
/usr/bin/ld: cpc/psgplay.o: in function PSG_UpdateChannels': psgplay.c:(.text+0x5f2): undefined reference to Envelope_Update'
/usr/bin/ld: psgplay.c:(.text+0x60f): undefined reference to UpdateChannelToneState' /usr/bin/ld: psgplay.c:(.text+0x620): undefined reference to UpdateChannelToneState'
/usr/bin/ld: psgplay.c:(.text+0x631): undefined reference to UpdateChannelToneState' /usr/bin/ld: psgplay.c:(.text+0x63b): undefined reference to GetFinalVolumeForChannel'
/usr/bin/ld: psgplay.c:(.text+0x648): undefined reference to GetFinalVolumeForChannel' /usr/bin/ld: psgplay.c:(.text+0x655): undefined reference to GetFinalVolumeForChannel'
/usr/bin/ld: cpc/tzxold.o: in function TapeImage_GetNextDataByte': tzxold.c:(.text+0x782): undefined reference to TapeImage_GetByte'
/usr/bin/ld: cpc/tzxold.o: in function TapeImage_HandleBlock0x010': tzxold.c:(.text+0x99e): undefined reference to TapeImage_GetByte'
/usr/bin/ld: tzxold.c:(.text+0xa9e): undefined reference to TapeImage_GetWord' /usr/bin/ld: tzxold.c:(.text+0xade): undefined reference to TapeImage_GetWord'
/usr/bin/ld: cpc/tzxold.o: in function TapeImage_HandleBlock0x011': tzxold.c:(.text+0xb85): undefined reference to TapeImage_GetWord'
/usr/bin/ld: tzxold.c:(.text+0xba9): undefined reference to TapeImage_GetWord' /usr/bin/ld: tzxold.c:(.text+0xbed): undefined reference to TapeImage_GetWord'
/usr/bin/ld: cpc/tzxold.o:tzxold.c:(.text+0xc44): more undefined references to TapeImage_GetWord' follow /usr/bin/ld: cpc/tzxold.o: in function TapeImage_HandleBlock0x011':
tzxold.c:(.text+0xce3): undefined reference to TapeImage_GetValue' /usr/bin/ld: tzxold.c:(.text+0xcfc): undefined reference to TapeImage_GetByte'
/usr/bin/ld: tzxold.c:(.text+0xd38): undefined reference to TapeImage_GetWord' /usr/bin/ld: cpc/tzxold.o: in function TapeImage_HandleBlock0x012':
tzxold.c:(.text+0xdbd): undefined reference to TapeImage_GetWord' /usr/bin/ld: tzxold.c:(.text+0xde1): undefined reference to TapeImage_GetWord'
/usr/bin/ld: cpc/tzxold.o: in function TapeImage_HandleBlock0x013': tzxold.c:(.text+0xe38): undefined reference to TapeImage_GetByte'
/usr/bin/ld: tzxold.c:(.text+0xe72): undefined reference to TapeImage_GetWord' /usr/bin/ld: cpc/tzxold.o: in function TapeImage_HandleBlock0x014':
tzxold.c:(.text+0xf1a): undefined reference to TapeImage_GetWord' /usr/bin/ld: tzxold.c:(.text+0xf3a): undefined reference to TapeImage_GetWord'
/usr/bin/ld: tzxold.c:(.text+0xf63): undefined reference to TapeImage_GetValue' /usr/bin/ld: tzxold.c:(.text+0xf7c): undefined reference to TapeImage_GetByte'
/usr/bin/ld: tzxold.c:(.text+0xfcf): undefined reference to TapeImage_GetWord' /usr/bin/ld: cpc/tzxold.o: in function TapeImage_HandleBlock0x020':
tzxold.c:(.text+0x1067): undefined reference to TapeImage_GetWord' /usr/bin/ld: cpc/tzxold.o: in function TapeImage_HandleBlock':
tzxold.c:(.text+0x11c9): undefined reference to TapeImage_GetByte' /usr/bin/ld: tzxold.c:(.text+0x1312): undefined reference to TapeImage_GetWord'
/usr/bin/ld: tzxold.c:(.text+0x1360): undefined reference to TapeImage_GetWord' /usr/bin/ld: tzxold.c:(.text+0x13af): undefined reference to TapeImage_GetWord'
/usr/bin/ld: tzxold.c:(.text+0x13e7): undefined reference to TapeImage_GetWord' /usr/bin/ld: cpc/tzxold.o: in function TapeImage_GetBlockLength':
tzxold.c:(.text+0x1484): undefined reference to TapeImage_GetByte' /usr/bin/ld: tzxold.c:(.text+0x14cf): undefined reference to TapeImage_GetWord'
/usr/bin/ld: tzxold.c:(.text+0x14f6): undefined reference to TapeImage_GetValue' /usr/bin/ld: tzxold.c:(.text+0x151e): undefined reference to TapeImage_GetByte'
/usr/bin/ld: tzxold.c:(.text+0x1547): undefined reference to TapeImage_GetValue' /usr/bin/ld: tzxold.c:(.text+0x156e): undefined reference to TapeImage_GetValue'
/usr/bin/ld: tzxold.c:(.text+0x1596): undefined reference to TapeImage_GetByte' /usr/bin/ld: tzxold.c:(.text+0x15dc): undefined reference to TapeImage_GetWord'
/usr/bin/ld: tzxold.c:(.text+0x1606): undefined reference to TapeImage_GetWord' /usr/bin/ld: tzxold.c:(.text+0x1629): undefined reference to TapeImage_GetValue'
/usr/bin/ld: tzxold.c:(.text+0x1647): undefined reference to TapeImage_GetByte' /usr/bin/ld: tzxold.c:(.text+0x1669): undefined reference to TapeImage_GetByte'
/usr/bin/ld: tzxold.c:(.text+0x1687): undefined reference to TapeImage_GetWord' /usr/bin/ld: tzxold.c:(.text+0x16a5): undefined reference to TapeImage_GetByte'
/usr/bin/ld: tzxold.c:(.text+0x16d8): undefined reference to TapeImage_GetValue' /usr/bin/ld: tzxold.c:(.text+0x16fc): undefined reference to TapeImage_GetValue'
/usr/bin/ld: tzxold.c:(.text+0x1723): undefined reference to TapeImage_GetValue' /usr/bin/ld: cpc/tzxold.o: in function TapeImage_GetBlockID':
tzxold.c:(.text+0x1789): undefined reference to TapeImage_GetByte' /usr/bin/ld: cpc/z80/z80.o: in function Z80_ExecuteInstruction':
z80.c:(.text+0x245df): undefined reference to RRA' /usr/bin/ld: unix/host.o: in function Host_close_audio':
host.c:(.text+0x155): undefined reference to sdl_close_audio' /usr/bin/ld: unix/host.o: in function Host_AudioPlaybackPossible':
host.c:(.text+0x1a6): undefined reference to sdl_AudioPlaybackPossible' /usr/bin/ld: unix/host.o: in function Host_GetSoundPlaybackFormat':
host.c:(.text+0x1fc): undefined reference to sdl_GetSoundPlaybackFormat' /usr/bin/ld: unix/host.o: in function Host_LockAudioBuffer':
host.c:(.text+0x4d0): undefined reference to sdl_LockAudioBuffer' /usr/bin/ld: unix/host.o: in function Host_UnLockAudioBuffer':
host.c:(.text+0x526): undefined reference to sdl_UnLockAudioBuffer' /usr/bin/ld: unix/display.o: in function XWindows_CheckDisplay':
display.c:(.text+0x12): undefined reference to XOpenDisplay' /usr/bin/ld: display.c:(.text+0x63): undefined reference to XCloseDisplay'
/usr/bin/ld: unix/display.o: in function XWindows_GotVisual': display.c:(.text+0x1a5): undefined reference to XCreateWindow'
/usr/bin/ld: display.c:(.text+0x1db): undefined reference to XInternAtom' /usr/bin/ld: display.c:(.text+0x204): undefined reference to XSetWMProtocols'
/usr/bin/ld: display.c:(.text+0x229): undefined reference to XCreateGC' /usr/bin/ld: display.c:(.text+0x249): undefined reference to XMapRaised'
/usr/bin/ld: display.c:(.text+0x27e): undefined reference to XSetWMHints' /usr/bin/ld: display.c:(.text+0x2f1): undefined reference to XSetWMNormalHints'
/usr/bin/ld: display.c:(.text+0x30a): undefined reference to XClearWindow' /usr/bin/ld: display.c:(.text+0x32a): undefined reference to XStoreName'
/usr/bin/ld: display.c:(.text+0x356): undefined reference to XSelectInput' /usr/bin/ld: display.c:(.text+0x37b): undefined reference to XWindowEvent'
/usr/bin/ld: display.c:(.text+0x3ec): undefined reference to XCreateImage' /usr/bin/ld: unix/display.o: in function XWindows_SetDisplayWindowed':
display.c:(.text+0x437): undefined reference to XOpenDisplay' /usr/bin/ld: display.c:(.text+0x4b2): undefined reference to XMatchVisualInfo'
/usr/bin/ld: display.c:(.text+0x504): undefined reference to XMatchVisualInfo' /usr/bin/ld: display.c:(.text+0x542): undefined reference to XMatchVisualInfo'
/usr/bin/ld: display.c:(.text+0x580): undefined reference to XMatchVisualInfo' /usr/bin/ld: display.c:(.text+0x5bb): undefined reference to XMatchVisualInfo'
/usr/bin/ld: unix/display.o:display.c:(.text+0x5f6): more undefined references to XMatchVisualInfo' follow /usr/bin/ld: unix/display.o: in function XWindows_SwapGraphicsBuffers':
display.c:(.text+0x8e6): undefined reference to XPutImage' /usr/bin/ld: display.c:(.text+0x911): undefined reference to XFlush'
/usr/bin/ld: unix/display.o: in function HandleKey': display.c:(.text+0x938): undefined reference to XLookupKeysym'
/usr/bin/ld: unix/display.o: in function XWindows_ProcessSystemEvents': display.c:(.text+0xd81): undefined reference to XNextEvent'
/usr/bin/ld: display.c:(.text+0xde0): undefined reference to `XPending'
collect2: error: ld returned 1 exit status
make: *** [Makefile:19: arnold] Error 1

from arnold.

Chouzinho avatar Chouzinho commented on July 29, 2024

Trying the same in Raspian Buster on the Raspberry Pi 4 results in an error too

pi@raspberrypi:~/arnold-master/src $ ./autogen.sh
configure.ac:30: warning: macro 'AM_PATH_GTK_2_0' not found in library

from arnold.

Chouzinho avatar Chouzinho commented on July 29, 2024

Hi! after installing libgtk2.0-dev, autogen.sh does work. "Make" continues to result in an error nonetheless:

~/arnold-master/src$ ./autogen.sh



~/arnold-master/src$ ./configure
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 how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/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 whether byte ordering is bigendian... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.7... yes
checking for GTK+ - version >= 2.2.0... yes (version 2.24.32)
checking for sdl-config... /usr/bin/sdl-config
checking for SDL - version >= 1.2.0... yes
checking for ALSA CFLAGS... 
checking for dlopen in -lc... no
checking for dlopen in -ldl... yes
checking for ALSA LDFLAGS...  -lasound -lm -ldl -lpthread
checking for libasound headers version >= 1.0.0... found.
checking for snd_ctl_open in -lasound... yes
checking sys/soundcard.h usability... yes
checking sys/soundcard.h presence... yes
checking for sys/soundcard.h... yes
checking for X... libraries , headers 
configure: creating ./config.status
config.status: creating config.mak




~/arnold-master/src$ make
gcc -Wl,-b,binary,roms/amsdose/amsdos.rom,roms/cpc464e/os.rom,roms/cpc464e/basic.rom,roms/cpc664e/os.rom,roms/cpc664e/basic.rom,roms/cpc6128e/os.rom,roms/cpc6128e/basic.rom,roms/cpc6128s/os.rom,roms/cpc6128s/basic.rom,roms/cpcplus/system.cpr,roms/kcc/kccos.rom,roms/kcc/kccbas.rom,-b,elf64-x86-64 -o arnold \
-lasound -lm -ldl -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 -L/usr/lib/x86_64-linux-gnu -lSDL -L -lX11 -lXext cpc/arnold.o cpc/asic.o cpc/audioevent.o cpc/bmp.o cpc/cpc.o cpc/crtc.o cpc/dumpym.o cpc/fdc.o cpc/fdd.o cpc/fdi.o cpc/garray.o cpc/multface.o cpc/printer.o cpc/psgplay.o cpc/psg.o cpc/render.o cpc/render5.o cpc/snapshot.o cpc/sampload.o cpc/spo256.o cpc/pal.o cpc/voc.o cpc/tzxold.o cpc/wav.o cpc/westpha.o cpc/yiq.o cpc/z8536.o cpc/csw.o cpc/cassette.o cpc/amsdos.o cpc/debugger/gdebug.o cpc/debugger/breakpt.o cpc/diskimage/diskimg.o cpc/ramrom.o cpc/diskimage/dsk.o cpc/diskimage/extdsk.o cpc/diskimage/iextdsk.o cpc/z80/z80.o cpc/debugger/memdump.o cpc/riff.o cpc/snapv3.o cpc/messages.o unix/main.o unix/host.o unix/global.o unix/display.o unix/display_sdl.o unix/gtkui.o unix/sdlsound.o unix/configfile.o unix/roms.o unix/ifacegen.o unix/alsasound.o unix/alsasound-mmap.o unix/alsasound-common.o unix/osssound.o unix/sound.o
/usr/bin/ld: cpc/audioevent.o: in function `Digiblaster_EndFrame':
audioevent.c:(.text+0xce0): undefined reference to `Digiblaster_Update'
/usr/bin/ld: cpc/audioevent.o: in function `Audio_Digiblaster_Write':
audioevent.c:(.text+0xd19): undefined reference to `Digiblaster_Update'
/usr/bin/ld: cpc/fdc.o: in function `FDC_NormalSeekComplete':
fdc.c:(.text+0x131): undefined reference to `FDC_SeekComplete'
/usr/bin/ld: cpc/fdc.o: in function `FDC_CheckSeek':
fdc.c:(.text+0x1ed): undefined reference to `FDC_SeekComplete'
/usr/bin/ld: cpc/fdc.o: in function `FDC_BeginSeek':
fdc.c:(.text+0x255): undefined reference to `FDC_SeekComplete'
/usr/bin/ld: cpc/psgplay.o: in function `UpdateNoise':
psgplay.c:(.text+0x55d): undefined reference to `NoiseChooseOutput'
/usr/bin/ld: cpc/psgplay.o: in function `PSG_UpdateChannels':
psgplay.c:(.text+0x5f2): undefined reference to `Envelope_Update'
/usr/bin/ld: psgplay.c:(.text+0x60f): undefined reference to `UpdateChannelToneState'
/usr/bin/ld: psgplay.c:(.text+0x620): undefined reference to `UpdateChannelToneState'
/usr/bin/ld: psgplay.c:(.text+0x631): undefined reference to `UpdateChannelToneState'
/usr/bin/ld: psgplay.c:(.text+0x63b): undefined reference to `GetFinalVolumeForChannel'
/usr/bin/ld: psgplay.c:(.text+0x648): undefined reference to `GetFinalVolumeForChannel'
/usr/bin/ld: psgplay.c:(.text+0x655): undefined reference to `GetFinalVolumeForChannel'
/usr/bin/ld: cpc/tzxold.o: in function `TapeImage_GetNextDataByte':
tzxold.c:(.text+0x782): undefined reference to `TapeImage_GetByte'
/usr/bin/ld: cpc/tzxold.o: in function `TapeImage_HandleBlock0x010':
tzxold.c:(.text+0x99e): undefined reference to `TapeImage_GetByte'
/usr/bin/ld: tzxold.c:(.text+0xa9e): undefined reference to `TapeImage_GetWord'
/usr/bin/ld: tzxold.c:(.text+0xade): undefined reference to `TapeImage_GetWord'
/usr/bin/ld: cpc/tzxold.o: in function `TapeImage_HandleBlock0x011':
tzxold.c:(.text+0xb85): undefined reference to `TapeImage_GetWord'
/usr/bin/ld: tzxold.c:(.text+0xba9): undefined reference to `TapeImage_GetWord'
/usr/bin/ld: tzxold.c:(.text+0xbed): undefined reference to `TapeImage_GetWord'
/usr/bin/ld: cpc/tzxold.o:tzxold.c:(.text+0xc44): more undefined references to `TapeImage_GetWord' follow
/usr/bin/ld: cpc/tzxold.o: in function `TapeImage_HandleBlock0x011':
tzxold.c:(.text+0xce3): undefined reference to `TapeImage_GetValue'
/usr/bin/ld: tzxold.c:(.text+0xcfc): undefined reference to `TapeImage_GetByte'
/usr/bin/ld: tzxold.c:(.text+0xd38): undefined reference to `TapeImage_GetWord'
/usr/bin/ld: cpc/tzxold.o: in function `TapeImage_HandleBlock0x012':
tzxold.c:(.text+0xdbd): undefined reference to `TapeImage_GetWord'
/usr/bin/ld: tzxold.c:(.text+0xde1): undefined reference to `TapeImage_GetWord'
/usr/bin/ld: cpc/tzxold.o: in function `TapeImage_HandleBlock0x013':
tzxold.c:(.text+0xe38): undefined reference to `TapeImage_GetByte'
/usr/bin/ld: tzxold.c:(.text+0xe72): undefined reference to `TapeImage_GetWord'
/usr/bin/ld: cpc/tzxold.o: in function `TapeImage_HandleBlock0x014':
tzxold.c:(.text+0xf1a): undefined reference to `TapeImage_GetWord'
/usr/bin/ld: tzxold.c:(.text+0xf3a): undefined reference to `TapeImage_GetWord'
/usr/bin/ld: tzxold.c:(.text+0xf63): undefined reference to `TapeImage_GetValue'
/usr/bin/ld: tzxold.c:(.text+0xf7c): undefined reference to `TapeImage_GetByte'
/usr/bin/ld: tzxold.c:(.text+0xfcf): undefined reference to `TapeImage_GetWord'
/usr/bin/ld: cpc/tzxold.o: in function `TapeImage_HandleBlock0x020':
tzxold.c:(.text+0x1067): undefined reference to `TapeImage_GetWord'
/usr/bin/ld: cpc/tzxold.o: in function `TapeImage_HandleBlock':
tzxold.c:(.text+0x11c9): undefined reference to `TapeImage_GetByte'
/usr/bin/ld: tzxold.c:(.text+0x1312): undefined reference to `TapeImage_GetWord'
/usr/bin/ld: tzxold.c:(.text+0x1360): undefined reference to `TapeImage_GetWord'
/usr/bin/ld: tzxold.c:(.text+0x13af): undefined reference to `TapeImage_GetWord'
/usr/bin/ld: tzxold.c:(.text+0x13e7): undefined reference to `TapeImage_GetWord'
/usr/bin/ld: cpc/tzxold.o: in function `TapeImage_GetBlockLength':
tzxold.c:(.text+0x1484): undefined reference to `TapeImage_GetByte'
/usr/bin/ld: tzxold.c:(.text+0x14cf): undefined reference to `TapeImage_GetWord'
/usr/bin/ld: tzxold.c:(.text+0x14f6): undefined reference to `TapeImage_GetValue'
/usr/bin/ld: tzxold.c:(.text+0x151e): undefined reference to `TapeImage_GetByte'
/usr/bin/ld: tzxold.c:(.text+0x1547): undefined reference to `TapeImage_GetValue'
/usr/bin/ld: tzxold.c:(.text+0x156e): undefined reference to `TapeImage_GetValue'
/usr/bin/ld: tzxold.c:(.text+0x1596): undefined reference to `TapeImage_GetByte'
/usr/bin/ld: tzxold.c:(.text+0x15dc): undefined reference to `TapeImage_GetWord'
/usr/bin/ld: tzxold.c:(.text+0x1606): undefined reference to `TapeImage_GetWord'
/usr/bin/ld: tzxold.c:(.text+0x1629): undefined reference to `TapeImage_GetValue'
/usr/bin/ld: tzxold.c:(.text+0x1647): undefined reference to `TapeImage_GetByte'
/usr/bin/ld: tzxold.c:(.text+0x1669): undefined reference to `TapeImage_GetByte'
/usr/bin/ld: tzxold.c:(.text+0x1687): undefined reference to `TapeImage_GetWord'
/usr/bin/ld: tzxold.c:(.text+0x16a5): undefined reference to `TapeImage_GetByte'
/usr/bin/ld: tzxold.c:(.text+0x16d8): undefined reference to `TapeImage_GetValue'
/usr/bin/ld: tzxold.c:(.text+0x16fc): undefined reference to `TapeImage_GetValue'
/usr/bin/ld: tzxold.c:(.text+0x1723): undefined reference to `TapeImage_GetValue'
/usr/bin/ld: cpc/tzxold.o: in function `TapeImage_GetBlockID':
tzxold.c:(.text+0x1789): undefined reference to `TapeImage_GetByte'
/usr/bin/ld: cpc/z80/z80.o: in function `Z80_ExecuteInstruction':
z80.c:(.text+0x245df): undefined reference to `RRA'
/usr/bin/ld: unix/host.o: in function `Host_close_audio':
host.c:(.text+0x155): undefined reference to `sdl_close_audio'
/usr/bin/ld: unix/host.o: in function `Host_AudioPlaybackPossible':
host.c:(.text+0x1a6): undefined reference to `sdl_AudioPlaybackPossible'
/usr/bin/ld: unix/host.o: in function `Host_GetSoundPlaybackFormat':
host.c:(.text+0x1fc): undefined reference to `sdl_GetSoundPlaybackFormat'
/usr/bin/ld: unix/host.o: in function `Host_LockAudioBuffer':
host.c:(.text+0x4d0): undefined reference to `sdl_LockAudioBuffer'
/usr/bin/ld: unix/host.o: in function `Host_UnLockAudioBuffer':
host.c:(.text+0x526): undefined reference to `sdl_UnLockAudioBuffer'
/usr/bin/ld: unix/display.o: in function `XWindows_CheckDisplay':
display.c:(.text+0x12): undefined reference to `XOpenDisplay'
/usr/bin/ld: display.c:(.text+0x63): undefined reference to `XCloseDisplay'
/usr/bin/ld: unix/display.o: in function `XWindows_GotVisual':
display.c:(.text+0x1a5): undefined reference to `XCreateWindow'
/usr/bin/ld: display.c:(.text+0x1db): undefined reference to `XInternAtom'
/usr/bin/ld: display.c:(.text+0x204): undefined reference to `XSetWMProtocols'
/usr/bin/ld: display.c:(.text+0x229): undefined reference to `XCreateGC'
/usr/bin/ld: display.c:(.text+0x249): undefined reference to `XMapRaised'
/usr/bin/ld: display.c:(.text+0x27e): undefined reference to `XSetWMHints'
/usr/bin/ld: display.c:(.text+0x2f1): undefined reference to `XSetWMNormalHints'
/usr/bin/ld: display.c:(.text+0x30a): undefined reference to `XClearWindow'
/usr/bin/ld: display.c:(.text+0x32a): undefined reference to `XStoreName'
/usr/bin/ld: display.c:(.text+0x356): undefined reference to `XSelectInput'
/usr/bin/ld: display.c:(.text+0x37b): undefined reference to `XWindowEvent'
/usr/bin/ld: display.c:(.text+0x3ec): undefined reference to `XCreateImage'
/usr/bin/ld: unix/display.o: in function `XWindows_SetDisplayWindowed':
display.c:(.text+0x437): undefined reference to `XOpenDisplay'
/usr/bin/ld: display.c:(.text+0x4b2): undefined reference to `XMatchVisualInfo'
/usr/bin/ld: display.c:(.text+0x504): undefined reference to `XMatchVisualInfo'
/usr/bin/ld: display.c:(.text+0x542): undefined reference to `XMatchVisualInfo'
/usr/bin/ld: display.c:(.text+0x580): undefined reference to `XMatchVisualInfo'
/usr/bin/ld: display.c:(.text+0x5bb): undefined reference to `XMatchVisualInfo'
/usr/bin/ld: unix/display.o:display.c:(.text+0x5f6): more undefined references to `XMatchVisualInfo' follow
/usr/bin/ld: unix/display.o: in function `XWindows_SwapGraphicsBuffers':
display.c:(.text+0x8e6): undefined reference to `XPutImage'
/usr/bin/ld: display.c:(.text+0x911): undefined reference to `XFlush'
/usr/bin/ld: unix/display.o: in function `HandleKey':
display.c:(.text+0x938): undefined reference to `XLookupKeysym'
/usr/bin/ld: unix/display.o: in function `XWindows_ProcessSystemEvents':
display.c:(.text+0xd81): undefined reference to `XNextEvent'
/usr/bin/ld: display.c:(.text+0xde0): undefined reference to `XPending'
collect2: error: ld returned 1 exit status
make: *** [Makefile:19: arnold] Error 1

from arnold.

rofl0r avatar rofl0r commented on July 29, 2024

if you change the following line in cpc/cpcglob.h from

#define INLINE __inline

to

#define INLINE inline

does that fix it ?

from arnold.

Chouzinho avatar Chouzinho commented on July 29, 2024

if you change the following line in cpc/cpcglob.h from

#define INLINE __inline

to

#define INLINE inline

does that fix it ?

No, it doesn't fix it. I've tried it and I still get an error:

~/arnold-master/src$ ./autogen.sh

~/arnold-master/src$ ./configure
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 how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/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 whether byte ordering is bigendian... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.7... yes
checking for GTK+ - version >= 2.2.0... yes (version 2.24.32)
checking for sdl-config... /usr/bin/sdl-config
checking for SDL - version >= 1.2.0... yes
checking for ALSA CFLAGS... 
checking for dlopen in -lc... no
checking for dlopen in -ldl... yes
checking for ALSA LDFLAGS...  -lasound -lm -ldl -lpthread
checking for libasound headers version >= 1.0.0... found.
checking for snd_ctl_open in -lasound... yes
checking sys/soundcard.h usability... yes
checking sys/soundcard.h presence... yes
checking for sys/soundcard.h... yes
checking for X... libraries , headers 
configure: creating ./config.status
config.status: creating config.mak

~/arnold-master/src$ make
gcc -Wl,-b,binary,roms/amsdose/amsdos.rom,roms/cpc464e/os.rom,roms/cpc464e/basic.rom,roms/cpc664e/os.rom,roms/cpc664e/basic.rom,roms/cpc6128e/os.rom,roms/cpc6128e/basic.rom,roms/cpc6128s/os.rom,roms/cpc6128s/basic.rom,roms/cpcplus/system.cpr,roms/kcc/kccos.rom,roms/kcc/kccbas.rom,-b,elf64-x86-64 -o arnold \
-lasound -lm -ldl -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 -L/usr/lib/x86_64-linux-gnu -lSDL -L -lX11 -lXext cpc/arnold.o cpc/asic.o cpc/audioevent.o cpc/bmp.o cpc/cpc.o cpc/crtc.o cpc/dumpym.o cpc/fdc.o cpc/fdd.o cpc/fdi.o cpc/garray.o cpc/multface.o cpc/printer.o cpc/psgplay.o cpc/psg.o cpc/render.o cpc/render5.o cpc/snapshot.o cpc/sampload.o cpc/spo256.o cpc/pal.o cpc/voc.o cpc/tzxold.o cpc/wav.o cpc/westpha.o cpc/yiq.o cpc/z8536.o cpc/csw.o cpc/cassette.o cpc/amsdos.o cpc/debugger/gdebug.o cpc/debugger/breakpt.o cpc/diskimage/diskimg.o cpc/ramrom.o cpc/diskimage/dsk.o cpc/diskimage/extdsk.o cpc/diskimage/iextdsk.o cpc/z80/z80.o cpc/debugger/memdump.o cpc/riff.o cpc/snapv3.o cpc/messages.o unix/main.o unix/host.o unix/global.o unix/display.o unix/display_sdl.o unix/gtkui.o unix/sdlsound.o unix/configfile.o unix/roms.o unix/ifacegen.o unix/alsasound.o unix/alsasound-mmap.o unix/alsasound-common.o unix/osssound.o unix/sound.o
/usr/bin/ld: cpc/audioevent.o: in function `Digiblaster_EndFrame':
audioevent.c:(.text+0xce0): undefined reference to `Digiblaster_Update'
/usr/bin/ld: cpc/audioevent.o: in function `Audio_Digiblaster_Write':
audioevent.c:(.text+0xd19): undefined reference to `Digiblaster_Update'
/usr/bin/ld: cpc/fdc.o: in function `FDC_NormalSeekComplete':
fdc.c:(.text+0x131): undefined reference to `FDC_SeekComplete'
/usr/bin/ld: cpc/fdc.o: in function `FDC_CheckSeek':
fdc.c:(.text+0x1ed): undefined reference to `FDC_SeekComplete'
/usr/bin/ld: cpc/fdc.o: in function `FDC_BeginSeek':
fdc.c:(.text+0x255): undefined reference to `FDC_SeekComplete'
/usr/bin/ld: cpc/psgplay.o: in function `UpdateNoise':
psgplay.c:(.text+0x55d): undefined reference to `NoiseChooseOutput'
/usr/bin/ld: cpc/psgplay.o: in function `PSG_UpdateChannels':
psgplay.c:(.text+0x5f2): undefined reference to `Envelope_Update'
/usr/bin/ld: psgplay.c:(.text+0x60f): undefined reference to `UpdateChannelToneState'
/usr/bin/ld: psgplay.c:(.text+0x620): undefined reference to `UpdateChannelToneState'
/usr/bin/ld: psgplay.c:(.text+0x631): undefined reference to `UpdateChannelToneState'
/usr/bin/ld: psgplay.c:(.text+0x63b): undefined reference to `GetFinalVolumeForChannel'
/usr/bin/ld: psgplay.c:(.text+0x648): undefined reference to `GetFinalVolumeForChannel'
/usr/bin/ld: psgplay.c:(.text+0x655): undefined reference to `GetFinalVolumeForChannel'
/usr/bin/ld: cpc/tzxold.o: in function `TapeImage_GetNextDataByte':
tzxold.c:(.text+0x782): undefined reference to `TapeImage_GetByte'
/usr/bin/ld: cpc/tzxold.o: in function `TapeImage_HandleBlock0x010':
tzxold.c:(.text+0x99e): undefined reference to `TapeImage_GetByte'
/usr/bin/ld: tzxold.c:(.text+0xa9e): undefined reference to `TapeImage_GetWord'
/usr/bin/ld: tzxold.c:(.text+0xade): undefined reference to `TapeImage_GetWord'
/usr/bin/ld: cpc/tzxold.o: in function `TapeImage_HandleBlock0x011':
tzxold.c:(.text+0xb85): undefined reference to `TapeImage_GetWord'
/usr/bin/ld: tzxold.c:(.text+0xba9): undefined reference to `TapeImage_GetWord'
/usr/bin/ld: tzxold.c:(.text+0xbed): undefined reference to `TapeImage_GetWord'
/usr/bin/ld: cpc/tzxold.o:tzxold.c:(.text+0xc44): more undefined references to `TapeImage_GetWord' follow
/usr/bin/ld: cpc/tzxold.o: in function `TapeImage_HandleBlock0x011':
tzxold.c:(.text+0xce3): undefined reference to `TapeImage_GetValue'
/usr/bin/ld: tzxold.c:(.text+0xcfc): undefined reference to `TapeImage_GetByte'
/usr/bin/ld: tzxold.c:(.text+0xd38): undefined reference to `TapeImage_GetWord'
/usr/bin/ld: cpc/tzxold.o: in function `TapeImage_HandleBlock0x012':
tzxold.c:(.text+0xdbd): undefined reference to `TapeImage_GetWord'
/usr/bin/ld: tzxold.c:(.text+0xde1): undefined reference to `TapeImage_GetWord'
/usr/bin/ld: cpc/tzxold.o: in function `TapeImage_HandleBlock0x013':
tzxold.c:(.text+0xe38): undefined reference to `TapeImage_GetByte'
/usr/bin/ld: tzxold.c:(.text+0xe72): undefined reference to `TapeImage_GetWord'
/usr/bin/ld: cpc/tzxold.o: in function `TapeImage_HandleBlock0x014':
tzxold.c:(.text+0xf1a): undefined reference to `TapeImage_GetWord'
/usr/bin/ld: tzxold.c:(.text+0xf3a): undefined reference to `TapeImage_GetWord'
/usr/bin/ld: tzxold.c:(.text+0xf63): undefined reference to `TapeImage_GetValue'
/usr/bin/ld: tzxold.c:(.text+0xf7c): undefined reference to `TapeImage_GetByte'
/usr/bin/ld: tzxold.c:(.text+0xfcf): undefined reference to `TapeImage_GetWord'
/usr/bin/ld: cpc/tzxold.o: in function `TapeImage_HandleBlock0x020':
tzxold.c:(.text+0x1067): undefined reference to `TapeImage_GetWord'
/usr/bin/ld: cpc/tzxold.o: in function `TapeImage_HandleBlock':
tzxold.c:(.text+0x11c9): undefined reference to `TapeImage_GetByte'
/usr/bin/ld: tzxold.c:(.text+0x1312): undefined reference to `TapeImage_GetWord'
/usr/bin/ld: tzxold.c:(.text+0x1360): undefined reference to `TapeImage_GetWord'
/usr/bin/ld: tzxold.c:(.text+0x13af): undefined reference to `TapeImage_GetWord'
/usr/bin/ld: tzxold.c:(.text+0x13e7): undefined reference to `TapeImage_GetWord'
/usr/bin/ld: cpc/tzxold.o: in function `TapeImage_GetBlockLength':
tzxold.c:(.text+0x1484): undefined reference to `TapeImage_GetByte'
/usr/bin/ld: tzxold.c:(.text+0x14cf): undefined reference to `TapeImage_GetWord'
/usr/bin/ld: tzxold.c:(.text+0x14f6): undefined reference to `TapeImage_GetValue'
/usr/bin/ld: tzxold.c:(.text+0x151e): undefined reference to `TapeImage_GetByte'
/usr/bin/ld: tzxold.c:(.text+0x1547): undefined reference to `TapeImage_GetValue'
/usr/bin/ld: tzxold.c:(.text+0x156e): undefined reference to `TapeImage_GetValue'
/usr/bin/ld: tzxold.c:(.text+0x1596): undefined reference to `TapeImage_GetByte'
/usr/bin/ld: tzxold.c:(.text+0x15dc): undefined reference to `TapeImage_GetWord'
/usr/bin/ld: tzxold.c:(.text+0x1606): undefined reference to `TapeImage_GetWord'
/usr/bin/ld: tzxold.c:(.text+0x1629): undefined reference to `TapeImage_GetValue'
/usr/bin/ld: tzxold.c:(.text+0x1647): undefined reference to `TapeImage_GetByte'
/usr/bin/ld: tzxold.c:(.text+0x1669): undefined reference to `TapeImage_GetByte'
/usr/bin/ld: tzxold.c:(.text+0x1687): undefined reference to `TapeImage_GetWord'
/usr/bin/ld: tzxold.c:(.text+0x16a5): undefined reference to `TapeImage_GetByte'
/usr/bin/ld: tzxold.c:(.text+0x16d8): undefined reference to `TapeImage_GetValue'
/usr/bin/ld: tzxold.c:(.text+0x16fc): undefined reference to `TapeImage_GetValue'
/usr/bin/ld: tzxold.c:(.text+0x1723): undefined reference to `TapeImage_GetValue'
/usr/bin/ld: cpc/tzxold.o: in function `TapeImage_GetBlockID':
tzxold.c:(.text+0x1789): undefined reference to `TapeImage_GetByte'
/usr/bin/ld: cpc/z80/z80.o: in function `Z80_ExecuteInstruction':
z80.c:(.text+0x245df): undefined reference to `RRA'
/usr/bin/ld: unix/host.o: in function `Host_close_audio':
host.c:(.text+0x155): undefined reference to `sdl_close_audio'
/usr/bin/ld: unix/host.o: in function `Host_AudioPlaybackPossible':
host.c:(.text+0x1a6): undefined reference to `sdl_AudioPlaybackPossible'
/usr/bin/ld: unix/host.o: in function `Host_GetSoundPlaybackFormat':
host.c:(.text+0x1fc): undefined reference to `sdl_GetSoundPlaybackFormat'
/usr/bin/ld: unix/host.o: in function `Host_LockAudioBuffer':
host.c:(.text+0x4d0): undefined reference to `sdl_LockAudioBuffer'
/usr/bin/ld: unix/host.o: in function `Host_UnLockAudioBuffer':
host.c:(.text+0x526): undefined reference to `sdl_UnLockAudioBuffer'
/usr/bin/ld: unix/display.o: in function `XWindows_CheckDisplay':
display.c:(.text+0x12): undefined reference to `XOpenDisplay'
/usr/bin/ld: display.c:(.text+0x63): undefined reference to `XCloseDisplay'
/usr/bin/ld: unix/display.o: in function `XWindows_GotVisual':
display.c:(.text+0x1a5): undefined reference to `XCreateWindow'
/usr/bin/ld: display.c:(.text+0x1db): undefined reference to `XInternAtom'
/usr/bin/ld: display.c:(.text+0x204): undefined reference to `XSetWMProtocols'
/usr/bin/ld: display.c:(.text+0x229): undefined reference to `XCreateGC'
/usr/bin/ld: display.c:(.text+0x249): undefined reference to `XMapRaised'
/usr/bin/ld: display.c:(.text+0x27e): undefined reference to `XSetWMHints'
/usr/bin/ld: display.c:(.text+0x2f1): undefined reference to `XSetWMNormalHints'
/usr/bin/ld: display.c:(.text+0x30a): undefined reference to `XClearWindow'
/usr/bin/ld: display.c:(.text+0x32a): undefined reference to `XStoreName'
/usr/bin/ld: display.c:(.text+0x356): undefined reference to `XSelectInput'
/usr/bin/ld: display.c:(.text+0x37b): undefined reference to `XWindowEvent'
/usr/bin/ld: display.c:(.text+0x3ec): undefined reference to `XCreateImage'
/usr/bin/ld: unix/display.o: in function `XWindows_SetDisplayWindowed':
display.c:(.text+0x437): undefined reference to `XOpenDisplay'
/usr/bin/ld: display.c:(.text+0x4b2): undefined reference to `XMatchVisualInfo'
/usr/bin/ld: display.c:(.text+0x504): undefined reference to `XMatchVisualInfo'
/usr/bin/ld: display.c:(.text+0x542): undefined reference to `XMatchVisualInfo'
/usr/bin/ld: display.c:(.text+0x580): undefined reference to `XMatchVisualInfo'
/usr/bin/ld: display.c:(.text+0x5bb): undefined reference to `XMatchVisualInfo'
/usr/bin/ld: unix/display.o:display.c:(.text+0x5f6): more undefined references to `XMatchVisualInfo' follow
/usr/bin/ld: unix/display.o: in function `XWindows_SwapGraphicsBuffers':
display.c:(.text+0x8e6): undefined reference to `XPutImage'
/usr/bin/ld: display.c:(.text+0x911): undefined reference to `XFlush'
/usr/bin/ld: unix/display.o: in function `HandleKey':
display.c:(.text+0x938): undefined reference to `XLookupKeysym'
/usr/bin/ld: unix/display.o: in function `XWindows_ProcessSystemEvents':
display.c:(.text+0xd81): undefined reference to `XNextEvent'
/usr/bin/ld: display.c:(.text+0xde0): undefined reference to `XPending'
collect2: error: ld returned 1 exit status
make: *** [Makefile:19: arnold] Error 1

from arnold.

Chouzinho avatar Chouzinho commented on July 29, 2024

update: I've tried to compile again in Raspbian Buster (raspberry Pi 4), and after installig libgtk2.0-dev it worked.

So, I understand that is an Lubuntu 19.10 64-bit problem, and not a problem of the arnold source files, given that the compile procedure works in Raspbian 10.

from arnold.

rofl0r avatar rofl0r commented on July 29, 2024

let's leave this open until we find out what breaks it on ubuntu.
it's probably some different default setting used by the specific compiler version (gcc)

from arnold.

rofl0r avatar rofl0r commented on July 29, 2024

@Chouzinho i just pushed a commit 19c295e which i believe should fix your issue on lubuntu. could you test it please ?

from arnold.

Chouzinho avatar Chouzinho commented on July 29, 2024

@Chouzinho i just pushed a commit 19c295e which i believe should fix your issue on lubuntu. could you test it please ?

Hi! I've just tried the modified src files. You were right, it works like a charm now, good job! Thanks a lot. Tried in Lubuntu 19.10 64-bit.

from arnold.

rofl0r avatar rofl0r commented on July 29, 2024

cool, thanks for testing.

from arnold.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.