Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 421021

Summary: sys-libs/e2fsprogs-libs-1.42.3 fails to install because of include <malloc.h>
Product: Gentoo/Alt Reporter: Dmitri Bogomolov <4glitch>
Component: FreeBSDAssignee: Gentoo/BSD Team <bsd+disabled>
Status: RESOLVED FIXED    
Severity: normal CC: base-system
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: FreeBSD   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emerge --info '=sys-libs/e2fsprogs-libs-1.42.3'
e2fsprogs-libs-1.42.4-fbsd.patch
e2fsprogs-libs-1.42.4-malloc.patch

Description Dmitri Bogomolov 2012-06-13 18:38:38 UTC
build.log tail follow

In file included from symlinks.c:11:0:
/usr/include/malloc.h:3:2: error: #error "<malloc.h> has been replaced by <stdlib.h>"
gmake[2]: *** [symlinks.o] Error 1
gmake[2]: Leaving directory `/var/tmp/portage/sys-libs/e2fsprogs-libs-1.42.3/work/e2fsprogs-libs-1.42.3/util'
gmake[1]: *** [../../util/symlinks] Error 2
gmake[1]: Leaving directory `/var/tmp/portage/sys-libs/e2fsprogs-libs-1.42.3/work/e2fsprogs-libs-1.42.3/lib/et'
gmake: *** [install-shlibs-libs-recursive] Error 1
emake failed

Reproducible: Always
Comment 1 Dmitri Bogomolov 2012-06-13 18:40:27 UTC
Created attachment 315225 [details]
build.log
Comment 2 Dmitri Bogomolov 2012-06-13 18:43:54 UTC
Created attachment 315227 [details]
emerge --info '=sys-libs/e2fsprogs-libs-1.42.3'
Comment 3 Naohiro Aota gentoo-dev 2012-06-14 14:40:13 UTC
Created attachment 315309 [details, diff]
e2fsprogs-libs-1.42.4-fbsd.patch

Simple patch not to include malloc.h on FreeBSD.
Comment 4 SpanKY gentoo-dev 2012-06-30 03:27:33 UTC
Comment on attachment 315309 [details, diff]
e2fsprogs-libs-1.42.4-fbsd.patch

e2fsprogs uses autoconf.  check for the header there, and then use normal HAVE_MALLOC_H defines.
Comment 5 Naohiro Aota gentoo-dev 2012-06-30 23:46:01 UTC
Created attachment 316827 [details, diff]
e2fsprogs-libs-1.42.4-malloc.patch

Revised patch to use HAVE_MALLOC_H
Comment 6 SpanKY gentoo-dev 2012-07-15 22:52:36 UTC
Comment on attachment 316827 [details, diff]
e2fsprogs-libs-1.42.4-malloc.patch

symlinks.c looks good, but Makefile.in does not.  can't mix CPPFLAGS and BUILD_CPPFLAGS or it leads to flakiness ...
Comment 7 Alexis Ballier gentoo-dev 2013-08-27 19:17:52 UTC
doesnt seem to be an issue with recent fbsd/e2fsprogs releases