This repository was archived by the owner on Jun 16, 2025. It is now read-only.
error: implicit declaration of function 'ERROR_dictionary' is invalid in C99 #1462
Open
Description
Description of problem:
ksh fails to build on Mac OS X 10.6 with clang 9
Ksh version:
2020.0.0 and latest master (43d1853)
How reproducible:
Always
Steps to reproduce:
- Build ksh on Mac OS X 10.6 with clang 9
Actual results:
../att-ast-43d1853/src/lib/libdll/dlfcn.c:287:31: error: implicit declaration of function 'ERROR_dictionary' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
static const char e_cover[] = T("cannot access covered library");
^
../att-ast-43d1853/src/lib/libdll/dlfcn.c:37:14: note: expanded from macro 'T'
#define T(x) ERROR_dictionary(x)
^
Build log for 2020.0.0
Build log for 43d1853
Expected results:
Successful build
Additional info:
It builds fine on later versions of Mac OS X.