Compiling jlibtool with Clang (c99) yields the following error and 2 warnings:
jlibtool.c:1617:11: warning: call to undeclared function 'strdup'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
tmp = strdup(arg);
^
jlibtool.c:1617:9: error: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion]
tmp = strdup(arg);
^ ~~~~~~~~~~~
jlibtool.c:2227:2: warning: call to undeclared function 'setenv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
setenv(LD_LIBRARY_PATH_LOCAL, l, 1);
^
Adding -Wno-int-conversion -Wno-implicit-function-declaration to the compiler command silences the error and warnings.
Compiling jlibtool with Clang (c99) yields the following error and 2 warnings:
Adding
-Wno-int-conversion -Wno-implicit-function-declaration
to the compiler command silences the error and warnings.