gcc issue with installing jsonlite

Can anyone help me understand this issue with installing jsonlite? I'm getting a non-zero exit status message caused by one of these:

collapse_pretty.c: In function ‘C_collapse_array_pretty_inner’:
collapse_pretty.c:99:15: warning: argument 1 range [18446744071562067971, 18446744073709551615] exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
   99 |   char *str = malloc(nchar_total);
      |               ^
/usr/include/stdlib.h:539:14: note: in a call to allocation function ‘malloc’ declared here
  539 | extern void *malloc (size_t __size) __THROW __attribute_malloc__
      |              ^

or

Error: package or namespace load failed for ‘jsonlite’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/home/User/R/x86_64-pc-linux-gnu-library/4.1/00LOCK-jsonlite/00new/jsonlite/libs/jsonlite.so':
  /home/User/R/x86_64-pc-linux-gnu-library/4.1/00LOCK-jsonlite/00new/jsonlite/libs/jsonlite.so: undefined symbol: yajl_gen_array_close
Error: loading failed
Execution halted
ERROR: loading failed

I'm running R version 4.1.2 (2021-11-01) -- "Bird Hippie" on Manjaro and my gcc version is 11.1.0

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.