[R-SIG-Mac] bzip2 configure error
Duncan Murdoch
murdoch@dunc@n @end|ng |rom gm@||@com
Sat Aug 29 20:38:59 CEST 2020
I seem to have got past this error by reinstalling Xcode. I'm not sure
what went wrong with the old install; I'm pretty sure I did an R-devel
build since installing Catalina.
Duncan Murdoch
On 28/08/2020 10:41 a.m., Duncan Murdoch wrote:
> 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
>
More information about the R-SIG-Mac
mailing list