Kamailio 5 did not compile on solaris 11 anymore due to a missing ast/endian.h included from app_jsdt/duk_config.h. The solution is:
--- kamailio-5.0.1~/src/modules/app_jsdt/duk_config.h 2017-04-05 15:32:38.000000000 +0000 +++ kamailio-5.0.1/src/modules/app_jsdt/duk_config.h 2017-04-15 09:27:14.335213048 +0000 @@ -607,7 +607,7 @@ #define DUK_USE_DATE_FMT_STRFTIME
#include <sys/types.h> -#include <ast/endian.h> +#include <sys/byteorder.h> #include <sys/param.h> #include <sys/time.h> #include <time.h>