Closed
Description
platform: MacOS Ventura 13.2.1 (m1 max)
compiler: c99 from Xcode 14.2.0
version: https://git.gavinhoward.com/gavin/bc.git 55a6c05
Build fails:
$ ./configure -O3
<success>
$ make
c99 -DBC_ENABLED=1 -DDC_ENABLED=1 -I./include/ -DBUILD_TYPE=A -DEXECPREFIX= -DMAINEXEC=bc -DBC_NUM_KARATSUBA_LEN=32 -DBC_ENABLE_NLS=1 -DBC_ENABLE_EXTRA_MATH=1 -DBC_ENABLE_HISTORY=1 -DBC_ENABLE_LIBRARY=0 -DBC_ENABLE_MEMCHECK=0 -DBC_ENABLE_AFL=0 -DBC_DEFAULT_BANNER=0 -DBC_DEFAULT_SIGINT_RESET=1 -DBC_DEFAULT_TTY_MODE=1 -DBC_DEFAULT_PROMPT=1 -DBC_DEFAULT_EXPR_EXIT=1 -DBC_DEFAULT_DIGIT_CLAMP=0 -DDC_DEFAULT_SIGINT_RESET=1 -DDC_DEFAULT_TTY_MODE=0 -DDC_DEFAULT_PROMPT=0 -DDC_DEFAULT_EXPR_EXIT=1 -DDC_DEFAULT_DIGIT_CLAMP=0 -DNDEBUG -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -O3 -DBC_ENABLE_EDITLINE=0 -DBC_ENABLE_READLINE=0 -o src/program.o -c ./src//program.c
./src//program.c:2994:6: error: use of undeclared identifier 'SIGWINCH'
if (BC_SIG_INTERRUPT(vm))
^
./include/status.h:698:45: note: expanded from macro 'BC_SIG_INTERRUPT'
BC_UNLIKELY((vm)->sig != 0 && (vm)->sig != SIGWINCH)
^
./src//program.c:3724:6: error: use of undeclared identifier 'SIGWINCH'
if (BC_SIG_INTERRUPT(vm))
^
./include/status.h:698:45: note: expanded from macro 'BC_SIG_INTERRUPT'
BC_UNLIKELY((vm)->sig != 0 && (vm)->sig != SIGWINCH)
^
2 errors generated.
make: *** [src/program.o] Error 1
I think ideally, configure.sh would detect this, and apply an appropriate set of flags, or the source would be changed appropriately.
As a workaround, this allows a successful build:
CFLAGS=-D_DARWIN_C_SOURCE ./configure -O3
Metadata
Assignees
Labels
No labels