In file included from mem_sunder.c:7:
../../include/lib/njamd.h:20:7: warning: "DEBUG" is not defined
../../include/lib/njamd.h:29:18: warning: ISO C does not permit named variadic macros
../../include/lib/njamd.h:30:19: warning: ISO C does not permit named variadic macros
../../include/lib/njamd.h:421:1: warning: C++ style comments are not allowed in ISO C90
../../include/lib/njamd.h:421:1: warning: (this will be reported only once per input file)
mem_sunder.c: In function 'nj_free_init':
mem_sunder.c:47: error: expected ')' before string constant
mem_sunder.c:70: warning: pointer of type 'void *' used in arithmetic
mem_sunder.c:70: warning: pointer of type 'void *' used in arithmetic
mem_sunder.c:24: warning: unused parameter 'laddr'
mem_sunder.c: In function 'nj_free_fini':
mem_sunder.c:119: error: expected ')' before string constant
mem_sunder.c:121: warning: pointer of type 'void *' used in arithmetic
mem_sunder.c:127: error: expected ')' before string constant
mem_sunder.c:139: error: expected ')' before string constant
mem_sunder.c:148: error: expected ')' before string constant
mem_sunder.c:165: error: expected ')' before string constant
...
The following errors are caused by the fact that FUNCTION is no longer a macro but a variable, so you have to patch the library in a way that FUNCTION is used as a variable. For example, change the function ( nj_perror_(__FUNCTION ...) nj_perror_(__FUNCTION, ...) (taking two parameters insteaud of one parameter)
mem_sunder.c:47: error: expected ')' before string constant
mem_sunder.c:119: error: expected ')' before string constant
mem_sunder.c:127: error: expected ')' before string constant
mem_sunder.c:139: error: expected ')' before string constant
mem_sunder.c:148: error: expected ')' before string constant
mem_sunder.c:165: error: expected ')' before string constant
Hoping this will be helpful for someone who's trying to use the library as of today.