If I try to build Octave on Debian 7.8 wheezy it fails on transfig with
"undefined reference to `rpl_malloc'"
I had to patch transfig.mk to built it:
diff -r 078b47125239 src/transfig.mk
--- a/src/transfig.mk Thu Jan 15 10:10:06 2015 -0500
+++ b/src/transfig.mk Wed Jan 21 11:26:37 2015 +0100
@@ -16,6 +16,7 @@
endef
define $(PKG)_BUILD
+ cd '$(1)' && export ac_cv_func_malloc_0_nonnull=yes
cd '$(1)' && chmod 755 configure && aclocal && automake
--add-missing && autoconf \
&& $($(PKG)_CONFIGURE_ENV) '$(1)/configure' \
BITMAPDIR="/share/$(PKG)/bitmaps" \
But verly likely there is a better way to fix this.