This is MacOS 10.15 with Xcode 12.4. I pulled latest source with this:
git clone https://gitlab.synchro.net/main/sbbs.git
The COMPILING doc indicated to use some extra parameters on Mac, so I tried this:
cd sbbs/src/syncterm
make SRC_ROOT=/Users/username/Downloads/sbbs/src RELEASE=1 USE_SDL_AUDIO=1 PREFIX=/usr
It goes through and compiles some things, but then ends with this:
Compiling ciolib.c
ciolib.c:1914:2: error: implicit declaration of function 'exit_sdl_con' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
exit_sdl_con();
^
ciolib.c:1922:16: error: implicit declaration of function 'init_sdl_video' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
initsdl_ret = init_sdl_video();
^
ciolib.c:1927:4: error: implicit declaration of function
'sdl_video_event_thread' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
sdl_video_event_thread(NULL);
^
3 errors generated.
make[1]: *** [clang.darwin.x64.obj.release-mt/ciolib.o] Error 1
make: *** [ciolib-mt] Error 2
Not sure if it's just something I'm doing wrong.
Anonymous
Maybe better formatting if not in a code block:
Compiling ciolib.c
ciolib.c:1914:2: error: implicit declaration of function 'exit_sdl_con' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
exit_sdl_con();
^
ciolib.c:1922:16: error: implicit declaration of function 'init_sdl_video' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
initsdl_ret = init_sdl_video();
^
ciolib.c:1927:4: error: implicit declaration of function
'sdl_video_event_thread' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
sdl_video_event_thread(NULL);
^
3 errors generated.
make[1]: *** [clang.darwin.x64.obj.release-mt/ciolib.o] Error 1
make: *** [ciolib-mt] Error 2
Similar issue to mine, on macOS 11.1 while trying to compile SyncTERM.
Note the pkg-config: command not found problem in the previous action. This may have something to do with it. I hesitated making a new bug report for this since this seems oddly coincidental to the existing report, with perhaps additional context.
It seems like it's having problems finding the SDL framework. It looks in /Library/Frameworks/SDL2.framework by default, but you can set the directory SDL2.framework is in by adding
SDL_FRAMEWORK_PATH=/path/to/diron the command-line (do not include SDL2.framework in the path, default is /Library/Frameworks).You're right. I'm not sure why my framework dir wasn't in the right place. Thank you. After some various messages and warnings, it compiled. Now to try it out :)