On Fedora 22 / gcc-5.1.1-4.fc22.x86_64 compilation of XSB fails with the message:
tr_utils.o: In function table_inspection_function':
tr_utils.c:(.text+0xbe78): undefined reference to
trie_asserted_clref'
collect2: error: ld returned 1 exit status
Workaround: exit $XSB_HOME/emu/trassert.h and add
extern CPtr trie_asserted_clref(CPtr prref);
underneath the list of declarations at the top.
This and the following bug seem to have been fixed in the current SVN respository. (But maybe your fixes are better....)
Thanks David. I will try the SVN repo next time 'round.