[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#685625: implicit declaration of function ‘reallocf’

It looks like this is the problem, and it exists repeatedly in

geom_getxml.c: In function ‘geom_getxml’:
geom_getxml.c:59:2: warning: implicit declaration of function ‘reallocf’ [-Wimplicit-function-declaration]
geom_getxml.c:59:2: warning: return makes pointer from integer without a cast [enabled by default]

On kfreebsd-amd64 systems, the consequence of this is that the top 32
bits of a pointer returned by reallocf are discarded.

In fact, adding this include appears to fix the specific crash in
 #include <string.h>
+#include <bsd/stdlib.h>

Based on this information, I hope to be able to submit a patch soon.


Reply to: