just downloaded the source from https://invisible-island.net/vile/ and tried to build on OSX 15.4.1. build fails with the message:

echo "#include <flt_defs.h>" > spellflt.c
flex -t spellflt.l >> spellflt.c
gcc -c -I. -I.. -I../filters -I.. -DHAVE_CONFIG_H   -D_DARWIN_C_SOURCE -g -O2  
spellflt.c
spellflt.l:137:19: error: call to undeclared function 'umask'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  137 |     int oldmask = umask(0077);
      |                   ^
spellflt.l:138:20: warning: 'tmpnam' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of tmpnam(3), it is highly recommended that you use mkstemp(3) instead. [-Wdeprecated-declarations]
  138 |     char *result = tmpnam((char *)0);
      |                    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:287:1: note: 'tmpnam' has been explicitly marked deprecated here 287 | __deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of tmpnam(3), it is highly recommended that you use mkstemp(3) instead.")
      | ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:218:48: note: expanded from macro '__deprecated_msg'
  218 |         #define __deprecated_msg(_msg) 
__attribute__((__deprecated__(_msg)))
      |                                                       ^
1 warning and 1 error generated.
make[1]: *** [spellflt.o] Error 1
make: *** [all] Error 2

how can I work around this? I seem to recall that I previously have built 9.8 without issues on OSX... did apple mess up something again?

best,
joerg

Reply via email to