Compilation of media-libs/smpeg-0.4.4-r8 fails on Gentoo/FreeBSD due to broken #include <malloc.h> if i686-gentoo-freebsd6.1-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"smpeg\" -DVERSION=\"0.4.4\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I. -I/usr/include/SDL -D_REENTRANT -D_THREAD_SAFE -DUSE_MMX -DTHREADED_AUDIO -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -DNDEBUG -I.. -DNOCONTROLS -I. -I./audio -I./video -O2 -march=i686 -pipe -MT glmovie-tile.o -MD -MP -MF ".deps/glmovie-tile.Tpo" -c -o glmovie-tile.o glmovie-tile.c; \ then mv -f ".deps/glmovie-tile.Tpo" ".deps/glmovie-tile.Po"; else rm -f ".deps/glmovie-tile.Tpo"; exit 1; fi In file included from glmovie-tile.c:19: /usr/include/malloc.h:3:2: #error "<malloc.h> has been replaced by <stdlib.h>" gmake[1]: *** [glmovie-tile.o] Error 1 gmake[1]: Leaving directory `/var/tmp/portage/smpeg-0.4.4-r8/work/smpeg-0.4.4' gmake: *** [all-recursive] Error 1 !!! ERROR: media-libs/smpeg-0.4.4-r8 failed. Call stack: ebuild.sh, line 1525: Called dyn_compile ebuild.sh, line 928: Called src_compile smpeg-0.4.4-r8.ebuild, line 63: Called die !!! emake failed !!! If you need support, post the topmost build error, and the call stack if relevant.
Patch added.