Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 421021 - sys-libs/e2fsprogs-libs-1.42.3 fails to install because of include <malloc.h>
Summary: sys-libs/e2fsprogs-libs-1.42.3 fails to install because of include <malloc.h>
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: Normal normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-13 18:38 UTC by Dmitri Bogomolov
Modified: 2013-08-27 19:17 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,29.94 KB, text/plain)
2012-06-13 18:40 UTC, Dmitri Bogomolov
Details
emerge --info '=sys-libs/e2fsprogs-libs-1.42.3' (emerge.info,3.66 KB, text/plain)
2012-06-13 18:43 UTC, Dmitri Bogomolov
Details
e2fsprogs-libs-1.42.4-fbsd.patch (e2fsprogs-libs-1.42.4-fbsd.patch,301 bytes, patch)
2012-06-14 14:40 UTC, Naohiro Aota
Details | Diff
e2fsprogs-libs-1.42.4-malloc.patch (e2fsprogs-libs-1.42.4-malloc.patch,779 bytes, patch)
2012-06-30 23:46 UTC, Naohiro Aota
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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