Steps to reproduce: 1) emerge gle gmake all-recursive gmake[1]: Entering directory `/var/tmp/portage/gle-3.0.1-r2/work/gle-3.0.1' Making all in src gmake[2]: Entering directory `/var/tmp/portage/gle-3.0.1-r2/work/gle-3.0.1/src' /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -mtune=athlon-xp -march=athlon-xp -O2 -pipe -mmmx -msse -m3dnow -ffast-math -fomit-frame-pointer -Wall -c ex_angle.c mkdir .libs gcc -DHAVE_CONFIG_H -I. -I. -I.. -mtune=athlon-xp -march=athlon-xp -O2 -pipe -mmmx -msse -m3dnow -ffast-math -fomit-frame-pointer -Wall -c ex_angle.c -fPIC -DPIC -o .libs/ex_angle.lo In file included from ex_angle.c:19: /usr/include/malloc.h:3:2: #error "<malloc.h> has been replaced by <stdlib.h>" gmake[2]: *** [ex_angle.lo] Error 1 gmake[2]: Leaving directory `/var/tmp/portage/gle-3.0.1-r2/work/gle-3.0.1/src' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/var/tmp/portage/gle-3.0.1-r2/work/gle-3.0.1' gmake: *** [all-recursive-am] Error 2 !!! ERROR: media-libs/gle-3.0.1-r2 failed. Call stack: ebuild.sh, line 1532: Called dyn_compile ebuild.sh, line 929: Called src_compile gle-3.0.1-r2.ebuild, line 20: Called die # emerge --info Portage 2.1_pre7-r5 (default-bsd/fbsd/6.0/x86, gcc-, freebsd-lib-6.0-r1, 6.0-RELEASE i386) ================================================================= System uname: 6.0-RELEASE i386 i386 Gentoo Base System version 20060414 ccache version 2.4 [enabled] dev-lang/python: 2.4.2-r1 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r1 sys-devel/libtool: 1.5.22 virtual/os-headers: 6.0 ACCEPT_KEYWORDS="x86 x86-fbsd ~x86 ~x86-fbsd" AUTOCLEAN="yes" CBUILD="i686-gentoo-freebsd6.0" CFLAGS="-mtune=athlon-xp -march=athlon-xp -O2 -pipe -mmmx -msse -m3dnow -ffast-math -fomit-frame-pointer" CHOST="i686-gentoo-freebsd6.0" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d" CXXFLAGS="-mtune=athlon-xp -march=athlon-xp -O2 -pipe -mmmx -msse -m3dnow -ffast-math -fomit-frame-pointer -fvisibility-inlines-hidden" DISTDIR="/mnt/distfiles" FEATURES="autoconfig candy ccache collision-protect distlocks metadata-transfer sfperms strict" GENTOO_MIRRORS="http://192.168.0.1 http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/portage-alt-overlay /usr/local/portage/portage-twominds" SYNC="rsync://192.168.0.1/gentoo-portage" USE="x86-fbsd 3dnow X a52 acpi apm arts audiofile bzip2 cdr cups dvd dvdr dvdread ffmpeg fortran gdbm gif glitz gs gtk jpeg kde lzo mad mjpeg mmx mp3 mpeg musicbrainz ncurses nls offensive ogg opengl oss pam perl pic png ppds profile python qt quicktime readline sdl sndfile sse sse2 ssl suid theora threads tiff truetype unicode usb vorbis xcomposite xml xmms xv xvid zlib elibc_FreeBSD input_devices_mouse input_devices_keyboard kernel_FreeBSD userland_BSD video_cards_nvidia video_cards_nv video_cards_vesa video_cards_fbdev video_cards_none" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Fixed replacing malloc.h inclusion with stdlib.h with a sed line.