I'm trying to build R-devel in Catalina for the first time in a few weeks, and configure is dying with this error:

checking whether bzip2 support suffices... configure: error: bzip2 library and headers are required

I tried a Homebrew install of bzip2, and it didn't help.

When I look in config.log, I see this:


configure:45424: checking if bzip2 version >= 1.0.6
configure:45452: gcc -o conftest -g -O2 -I/usr/local/opt/libffi/include -L/usr/local/opt/libffi/lib conftest.c -lbz2 -lz -licucore -ldl -lm -liconv >&5 conftest.c:250:11: warning: initializing 'char *' with an expression of type 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    char *ver = BZ2_bzlibVersion();
          ^     ~~~~~~~~~~~~~~~~~~
conftest.c:251:5: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
    exit(strcmp(ver, "1.0.6") < 0);
    ^
conftest.c:251:5: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit' conftest.c:251:10: error: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Werror,-Wimplicit-function-declaration]
    exit(strcmp(ver, "1.0.6") < 0);
         ^
conftest.c:251:10: note: include the header <string.h> or explicitly provide a declaration for 'strcmp'
1 warning and 2 errors generated.


Suggestions for fixing this?

Duncan Murdoch

_______________________________________________
R-SIG-Mac mailing list
R-SIG-Mac@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Reply via email to