Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cocoa driver failure: use of undeclared identifier '_running' #62

Open
EricFromCanada opened this issue Nov 19, 2021 · 0 comments
Open

Comments

@EricFromCanada
Copy link

It appears that this implementation of setRunning no longer works.

Similar issue: https://discourse.libsdl.org/t/sdl-1-3-cocoa-using-private-api/17955
xref. Homebrew/homebrew-core#89701

Output on macOS 11 ARM (also occurs on Intel):
==> ./configure --disable-dependency-tracking --prefix=/opt/homebrew/Cellar/libcaca/0.99b20 --disable-csharp --disable-doc --disable-java --disable-python --disable-ruby --disable-slang --disable-x11
checking build system type... arm-apple-darwin20.6.0
checking host system type... arm-apple-darwin20.6.0
checking target system type... arm-apple-darwin20.6.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... ./.auto/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '503' is supported by ustar format... yes
checking whether GID '20' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking whether make supports the include directive... yes (GNU style)
checking for gcc... clang
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 the compiler supports GNU C... yes
checking whether clang accepts -g... yes
checking for clang option to enable C11 features... none needed
checking whether clang understands -c and -o together... yes
checking dependency style of clang... none
checking how to run the C preprocessor... clang -E
checking whether the compiler supports GNU C++... yes
checking whether clang++ accepts -g... yes
checking for clang++ option to enable C++11 features... none needed
checking dependency style of clang++... none
checking how to run the C++ preprocessor... clang++ -E
checking dependency style of clang... none
checking dependency style of clang... none
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by clang... /Library/Developer/CommandLineTools/usr/bin/ld
checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 786432
checking how to convert arm-apple-darwin20.6.0 file names to arm-apple-darwin20.6.0 format... func_convert_file_noop
checking how to convert arm-apple-darwin20.6.0 file names to toolchain format... func_convert_file_noop
checking for /Library/Developer/CommandLineTools/usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from clang object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if clang supports -fno-rtti -fno-exceptions... yes
checking for clang option to produce PIC... -fno-common -DPIC
checking if clang PIC flag -fno-common -DPIC works... yes
checking if clang static flag -static works... no
checking if clang supports -c -o file.o... yes
checking if clang supports -c -o file.o... (cached) yes
checking whether the clang linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin20.6.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... clang++ -E
checking for ld used by clang++... /Library/Developer/CommandLineTools/usr/bin/ld
checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no
checking whether the clang++ linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
checking for clang++ option to produce PIC... -fno-common -DPIC
checking if clang++ PIC flag -fno-common -DPIC works... yes
checking if clang++ static flag -static works... no
checking if clang++ supports -c -o file.o... yes
checking if clang++ supports -c -o file.o... (cached) yes
checking whether the clang++ linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin20.6.0 dyld
checking how to hardcode library paths into programs... immediate
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for pkg-config... /opt/homebrew/Library/Homebrew/shims/mac/super/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for suffix of libraries... .dylib.0
checking for stdio.h... (cached) yes
checking for stdarg.h... yes
checking for signal.h... yes
checking for sys/ioctl.h... yes
checking for sys/time.h... yes
checking for endian.h... no
checking for unistd.h... (cached) yes
checking for arpa/inet.h... yes
checking for netinet/in.h... yes
checking for winsock2.h... no
checking for errno.h... yes
checking for locale.h... yes
checking for getopt.h... yes
checking for dlfcn.h... (cached) yes
checking for termios.h... yes
checking for signal... yes
checking for ioctl... yes
checking for snprintf... yes
checking for sprintf_s... no
checking for vsnprintf... yes
checking for vsnprintf_s... no
checking for getenv... yes
checking for putenv... yes
checking for strcasecmp... yes
checking for htons... yes
checking for usleep... yes
checking for gettimeofday... yes
checking for atexit... yes
checking for _mingw.h... no
checking for getopt_long... yes
checking for Sleep... no
checking for fsin/fcos... no
checking for fldln2/fxch/fyl2x... no
checking for zlib.h... yes
checking for gzopen in -lz... yes
checking for sin in -lm... yes
checking for conio.h... no
checking for windows.h... no
checking for GL/gl.h... no
checking for OpenGL/gl.h... yes
checking for GL/glut.h... no
checking for ftgl >= 2.1.3... no
checking for Cocoa/Cocoa.h... yes
checking for ncursesw/ncurses.h... no
checking for ncurses/ncurses.h... no
checking for ncurses.h... yes
checking for initscr in -lncursesw... no
checking for initscr in -lncurses... yes
checking for resizeterm... yes
checking for resize_term... yes
checking valid output drivers... cocoa ncurses
checking whether compiler supports visibility annotations... no
checking working <iostream>... yes
checking available language bindings... C++
checking for sys/socket.h... yes
checking for imlib2... yes
checking for pangoft2... no
checking for zzuf... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating kernel/Makefile
config.status: creating caca/Makefile
config.status: creating caca/t/Makefile
config.status: creating src/Makefile
config.status: creating examples/Makefile
config.status: creating tools/Makefile
config.status: creating java/Makefile
config.status: creating caca-sharp/Makefile
config.status: creating cxx/Makefile
config.status: creating python/Makefile
config.status: creating ruby/Makefile
config.status: creating doc/Makefile
config.status: creating build/Makefile
config.status: creating caca/caca.pc
config.status: creating caca-sharp/caca-sharp.dll.config
config.status: creating cxx/caca++.pc
config.status: creating doc/doxygen.cfg
config.status: creating caca-config
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
==> make
/Library/Developer/CommandLineTools/usr/bin/make  all-recursive
Making all in kernel
make[2]: Nothing to be done for `all'.
Making all in caca
Making all in .
  CC       libcaca_la-caca_conio.lo
  CC       libcaca_la-caca.lo
  CC       libcaca_la-canvas.lo
  CC       libcaca_la-string.lo
  CC       libcaca_la-dirty.lo
  CC       libcaca_la-caca0.lo
  CC       libcaca_la-transform.lo
  CC       libcaca_la-charset.lo
  CC       libcaca_la-attr.lo
  CC       libcaca_la-line.lo
  CC       libcaca_la-box.lo
  CC       libcaca_la-conic.lo
  CC       libcaca_la-triangle.lo
  CC       libcaca_la-frame.lo
  CC       libcaca_la-dither.lo
  CC       libcaca_la-font.lo
  CC       libcaca_la-file.lo
  CC       libcaca_la-figfont.lo
  CC       libcaca_la-graphics.lo
  CC       libcaca_la-event.lo
  CC       libcaca_la-time.lo
  CC       libcaca_la-prof.lo
  CC       libcaca_la-getopt.lo
  CC       driver/libcaca_la-ncurses.lo
  CC       driver/libcaca_la-null.lo
  CC       driver/libcaca_la-conio.lo
  CC       driver/libcaca_la-raw.lo
  CC       driver/libcaca_la-slang.lo
  CC       driver/libcaca_la-vga.lo
  CC       driver/libcaca_la-win32.lo
  CC       driver/libcaca_la-x11.lo
  CC       driver/libcaca_la-gl.lo
  OBJC     driver/libcaca_la-cocoa.lo
  CC       codec/libcaca_la-import.lo
  CC       codec/libcaca_la-export.lo
  CC       codec/libcaca_la-text.lo
driver/cocoa.m:399:5: error: use of undeclared identifier '_running'
    _running = 1;
    ^
1 error generated.
make[3]: *** [driver/libcaca_la-cocoa.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
ln -s ../Cellar/libcaca/0.99b20_3/bin/caca-config caca-config
ln -s ../Cellar/libcaca/0.99b20_3/bin/cacaclock cacaclock
ln -s ../Cellar/libcaca/0.99b20_3/bin/cacademo cacademo
ln -s ../Cellar/libcaca/0.99b20_3/bin/cacafire cacafire
ln -s ../Cellar/libcaca/0.99b20_3/bin/cacaplay cacaplay
ln -s ../Cellar/libcaca/0.99b20_3/bin/cacaserver cacaserver
ln -s ../Cellar/libcaca/0.99b20_3/bin/cacaview cacaview
ln -s ../Cellar/libcaca/0.99b20_3/bin/img2txt img2txt
ln -s ../Cellar/libcaca/0.99b20_3/include/caca++.h caca++.h
ln -s ../Cellar/libcaca/0.99b20_3/include/caca.h caca.h
ln -s ../Cellar/libcaca/0.99b20_3/include/caca0.h caca0.h
ln -s ../Cellar/libcaca/0.99b20_3/include/caca_conio.h caca_conio.h
ln -s ../Cellar/libcaca/0.99b20_3/include/caca_types.h caca_types.h
ln -s ../Cellar/libcaca/0.99b20_3/share/libcaca libcaca
ln -s ../../../Cellar/libcaca/0.99b20_3/share/man/man1/caca-config.1 caca-config.1
ln -s ../../../Cellar/libcaca/0.99b20_3/share/man/man1/cacademo.1 cacademo.1
ln -s ../../../Cellar/libcaca/0.99b20_3/share/man/man1/cacafire.1 cacafire.1
ln -s ../../../Cellar/libcaca/0.99b20_3/share/man/man1/cacaplay.1 cacaplay.1
ln -s ../../../Cellar/libcaca/0.99b20_3/share/man/man1/cacaserver.1 cacaserver.1
ln -s ../../../Cellar/libcaca/0.99b20_3/share/man/man1/cacaview.1 cacaview.1
ln -s ../../../Cellar/libcaca/0.99b20_3/share/man/man1/img2txt.1 img2txt.1
ln -s ../Cellar/libcaca/0.99b20_3/lib/libcaca++.0.dylib libcaca++.0.dylib
ln -s ../Cellar/libcaca/0.99b20_3/lib/libcaca++.a libcaca++.a
ln -s ../Cellar/libcaca/0.99b20_3/lib/libcaca++.dylib libcaca++.dylib
ln -s ../Cellar/libcaca/0.99b20_3/lib/libcaca.0.dylib libcaca.0.dylib
ln -s ../Cellar/libcaca/0.99b20_3/lib/libcaca.a libcaca.a
ln -s ../Cellar/libcaca/0.99b20_3/lib/libcaca.dylib libcaca.dylib
ln -s ../../Cellar/libcaca/0.99b20_3/lib/pkgconfig/caca++.pc caca++.pc
ln -s ../../Cellar/libcaca/0.99b20_3/lib/pkgconfig/caca.pc caca.pc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant