Giter VIP home page Giter VIP logo

Comments (15)

stuaxo avatar stuaxo commented on June 29, 2024

I did quick test, and i386 and i686 both seem to be defined - maybe i686 needs to trigger the 486 or later code ?

// test.c
#include <stdio.h>

int main(int argc, char *argv[])
{
    #ifdef __i386__
        printf("386 defined\n");
    #endif
    #ifdef __i486__
        printf("486 defined\n");
    #endif
    #ifdef __i586__
        printf("586 defined\n");
    #endif
    #ifdef __i686__
        printf("__686__ defined\n");
    #endif
    #ifdef __x86_64__  
        printf("__x86_64__ defined\n");
    #endif
    return 0;
}
gcc test.c && ./a.out
__x86_64__ defined
gcc -m32 test.c && ./a.out
386 defined
__686__ defined

from executor.

MaddTheSane avatar MaddTheSane commented on June 29, 2024

First, try also passing --build=x86_64-pc-linux-gnu --host=i686-pc-linux-gnu as configure options; second, try --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu.

ARCH_TYPE_I386 is defined in src/config/arch/i386/i386.h The only thing I can think of that might prevent the inclusion of the header is if the configure set-up is pointing to the x86_64 header instead.

I know the configure utility creates symlinks in a directory that point to the necessary headers, but it has been awhile since I've ran the configure utility. You could mess with the configuration that way.

from executor.

stuaxo avatar stuaxo commented on June 29, 2024

Tried --build=x86_64-pc-linux-gnu --host=i686-pc-linux-gnu and it gets a lot further, it seems to complain about undefined reference to XInitThreads'` had a go at adding '-lX11' to GCC="..." but it didn't seem to help.

CC='gcc -m32 -fno-stack-check -fno-stack-protector' OBJC='gcc -m32 -fno-stack-check -fno-stack-protector -w' make
make  all-am
make[1]: Entering directory '/mnt/data/home/stu/projects/external/executor/build'
gcc -m32 -fno-stack-check -fno-stack-protector     -o executor ctlArrows.o ctlDisplay.o ctlIMIV.o ctlInit.o ctlMisc.o ctlMouse.o ctlSet.o ctlSize.o ctlStddef.o ctlPopup.o dialAlert.o dialCreate.o dialHandle.o dialInit.o dialManip.o dialDispatch.o dialItem.o fileAccess.o fileCreate.o fileDirs.o fileDouble.o fileInfo.o fileMisc.o fileVolumes.o fileHighlevel.o dcache.o hfsBtree.o hfsChanging.o hfsCreate.o hfsFile.o hfsHelper.o hfsHier.o hfsMisc.o hfsVolume.o hfsWorkingdir.o hfsXbar.o listAccess.o listAddDel.o listCreate.o listDisplay.o listMouse.o listOps.o listStdLDEF.o menu.o menuColor.o menuV.o stdmdef.o stdmbdf.o PSprint.o PSstrings.o prError.o prInit.o prLowLevel.o prPrinting.o prRecords.o qBit.o qCConv.o qCGrafPort.o qCRegular.o qColor.o qColorMgr.o qColorutil.o qCursor.o qGrafport.o qIMIV.o qIMV.o qIMVxfer.o qMisc.o qPaletteMgr.o qPen.o qPicstuff.o qPicture.o qPixMapConv.o qPoint.o qPoly.o qRect.o qRegion.o qRegular.o qScale.o qStandard.o qStdArc.o qStdBits.o qStdLine.o qStdOval.o qStdPic.o qStdPoly.o qStdRRect.o qStdRect.o qStdRgn.o qStdText.o qText.o qGWorld.o qGDevice.o qIMVI.o qHooks.o xdata.o xdblt.o rawpatblt.o rawsrcblt.o dirtyrect.o srcblt.o qColorPicker.o qPict2.o image.o image_inits.o default_ctab_values.o dcconvert.o rgbutil.o dcmaketables.o resGet.o resGetinfo.o resGettype.o resIMIV.o resInit.o resMisc.o resMod.o resOpen.o resSetcur.o resPartial.o teAccess.o teDisplay.o teEdit.o teIMIV.o teIMV.o teInit.o teInsert.o teMisc.o teScrap.o windColor.o windDisplay.o windDocdef.o windInit.o windMisc.o windMouse.o windSize.o windUpdate.o AE.o AE_desc.o AE_hdlr.o AE_coercion.o sounddriver.o sound.o soundIMVI.o soundfake.o snth5.o   sdl-sound.o bindec.o float4.o float5.o float7.o floatnext.o toolmath.o mathlib.o desk.o device.o disk.o diskinit.o dump.o trapname.o font.o gestalt.o globals.o iu.o launch.o main.o mman.o mmansubr.o notify.o hle.o osevent.o osutil.o pack.o scrap.o script.o segment.o serial.o setuid.o slash.o stdfile.o romlib_stubs.o syserr.o toolevent.o toolutil.o time.o vbl.o syncint.o virtualint.o refresh.o autorefresh.o aboutbox.o licensetext.o keycode.o option.o parseopt.o parsenum.o desperate.o version.o shutdown.o uniquefile.o sigio_multiplex.o screen-dump.o process.o alias.o string.o tempmem.o edition.o fontIMVI.o balloon.o error.o adb.o color_wheel_bits.o finder.o system_error.o ibm_keycodes.o splash.o icon.o redrawscreen.o ini.o checkpoint.o qt.o cleanup.o paramline.o fauxdbm.o custom.o commtool.o cfm.o local_charset.o pef_hash.o interfacelib.o mixed_mode.o suffix_maps.o appearance.o lockrange.o emutrap.o emutraptables.o emustubs.o unix_like.o parse.o check_structs.o executor.o mkvol.o crc.o i386.o x86patblt.o x86srcblt.o xdstubtables.o sbstubtables.o SDL_bmp.o sdlevents.o sdl_mem.o sdlquit.o sdlscrap.o sdlwin.o sdlwm.o syswm_map.o winmain.o sdlX.o   linux.o linux_except.o lowglobals-mem.o     -lm -lpthread -lsyn68k 
fileVolumes.o: In function `writeadbm':
/home/stu/projects/external/executor/build/../src/fileVolumes.c:585: undefined reference to `__db_ndbm_open'
/home/stu/projects/external/executor/build/../src/fileVolumes.c:606: undefined reference to `__db_ndbm_store'
/home/stu/projects/external/executor/build/../src/fileVolumes.c:613: undefined reference to `__db_ndbm_store'
/home/stu/projects/external/executor/build/../src/fileVolumes.c:615: undefined reference to `__db_ndbm_close'
fileVolumes.o: In function `readadbm':
/home/stu/projects/external/executor/build/../src/fileVolumes.c:552: undefined reference to `__db_ndbm_open'
/home/stu/projects/external/executor/build/../src/fileVolumes.c:567: undefined reference to `__db_ndbm_close'
sdl-sound.o: In function `sound_sdl_init':
/home/stu/projects/external/executor/build/../src/config/sound/sdl/sdl-sound.c:293: undefined reference to `SDL_AudioInit'
/home/stu/projects/external/executor/build/../src/config/sound/sdl/sdl-sound.c:314: undefined reference to `SDL_AudioDriverName'
/home/stu/projects/external/executor/build/../src/config/sound/sdl/sdl-sound.c:337: undefined reference to `SDL_OpenAudio'
/home/stu/projects/external/executor/build/../src/config/sound/sdl/sdl-sound.c:297: undefined reference to `SDL_GetError'
/home/stu/projects/external/executor/build/../src/config/sound/sdl/sdl-sound.c:340: undefined reference to `SDL_OpenAudio'
/home/stu/projects/external/executor/build/../src/config/sound/sdl/sdl-sound.c:342: undefined reference to `SDL_GetError'
sdl-sound.o: In function `sound_sdl_go':
/home/stu/projects/external/executor/build/../src/config/sound/sdl/sdl-sound.c:113: undefined reference to `SDL_PauseAudio'
osutil.o: In function `C_ROMlib_wakeup':
/home/stu/projects/external/executor/build/../src/osutil.c:855: undefined reference to `SDL_mutexP'
/home/stu/projects/external/executor/build/../src/osutil.c:859: undefined reference to `SDL_mutexV'
osutil.o: In function `Delay':
/home/stu/projects/external/executor/build/../src/osutil.c:902: undefined reference to `SDL_mutexP'
/home/stu/projects/external/executor/build/../src/osutil.c:917: undefined reference to `SDL_CondWait'
/home/stu/projects/external/executor/build/../src/osutil.c:933: undefined reference to `SDL_mutexV'
syncint.o: In function `handle_sdltimer_tick':
/home/stu/projects/external/executor/build/../src/syncint.c:558: undefined reference to `SDL_CondSignal'
syncint.o: In function `syncint_init':
/home/stu/projects/external/executor/build/../src/syncint.c:585: undefined reference to `SDL_Init'
syncint.o: In function `syncint_post':
/home/stu/projects/external/executor/build/../src/syncint.c:619: undefined reference to `SDL_SetTimer'
unix_like.o: In function `_dbm_fetch':
/home/stu/projects/external/executor/build/../src/unix_like.c:256: undefined reference to `__db_ndbm_fetch'
unix_like.o: In function `_dbm_firstkey':
/home/stu/projects/external/executor/build/../src/unix_like.c:262: undefined reference to `__db_ndbm_firstkey'
unix_like.o: In function `_dbm_nextkey':
/home/stu/projects/external/executor/build/../src/unix_like.c:268: undefined reference to `__db_ndbm_nextkey'
SDL_bmp.o: In function `bmp_read_init':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:226: undefined reference to `SDL_ClearError'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:229: undefined reference to `SDL_SetError'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:234: undefined reference to `SDL_SetError'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:218: undefined reference to `SDL_SetError'
SDL_bmp.o: In function `bmp_write_init':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:767: undefined reference to `SDL_SetError'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:754: undefined reference to `SDL_SetError'
SDL_bmp.o:/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:840: more undefined references to `SDL_SetError' follow
SDL_bmp.o: In function `SDL_ERROR':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:274: undefined reference to `SDL_GetError'
SDL_bmp.o: In function `ctm_ReadLE32':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:120: undefined reference to `SDL_SetError'
SDL_bmp.o: In function `SDL_ERROR':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:274: undefined reference to `SDL_GetError'
SDL_bmp.o: In function `ctm_WriteLE16':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:138: undefined reference to `SDL_SetError'
SDL_bmp.o: In function `SDL_ERROR':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:274: undefined reference to `SDL_GetError'
SDL_bmp.o: In function `ctm_WriteLE32':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:139: undefined reference to `SDL_SetError'
SDL_bmp.o: In function `SDL_ERROR':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:274: undefined reference to `SDL_GetError'
SDL_bmp.o: In function `SDL_BMP_read_helper':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:548: undefined reference to `SDL_CreateRGBSurface'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:542: undefined reference to `SDL_SetError'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:623: undefined reference to `SDL_SetError'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:653: undefined reference to `SDL_FreeSurface'
SDL_bmp.o: In function `SDL_BMP_write_helper':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:1024: undefined reference to `SDL_ClearError'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:1029: undefined reference to `SDL_SetError'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:1182: undefined reference to `SDL_FreeSurface'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:1152: undefined reference to `SDL_SetError'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:1042: undefined reference to `SDL_CreateRGBSurface'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:1058: undefined reference to `SDL_UpperBlit'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:1073: undefined reference to `SDL_FreeSurface'
SDL_bmp.o: In function `bmp_writele8':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:909: undefined reference to `SDL_SetError'
sdlevents.o: In function `handle_sdl_events':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlevents.c:252: undefined reference to `SDL_PollEvent'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlevents.c:252: undefined reference to `SDL_PollEvent'
sdlevents.o: In function `sdl_events_init':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlevents.c:414: undefined reference to `SDL_CreateCond'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlevents.c:415: undefined reference to `SDL_CreateMutex'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlevents.c:425: undefined reference to `SDL_SetEventFilter'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlevents.c:426: undefined reference to `SDL_EventState'
sdlscrap.o: In function `convert_format':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlscrap.c:271: undefined reference to `XInternAtom'
sdlscrap.o: In function `we_lost_clipboard':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlscrap.c:431: undefined reference to `XGetSelectionOwner'
sdlscrap.o: In function `put_scrap':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlscrap.c:456: undefined reference to `XChangeProperty'
sdlscrap.o: In function `we_lost_clipboard':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlscrap.c:431: undefined reference to `XGetSelectionOwner'
sdlscrap.o: In function `put_scrap':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlscrap.c:460: undefined reference to `XSetSelectionOwner'
sdlscrap.o: In function `get_scrap':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlscrap.c:503: undefined reference to `XGetSelectionOwner'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlscrap.c:515: undefined reference to `XInternAtom'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlscrap.c:516: undefined reference to `XConvertSelection'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlscrap.c:520: undefined reference to `SDL_WaitEvent'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlscrap.c:538: undefined reference to `XGetWindowProperty'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlscrap.c:552: undefined reference to `XFree'
sdlscrap.o: In function `export_scrap':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlscrap.c:605: undefined reference to `XGetWindowProperty'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlscrap.c:622: undefined reference to `XFree'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlscrap.c:624: undefined reference to `XSendEvent'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlscrap.c:625: undefined reference to `XSync'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlscrap.c:617: undefined reference to `XChangeProperty'
sdlwin.o: In function `vdriver_init':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlwin.c:68: undefined reference to `SDL_Init'
sdlwin.o: In function `vdriver_acceptable_mode_p':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlwin.c:114: undefined reference to `SDL_VideoModeOK'
sdlwin.o: In function `vdriver_set_mode':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlwin.c:165: undefined reference to `SDL_SetVideoMode'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlwin.c:178: undefined reference to `SDL_LockSurface'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlwin.c:181: undefined reference to `SDL_UnlockSurface'
sdlwin.o: In function `vdriver_set_colors':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlwin.c:209: undefined reference to `SDL_SetColors'
sdlwin.o: In function `vdriver_update_screen_rects':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlwin.c:233: undefined reference to `SDL_UpdateRects'
sdlwin.o: In function `vdriver_update_screen':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlwin.c:257: undefined reference to `SDL_UpdateRects'
sdlwin.o: In function `vdriver_shutdown':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlwin.c:270: undefined reference to `SDL_Quit'
sdlwm.o: In function `ROMlib_SetTitle':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlwm.c:20: undefined reference to `SDL_WM_SetCaption'
sdlwm.o: In function `ROMlib_GetTitle':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlwm.c:28: undefined reference to `SDL_WM_GetCaption'
sdlwm.o: In function `host_set_cursor':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlwm.c:45: undefined reference to `SDL_GetCursor'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlwm.c:46: undefined reference to `SDL_CreateCursor'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlwm.c:51: undefined reference to `SDL_SetCursor'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlwm.c:52: undefined reference to `SDL_FreeCursor'
sdlwm.o: In function `host_set_cursor_visible':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlwm.c:59: undefined reference to `SDL_ShowCursor'
syswm_map.o: In function `sdl_syswm_init':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/syswm_map.c:63: undefined reference to `SDL_GetWMInfo'
sdlX.o: In function `ROMlib_XInitThreads':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlX.c:15: undefined reference to `XInitThreads'
collect2: error: ld returned 1 exit status
Makefile:1550: recipe for target 'executor' failed
make[1]: *** [executor] Error 1
make[1]: Leaving directory '/mnt/data/home/stu/projects/external/executor/build'
Makefile:1450: recipe for target 'all' failed
make: *** [all] Error 2

from executor.

MaddTheSane avatar MaddTheSane commented on June 29, 2024

Just checking, but you do have sdl-dev installed, right?

Did you have -m32 specified in LDFLAGS and CFLAGS/CC?

Sent from my iPad

On Jul 17, 2015, at 2:00 PM, Stuart Axon [email protected] wrote:

Tried --build=x86_64-pc-linux-gnu --host=i686-pc-linux-gnu and it gets a lot further, it seems to complain about undefined reference to `XInitThreads' had a go at adding '-lX11' to GCC="..." but it didn't seem to help.

CC='gcc -m32 -fno-stack-check -fno-stack-protector' OBJC='gcc -m32 -fno-stack-check -fno-stack-protector -w' make
make all-am
make[1]: Entering directory '/mnt/data/home/stu/projects/external/executor/build'
gcc -m32 -fno-stack-check -fno-stack-protector -o executor ctlArrows.o ctlDisplay.o ctlIMIV.o ctlInit.o ctlMisc.o ctlMouse.o ctlSet.o ctlSize.o ctlStddef.o ctlPopup.o dialAlert.o dialCreate.o dialHandle.o dialInit.o dialManip.o dialDispatch.o dialItem.o fileAccess.o fileCreate.o fileDirs.o fileDouble.o fileInfo.o fileMisc.o fileVolumes.o fileHighlevel.o dcache.o hfsBtree.o hfsChanging.o hfsCreate.o hfsFile.o hfsHelper.o hfsHier.o hfsMisc.o hfsVolume.o hfsWorkingdir.o hfsXbar.o listAccess.o listAddDel.o listCreate.o listDisplay.o listMouse.o listOps.o listStdLDEF.o menu.o menuColor.o menuV.o stdmdef.o stdmbdf.o PSprint.o PSstrings.o prError.o prInit.o prLowLevel.o prPrinting.o prRecords.o qBit.o qCConv.o qCGrafPort.o qCRegular.o qColor.o qColorMgr.o qColorutil.o qCursor.o qGrafport.o qIMIV.o qIMV.o qIMVxfer.o qMisc.o qPaletteMgr.o qPen.o qPicstuff.o qPicture.o qPixMapConv.o qPoint.o qPoly.o qRect.o qRegion.o qRegular.o qScale.o qStandard.o qStdArc.o qStdBits.o qStdLine.o qStdOval.
o qStdPic.o qStdPoly.o qStdRRect.o qStdRect.o qStdRgn.o qStdText.o qText.o qGWorld.o qGDevice.o qIMVI.o qHooks.o xdata.o xdblt.o rawpatblt.o rawsrcblt.o dirtyrect.o srcblt.o qColorPicker.o qPict2.o image.o image_inits.o default_ctab_values.o dcconvert.o rgbutil.o dcmaketables.o resGet.o resGetinfo.o resGettype.o resIMIV.o resInit.o resMisc.o resMod.o resOpen.o resSetcur.o resPartial.o teAccess.o teDisplay.o teEdit.o teIMIV.o teIMV.o teInit.o teInsert.o teMisc.o teScrap.o windColor.o windDisplay.o windDocdef.o windInit.o windMisc.o windMouse.o windSize.o windUpdate.o AE.o AE_desc.o AE_hdlr.o AE_coercion.o sounddriver.o sound.o soundIMVI.o soundfake.o snth5.o sdl-sound.o bindec.o float4.o float5.o float7.o floatnext.o toolmath.o mathlib.o desk.o device.o disk.o diskinit.o dump.o trapname.o font.o gestalt.o globals.o iu.o launch.o main.o mman.o mmansubr.o notify.o hle.o osevent.o osutil.o pack.o scrap.o script.o segment.o serial.o setuid.o slash.o stdfile.o romlib_stubs.o syserr.o to
olevent.o toolutil.o time.o vbl.o syncint.o virtualint.o refresh.o autorefresh.o aboutbox.o licensetext.o keycode.o option.o parseopt.o parsenum.o desperate.o version.o shutdown.o uniquefile.o sigio_multiplex.o screen-dump.o process.o alias.o string.o tempmem.o edition.o fontIMVI.o balloon.o error.o adb.o color_wheel_bits.o finder.o system_error.o ibm_keycodes.o splash.o icon.o redrawscreen.o ini.o checkpoint.o qt.o cleanup.o paramline.o fauxdbm.o custom.o commtool.o cfm.o local_charset.o pef_hash.o interfacelib.o mixed_mode.o suffix_maps.o appearance.o lockrange.o emutrap.o emutraptables.o emustubs.o unix_like.o parse.o check_structs.o executor.o mkvol.o crc.o i386.o x86patblt.o x86srcblt.o xdstubtables.o sbstubtables.o SDL_bmp.o sdlevents.o sdl_mem.o sdlquit.o sdlscrap.o sdlwin.o sdlwm.o syswm_map.o winmain.o sdlX.o linux.o linux_except.o lowglobals-mem.o -lm -lpthread -lsyn68k
fileVolumes.o: In function writeadbm': /home/stu/projects/external/executor/build/../src/fileVolumes.c:585: undefined reference to__db_ndbm_open'
/home/stu/projects/external/executor/build/../src/fileVolumes.c:606: undefined reference to __db_ndbm_store' /home/stu/projects/external/executor/build/../src/fileVolumes.c:613: undefined reference to__db_ndbm_store'
/home/stu/projects/external/executor/build/../src/fileVolumes.c:615: undefined reference to __db_ndbm_close' fileVolumes.o: In functionreadadbm':
/home/stu/projects/external/executor/build/../src/fileVolumes.c:552: undefined reference to __db_ndbm_open' /home/stu/projects/external/executor/build/../src/fileVolumes.c:567: undefined reference to__db_ndbm_close'
sdl-sound.o: In function sound_sdl_init': /home/stu/projects/external/executor/build/../src/config/sound/sdl/sdl-sound.c:293: undefined reference toSDL_AudioInit'
/home/stu/projects/external/executor/build/../src/config/sound/sdl/sdl-sound.c:314: undefined reference to SDL_AudioDriverName' /home/stu/projects/external/executor/build/../src/config/sound/sdl/sdl-sound.c:337: undefined reference toSDL_OpenAudio'
/home/stu/projects/external/executor/build/../src/config/sound/sdl/sdl-sound.c:297: undefined reference to SDL_GetError' /home/stu/projects/external/executor/build/../src/config/sound/sdl/sdl-sound.c:340: undefined reference toSDL_OpenAudio'
/home/stu/projects/external/executor/build/../src/config/sound/sdl/sdl-sound.c:342: undefined reference to SDL_GetError' sdl-sound.o: In functionsound_sdl_go':
/home/stu/projects/external/executor/build/../src/config/sound/sdl/sdl-sound.c:113: undefined reference to SDL_PauseAudio' osutil.o: In functionC_ROMlib_wakeup':
/home/stu/projects/external/executor/build/../src/osutil.c:855: undefined reference to SDL_mutexP' /home/stu/projects/external/executor/build/../src/osutil.c:859: undefined reference toSDL_mutexV'
osutil.o: In function Delay': /home/stu/projects/external/executor/build/../src/osutil.c:902: undefined reference toSDL_mutexP'
/home/stu/projects/external/executor/build/../src/osutil.c:917: undefined reference to SDL_CondWait' /home/stu/projects/external/executor/build/../src/osutil.c:933: undefined reference toSDL_mutexV'
syncint.o: In function handle_sdltimer_tick': /home/stu/projects/external/executor/build/../src/syncint.c:558: undefined reference toSDL_CondSignal'
syncint.o: In function syncint_init': /home/stu/projects/external/executor/build/../src/syncint.c:585: undefined reference toSDL_Init'
syncint.o: In function syncint_post': /home/stu/projects/external/executor/build/../src/syncint.c:619: undefined reference toSDL_SetTimer'
unix_like.o: In function _dbm_fetch': /home/stu/projects/external/executor/build/../src/unix_like.c:256: undefined reference to__db_ndbm_fetch'
unix_like.o: In function _dbm_firstkey': /home/stu/projects/external/executor/build/../src/unix_like.c:262: undefined reference to__db_ndbm_firstkey'
unix_like.o: In function _dbm_nextkey': /home/stu/projects/external/executor/build/../src/unix_like.c:268: undefined reference to__db_ndbm_nextkey'
SDL_bmp.o: In function bmp_read_init': /home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:226: undefined reference toSDL_ClearError'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:229: undefined reference to SDL_SetError' /home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:234: undefined reference toSDL_SetError'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:218: undefined reference to SDL_SetError' SDL_bmp.o: In functionbmp_write_init':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:767: undefined reference to SDL_SetError' /home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:754: undefined reference toSDL_SetError'
SDL_bmp.o:/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:840: more undefined references to SDL_SetError' follow SDL_bmp.o: In functionSDL_ERROR':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:274: undefined reference to SDL_GetError' SDL_bmp.o: In functionctm_ReadLE32':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:120: undefined reference to SDL_SetError' SDL_bmp.o: In functionSDL_ERROR':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:274: undefined reference to SDL_GetError' SDL_bmp.o: In functionctm_WriteLE16':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:138: undefined reference to SDL_SetError' SDL_bmp.o: In functionSDL_ERROR':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:274: undefined reference to SDL_GetError' SDL_bmp.o: In functionctm_WriteLE32':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:139: undefined reference to SDL_SetError' SDL_bmp.o: In functionSDL_ERROR':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:274: undefined reference to SDL_GetError' SDL_bmp.o: In functionSDL_BMP_read_helper':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:548: undefined reference to SDL_CreateRGBSurface' /home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:542: undefined reference toSDL_SetError'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:623: undefined reference to SDL_SetError' /home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:653: undefined reference toSDL_FreeSurface'
SDL_bmp.o: In function SDL_BMP_write_helper': /home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:1024: undefined reference toSDL_ClearError'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:1029: undefined reference to SDL_SetError' /home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:1182: undefined reference toSDL_FreeSurface'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:1152: undefined reference to SDL_SetError' /home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:1042: undefined reference toSDL_CreateRGBSurface'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:1058: undefined reference to SDL_UpperBlit' /home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:1073: undefined reference toSDL_FreeSurface'
SDL_bmp.o: In function bmp_writele8': /home/stu/projects/external/executor/build/../src/config/front-ends/sdl/SDL_bmp.c:909: undefined reference toSDL_SetError'
sdlevents.o: In function handle_sdl_events': /home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlevents.c:252: undefined reference toSDL_PollEvent'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlevents.c:252: undefined reference to SDL_PollEvent' sdlevents.o: In functionsdl_events_init':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlevents.c:414: undefined reference to SDL_CreateCond' /home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlevents.c:415: undefined reference toSDL_CreateMutex'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlevents.c:425: undefined reference to SDL_SetEventFilter' /home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlevents.c:426: undefined reference toSDL_EventState'
sdlscrap.o: In function convert_format': /home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlscrap.c:271: undefined reference toXInternAtom'
sdlscrap.o: In function we_lost_clipboard': /home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlscrap.c:431: undefined reference toXGetSelectionOwner'
sdlscrap.o: In function put_scrap': /home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlscrap.c:456: undefined reference toXChangeProperty'
sdlscrap.o: In function we_lost_clipboard': /home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlscrap.c:431: undefined reference toXGetSelectionOwner'
sdlscrap.o: In function put_scrap': /home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlscrap.c:460: undefined reference toXSetSelectionOwner'
sdlscrap.o: In function get_scrap': /home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlscrap.c:503: undefined reference toXGetSelectionOwner'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlscrap.c:515: undefined reference to XInternAtom' /home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlscrap.c:516: undefined reference toXConvertSelection'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlscrap.c:520: undefined reference to SDL_WaitEvent' /home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlscrap.c:538: undefined reference toXGetWindowProperty'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlscrap.c:552: undefined reference to XFree' sdlscrap.o: In functionexport_scrap':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlscrap.c:605: undefined reference to XGetWindowProperty' /home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlscrap.c:622: undefined reference toXFree'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlscrap.c:624: undefined reference to XSendEvent' /home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlscrap.c:625: undefined reference toXSync'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlscrap.c:617: undefined reference to XChangeProperty' sdlwin.o: In functionvdriver_init':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlwin.c:68: undefined reference to SDL_Init' sdlwin.o: In functionvdriver_acceptable_mode_p':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlwin.c:114: undefined reference to SDL_VideoModeOK' sdlwin.o: In functionvdriver_set_mode':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlwin.c:165: undefined reference to SDL_SetVideoMode' /home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlwin.c:178: undefined reference toSDL_LockSurface'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlwin.c:181: undefined reference to SDL_UnlockSurface' sdlwin.o: In functionvdriver_set_colors':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlwin.c:209: undefined reference to SDL_SetColors' sdlwin.o: In functionvdriver_update_screen_rects':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlwin.c:233: undefined reference to SDL_UpdateRects' sdlwin.o: In functionvdriver_update_screen':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlwin.c:257: undefined reference to SDL_UpdateRects' sdlwin.o: In functionvdriver_shutdown':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlwin.c:270: undefined reference to SDL_Quit' sdlwm.o: In functionROMlib_SetTitle':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlwm.c:20: undefined reference to SDL_WM_SetCaption' sdlwm.o: In functionROMlib_GetTitle':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlwm.c:28: undefined reference to SDL_WM_GetCaption' sdlwm.o: In functionhost_set_cursor':
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlwm.c:45: undefined reference to SDL_GetCursor' /home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlwm.c:46: undefined reference toSDL_CreateCursor'
/home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlwm.c:51: undefined reference to SDL_SetCursor' /home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlwm.c:52: undefined reference toSDL_FreeCursor'
sdlwm.o: In function host_set_cursor_visible': /home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlwm.c:59: undefined reference toSDL_ShowCursor'
syswm_map.o: In function sdl_syswm_init': /home/stu/projects/external/executor/build/../src/config/front-ends/sdl/syswm_map.c:63: undefined reference toSDL_GetWMInfo'
sdlX.o: In function ROMlib_XInitThreads': /home/stu/projects/external/executor/build/../src/config/front-ends/sdl/sdlX.c:15: undefined reference toXInitThreads'
collect2: error: ld returned 1 exit status
Makefile:1550: recipe for target 'executor' failed
make[1]: *** [executor] Error 1
make[1]: Leaving directory '/mnt/data/home/stu/projects/external/executor/build'
Makefile:1450: recipe for target 'all' failed
make: *** [all] Error 2

Reply to this email directly or view it on GitHub.

from executor.

stuaxo avatar stuaxo commented on June 29, 2024

SDL-1.2-dev is installed.

I did have it set in CC, as above - just tried adding LDFLAGS and CFLAGS and it seems to do the same thing.

from executor.

stuaxo avatar stuaxo commented on June 29, 2024

Hi,
It looks like to solve this -lX11 needs to be added

https://stackoverflow.com/questions/23585435/cannot-call-xinitthreads

I had trouble with this on 64 bit as I didn't have access to all the other needed 32 bit libs, but will keep trying.

S

from executor.

ssokolow avatar ssokolow commented on June 29, 2024

I ran into the same problems on Lubuntu 14.04 64-bit but was able to get a working Executor build using the following steps over and above what you already figured out (assuming you've already installed all of the required packages by enabling multi-lib and apt-getting them with the :i386 suffix):

First, I don't know the proper way to do it, but libSDL-1.2 and libX11 need to be made visible to the library search:

cd /usr/lib/i386-linux-gnu
sudo ln -s libSDL-1.2.so.0 libSDL-1.2.so
sudo ln -s libX11.so.6 libX11.so

Second, your CC and OBJC need to be joined by this LIBS when calling configure:

LIBS="-lSDL-1.2 -lX11 -ldb-5.3"

from executor.

wolfclostermann avatar wolfclostermann commented on June 29, 2024

I tried following ssokolow's directions, but when I try

CC='gcc -m32' OBJC='gcc -m32' LIBS='-lSDL-1.2 -lX11 -ldb-5.3' ../../src/configure --build=i686-pc-linux

I get configure: error: C compiler cannot create executables

And when I try to build without that LIBS variable I get:

386    -g -O2 -MT sdl-sound.o -MD -MP -MF .deps/sdl-sound.Tpo -c -o sdl-sound.o `test -f 'config/sound/sdl/sdl-sound.c' || echo '../../src/'`config/sound/sdl/sdl-sound.c
../../src/config/sound/sdl/sdl-sound.c: In function ‘sound_sdl_go’:
../../src/config/sound/sdl/sdl-sound.c:113:2: warning: implicit declaration of function ‘SDL_PauseAudio’ [-Wimplicit-function-declaration]
  SDL_PauseAudio(0);
  ^~~~~~~~~~~~~~
../../src/config/sound/sdl/sdl-sound.c: At top level:
../../src/config/sound/sdl/sdl-sound.c:149:9: error: unknown type name ‘Uint8’
 PRIVATE Uint8 *sdl_stream = NULL;
         ^~~~~
../../src/config/sound/sdl/sdl-sound.c: In function ‘sdl_wait_until_callback_has_been_called’:
../../src/config/sound/sdl/sdl-sound.c:229:2: warning: #warning TODO usleep is not the answer [-Wcpp]
 #warning TODO usleep is not the answer
  ^~~~~~~
../../src/config/sound/sdl/sdl-sound.c: At top level:
../../src/config/sound/sdl/sdl-sound.c:259:41: error: unknown type name ‘Uint8’; did you mean ‘int8’?
 sound_sdl_hunger_callback(void *unused, Uint8 *stream, int len)
                                         ^~~~~
                                         int8
../../src/config/sound/sdl/sdl-sound.c:278:2: warning: #warning TODO signal something to say that we can write [-Wcpp]
 #warning TODO signal something to say that we can write
  ^~~~~~~
../../src/config/sound/sdl/sdl-sound.c: In function ‘sound_sdl_init’:
../../src/config/sound/sdl/sdl-sound.c:284:3: error: unknown type name ‘SDL_AudioSpec’
   SDL_AudioSpec spec;
   ^~~~~~~~~~~~~
../../src/config/sound/sdl/sdl-sound.c:293:7: warning: implicit declaration of function ‘SDL_AudioInit’ [-Wimplicit-function-declaration]
   if (SDL_AudioInit (sdl_audio_driver_name) != 0)
       ^~~~~~~~~~~~~
../../src/config/sound/sdl/sdl-sound.c:297:13: warning: implicit declaration of function ‘SDL_GetError’; did you mean ‘PrSetError’? [-Wimplicit-function-declaration]
       err = SDL_GetError ();
             ^~~~~~~~~~~~
             PrSetError
../../src/config/sound/sdl/sdl-sound.c:297:11: warning: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
       err = SDL_GetError ();
           ^
../../src/config/sound/sdl/sdl-sound.c:314:7: warning: implicit declaration of function ‘SDL_AudioDriverName’ [-Wimplicit-function-declaration]
       SDL_AudioDriverName (sanity_check_name, sanity_len);
       ^~~~~~~~~~~~~~~~~~~
../../src/config/sound/sdl/sdl-sound.c:326:7: error: request for member ‘freq’ in something not a structure or union
   spec.freq = ROMlib_SND_RATE;
       ^
../../src/config/sound/sdl/sdl-sound.c:327:7: error: request for member ‘format’ in something not a structure or union
   spec.format = AUDIO_U8;
       ^
../../src/config/sound/sdl/sdl-sound.c:327:17: error: ‘AUDIO_U8’ undeclared (first use in this function)
   spec.format = AUDIO_U8;
                 ^~~~~~~~
../../src/config/sound/sdl/sdl-sound.c:327:17: note: each undeclared identifier is reported only once for each function it appears in
../../src/config/sound/sdl/sdl-sound.c:328:7: error: request for member ‘channels’ in something not a structure or union
   spec.channels = 1;
       ^
../../src/config/sound/sdl/sdl-sound.c:329:7: error: request for member ‘samples’ in something not a structure or union
   spec.samples = BUFSIZE;
       ^
../../src/config/sound/sdl/sdl-sound.c:330:7: error: request for member ‘callback’ in something not a structure or union
   spec.callback = sound_sdl_hunger_callback;
       ^
../../src/config/sound/sdl/sdl-sound.c:330:19: error: ‘sound_sdl_hunger_callback’ undeclared (first use in this function); did you mean ‘sound_sdl_hunger_start’?
   spec.callback = sound_sdl_hunger_callback;
                   ^~~~~~~~~~~~~~~~~~~~~~~~~
                   sound_sdl_hunger_start
../../src/config/sound/sdl/sdl-sound.c:331:7: error: request for member ‘userdata’ in something not a structure or union
   spec.userdata = NULL;
       ^
../../src/config/sound/sdl/sdl-sound.c:334:34: warning: implicit declaration of function ‘SDL_OpenAudio’; did you mean ‘SDL_OpenAudioEx’? [-Wimplicit-function-declaration]
 #define SDL_OpenAudioEx(a,b,c,d) SDL_OpenAudio (a, b)
                                  ^~~~~~~~~~~~~
../../src/config/sound/sdl/sdl-sound.c:337:8: note: in expansion of macro ‘SDL_OpenAudioEx’
   if ( SDL_OpenAudioEx(&spec, NULL, sdl_audio_driver_name, 0) < 0 )
        ^~~~~~~~~~~~~~~
../../src/config/sound/sdl/sdl-sound.c:347:21: error: request for member ‘samples’ in something not a structure or union
   num_samples = spec.samples;
                     ^
../../src/config/sound/sdl/sdl-sound.c:348:11: error: request for member ‘samples’ in something not a structure or union
   if (spec.samples != BUFSIZE / 2) {
           ^
../../src/config/sound/sdl/sdl-sound.c:349:13: error: request for member ‘samples’ in something not a structure or union
     if (spec.samples == BUFSIZE)
             ^
../../src/config/sound/sdl/sdl-sound.c:351:18: error: request for member ‘samples’ in something not a structure or union
     else if (spec.samples == 0 || spec.samples > BUFSIZE) {
                  ^
../../src/config/sound/sdl/sdl-sound.c:351:39: error: request for member ‘samples’ in something not a structure or union
     else if (spec.samples == 0 || spec.samples > BUFSIZE) {
                                       ^
../../src/config/sound/sdl/sdl-sound.c:352:70: error: request for member ‘samples’ in something not a structure or union
       fprintf(stderr, "Failing: Got %d samples, asked for %d\n", spec.samples,
                                                                      ^
../../src/config/sound/sdl/sdl-sound.c:356:47: error: request for member ‘samples’ in something not a structure or union
       fprintf(stderr, "Got %d samples\n", spec.samples);
                                               ^
../../src/config/sound/sdl/sdl-sound.c:407:2: warning: #warning TODO some sort of sdl shutdown [-Wcpp]
 #warning TODO some sort of sdl shutdown
  ^~~~~~~
make[1]: *** [Makefile:2210: sdl-sound.o] Error 1
make[1]: Leaving directory '/home/wolf/executor/executor/build/debug-linux'
make: *** [Makefile:1620: all] Error 2

I have to add
--with-sound=sdl
to the configure or it throws an error.

I'd appreciate any assistance.

from executor.

ssokolow avatar ssokolow commented on June 29, 2024

I get configure: error: C compiler cannot create executables

That's a misleading error because it can mean so many things. Fundamentally, it just means that, in one of its most basic tests, "configure tried to call gcc and didn't get the expected test binary".

You need to find the corresponding spot in the config.log it generates to read what the actual error is.

And when I try to build without that LIBS variable I get:

Could you please reformat that as a preformatted code block? As-is, it's just too much hassle to read it.

(Take the original text with proper line breaks and either indent it four spaces or put a sequence of three backticks on a line alone before and after it.)

Also, what distro version are you trying this on and, if it's a Debian/Ubuntu/Mint-family distro, did you run sudo apt-get install build-essential before trying to compile anything?

(If I have time, I'll spin up a copy in VirtualBox and see if I can replicate the problem you're experiencing.)

from executor.

MaddTheSane avatar MaddTheSane commented on June 29, 2024

@autc04's Executor fork is better maintained.

from executor.

stuaxo avatar stuaxo commented on June 29, 2024

As an occasional executor since DOS, reading what's happening on autoc04s branch is great, I'll have a go at building that.

from executor.

wolfclostermann avatar wolfclostermann commented on June 29, 2024

I have reformatted it now, apologies.

This is on OpenSUSE Tumbleweed. I have installed the various build packages that would correspond to build-essential and was able to build syn68k successfully.

I will check the config.log.

from executor.

wolfclostermann avatar wolfclostermann commented on June 29, 2024

OK, turns out my problem was libSDL requires libpulse and that wasn't getting installed.

I've now got a new problem. The configure script appears to complete without errors, but running make gets me this:

gcc -m32     -o executor ctlArrows.o ctlDisplay.o ctlIMIV.o ctlInit.o ctlMisc.o ctlMouse.o ctlSet.o ctlSize.o ctlStddef.o ctlPopup.o dialAlert.o dialCreate.o dialHandle.o dialInit.o dialManip.o dialDispatch.o dialItem.o fileAccess.o fileCreate.o fileDirs.o fileDouble.o fileInfo.o fileMisc.o fileVolumes.o fileHighlevel.o dcache.o hfsBtree.o hfsChanging.o hfsCreate.o hfsFile.o hfsHelper.o hfsHier.o hfsMisc.o hfsVolume.o hfsWorkingdir.o hfsXbar.o listAccess.o listAddDel.o listCreate.o listDisplay.o listMouse.o listOps.o listStdLDEF.o menu.o menuColor.o menuV.o stdmdef.o stdmbdf.o PSprint.o PSstrings.o prError.o prInit.o prLowLevel.o prPrinting.o prRecords.o qBit.o qCConv.o qCGrafPort.o qCRegular.o qColor.o qColorMgr.o qColorutil.o qCursor.o qGrafport.o qIMIV.o qIMV.o qIMVxfer.o qMisc.o qPaletteMgr.o qPen.o qPicstuff.o qPicture.o qPixMapConv.o qPoint.o qPoly.o qRect.o qRegion.o qRegular.o qScale.o qStandard.o qStdArc.o qStdBits.o qStdLine.o qStdOval.o qStdPic.o qStdPoly.o qStdRRect.o qStdRect.o qStdRgn.o qStdText.o qText.o qGWorld.o qGDevice.o qIMVI.o qHooks.o xdata.o xdblt.o rawpatblt.o rawsrcblt.o dirtyrect.o srcblt.o qColorPicker.o qPict2.o image.o image_inits.o default_ctab_values.o dcconvert.o rgbutil.o dcmaketables.o resGet.o resGetinfo.o resGettype.o resIMIV.o resInit.o resMisc.o resMod.o resOpen.o resSetcur.o resPartial.o teAccess.o teDisplay.o teEdit.o teIMIV.o teIMV.o teInit.o teInsert.o teMisc.o teScrap.o windColor.o windDisplay.o windDocdef.o windInit.o windMisc.o windMouse.o windSize.o windUpdate.o AE.o AE_desc.o AE_hdlr.o AE_coercion.o sounddriver.o sound.o soundIMVI.o soundfake.o snth5.o   sdl-sound.o bindec.o float4.o float5.o float7.o floatnext.o toolmath.o mathlib.o desk.o device.o disk.o diskinit.o dump.o trapname.o font.o gestalt.o globals.o iu.o launch.o main.o mman.o mmansubr.o notify.o hle.o osevent.o osutil.o pack.o scrap.o script.o segment.o serial.o setuid.o slash.o stdfile.o romlib_stubs.o syserr.o toolevent.o toolutil.o time.o vbl.o syncint.o virtualint.o refresh.o autorefresh.o aboutbox.o licensetext.o keycode.o option.o parseopt.o parsenum.o desperate.o version.o shutdown.o uniquefile.o sigio_multiplex.o screen-dump.o process.o alias.o string.o tempmem.o edition.o fontIMVI.o balloon.o error.o adb.o color_wheel_bits.o finder.o system_error.o ibm_keycodes.o splash.o icon.o redrawscreen.o ini.o checkpoint.o qt.o cleanup.o paramline.o fauxdbm.o custom.o commtool.o cfm.o local_charset.o pef_hash.o interfacelib.o mixed_mode.o suffix_maps.o appearance.o lockrange.o emutrap.o emutraptables.o emustubs.o unix_like.o parse.o check_structs.o executor.o mkvol.o crc.o i386.o x86patblt.o x86srcblt.o xdstubtables.o sbstubtables.o SDL_bmp.o sdlevents.o sdl_mem.o sdlquit.o sdlscrap.o sdlwin.o sdlwm.o syswm_map.o winmain.o sdlX.o   linux.o linux_except.o lowglobals-mem.o     -lm -ldb -lpthread -lX11 -lSDL -lsyn68k
/usr/lib64/gcc/x86_64-suse-linux/8/../../../../x86_64-suse-linux/bin/ld: ctlDisplay.o: in function `swap16':
/home/wolf/executor/executor/build/debug-linux/./host-arch-config.h:60: multiple definition of `swap16'; ctlArrows.o:/home/wolf/executor/executor/build/debug-linux/./host-arch-config.h:60: first defined here
/usr/lib64/gcc/x86_64-suse-linux/8/../../../../x86_64-suse-linux/bin/ld: ctlDisplay.o: in function `swap32':
/home/wolf/executor/executor/build/debug-linux/./host-arch-config.h:61: multiple definition of `swap32'; ctlArrows.o:/home/wolf/executor/executor/build/debug-linux/./host-arch-config.h:61: first defined here
/usr/lib64/gcc/x86_64-suse-linux/8/../../../../x86_64-suse-linux/bin/ld: ctlIMIV.o: in function `swap16':
/home/wolf/executor/executor/build/debug-linux/./host-arch-config.h:60: multiple definition of `swap16'; ctlArrows.o:/home/wolf/executor/executor/build/debug-linux/./host-arch-config.h:60: first defined here
/usr/lib64/gcc/x86_64-suse-linux/8/../../../../x86_64-suse-linux/bin/ld: ctlIMIV.o: in function `swap32':
/home/wolf/executor/executor/build/debug-linux/./host-arch-config.h:61: multiple definition of `swap32'; ctlArrows.o:/home/wolf/executor/executor/build/debug-linux/./host-arch-config.h:61: first defined here

followed by many more of the same error.

from executor.

ssokolow avatar ssokolow commented on June 29, 2024

Huh. That's something I don't remember seeing.

First, I'd try deleting your build folder, verifying that your checkout has no other generated files floating around, and starting over in case some stale files from your previous attempts have it confused. (I've run across projects that are fragile in that way.)

(eg. A failed run might generate some files before it fails and then, when you get it working, the cached files from the first run and the differently configureed un-changed files from a later run both think they're supposed to be responsible for something that can't be done twice.)

from executor.

wolfclostermann avatar wolfclostermann commented on June 29, 2024

Thanks, just tried that but the same errors occur.

I had tried running make clean before running the configure and make, but I hadn't tried nuking the whole directory.

Separately I've managed to get Executor2000 (the fork mentioned earlier in the thread, thanks @MaddTheSane) to build successfully. But I'm stubborn and I don't want to be defeated! Also I've learned quite a lot from this process, and I'd really like to figure out what's causing this latest issue.

from executor.

Related Issues (5)

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.