Summary: | BROKEN CONFIG - sys-fs/e2fsprogs-1.35-r1 fails to build: storage size of `malloc_info' isn't known | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Bodo Thiesen <bothie> |
Component: | New packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | High | ||
Version: | 2005.0 | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 91282 | ||
Bug Blocks: | 91018 | ||
Attachments: |
bugs.gentoo.org-91282-1.txt
bugs.gentoo.org-91254-1.txt |
Description
Bodo Thiesen
2005-05-02 19:04:59 UTC
# emerge e2fsprogs[...]checking for malloc.h... yes[...]checking for mallinfo... yes[...][in /var/tmp/portage/e2fsprogs-1.35-r1/work/e2fsprogs-1.35/e2fsck]i686-pc-linux-gnu-gcc -c -O3 -march=athlon-tbird -funroll-loops -pipe [many -Ds snipped] -DHAVE_MALLOC_H=1 -DHAVE_MALLINFO=1 -O3 -march=athlon-tbird -funroll-loops -pipe -DRESOURCE_TRACK -I../lib -I../lib util.c -o util.outil.c: In function `print_resource_track':util.c:317: error: storage size of `malloc_info' isn't knownmake[2]: *** [util.o] Error 1ok, now investigate it:# grep mallinfo /usr/include/malloc.hstruct mallinfo {[...]Ok, it's there.# cd /var/tmp/portage/e2fsprogs-1.35-r1/work/e2fsprogs-1.35/e2fsck# grep "malloc\.h" util.c#include <malloc.h>And it's being included.Going further, checking that mallinfo is not surrounded between #ifdef's etc. didn't reveal any further problems.So, check, that the right malloc.h is included at all.# i686-pc-linux-gnu-gcc [all args C&Ped] -M -MF util.d# grep malloc util.d /usr/include/bits/stdio.h malloc.h e2fsck.h /usr/include/sys/time.h \Oops?# ls malloc.hmalloc.hWTF?# grep mallinfo malloc.h#Ok, now I don't wonder anymore ...Changed ebuild to contain qualitatively an rm /var/tmp/portage/e2fsprogs-1.35-r1/work/e2fsprogs-1.35/e2fsck/malloc.h:--- /usr/portage/sys-fs/e2fsprogs/e2fsprogs-1.35-r1.ebuild 2005-02-07 00:12:22.000000000 +0100+++ /usr/portage/sys-fs/e2fsprogs/e2fsprogs-1.35-r2.ebuild 2005-05-03 21:03:31.000000000 +0200@@ -21,6 +21,7 @@ src_unpack() { unpack ${A}+ rm /var/tmp/portage/e2fsprogs-1.35-r2/work/e2fsprogs-1.35/e2fsck/malloc.h cd ${S} # Fix a cosmetic error in mk_cmds's help output. epatch ${FILESDIR}/e2fsprogs-1.32-mk_cmds-cosmetic.patch and then tried emerge again: SUCCESS. But I didn't test e.g. e2fsck itself after the emerge yet. OK, this time correctly formatted hopefully ...# emerge e2fsprogs[...]checking for malloc.h... yes[...]checking for mallinfo... yes[...][in /var/tmp/portage/e2fsprogs-1.35-r1/work/e2fsprogs-1.35/e2fsck]i686-pc-linux-gnu-gcc -c -O3 -march=athlon-tbird -funroll-loops -pipe [many -Ds snipped] -DHAVE_MALLOC_H=1 -DHAVE_MALLINFO=1 -O3 -march=athlon-tbird -funroll-loops -pipe -DRESOURCE_TRACK -I../lib -I../lib util.c -o util.outil.c: In function `print_resource_track':util.c:317: error: storage size of `malloc_info' isn't knownmake[2]: *** [util.o] Error 1ok, now investigate it:# grep mallinfo /usr/include/malloc.hstruct mallinfo {[...]Ok, it's there.# cd /var/tmp/portage/e2fsprogs-1.35-r1/work/e2fsprogs-1.35/e2fsck# grep "malloc\.h" util.c#include <malloc.h>And it's being included.Going further, checking that mallinfo is not surrounded between #ifdef's etc. didn't reveal any further problems.So, check, that the right malloc.h is included at all.# i686-pc-linux-gnu-gcc [all args C&Ped] -M -MF util.d# grep malloc util.d /usr/include/bits/stdio.h malloc.h e2fsck.h /usr/include/sys/time.h \Oops?# ls malloc.hmalloc.hWTF?# grep mallinfo malloc.h#Ok, now I don't wonder anymore ...Changed ebuild to contain qualitatively an rm /var/tmp/portage/e2fsprogs-1.35-r1/work/e2fsprogs-1.35/e2fsck/malloc.h:--- /usr/portage/sys-fs/e2fsprogs/e2fsprogs-1.35-r1.ebuild 2005-02-07 00:12:22.000000000 +0100+++ /usr/portage/sys-fs/e2fsprogs/e2fsprogs-1.35-r2.ebuild 2005-05-03 21:03:31.000000000 +0200@@ -21,6 +21,7 @@ src_unpack() { unpack ${A}+ rm /var/tmp/portage/e2fsprogs-1.35-r2/work/e2fsprogs-1.35/e2fsck/malloc.h cd ${S} # Fix a cosmetic error in mk_cmds's help output. epatch ${FILESDIR}/e2fsprogs-1.32-mk_cmds-cosmetic.patch and then tried emerge again: SUCCESS. But I didn't test e.g. e2fsck itself after the emerge yet. I'm giving up on Buggyzilla -> http://bothie.sharedaemon.org/temp/bugs.gentoo.org-91254-1.txt please dont file anymore bugs until we get your current bugs sorted out ... something tells me something is quite wrong with your system and filing more bugs will just waste developer time Created attachment 57984 [details]
bugs.gentoo.org-91282-1.txt
Created attachment 57985 [details]
bugs.gentoo.org-91254-1.txt
every include malloc.h line is done as '#include <malloc.h>' ... that means the active directory is not searched unless the compile has a '-I.', and this doesnt my output -E output shows /usr/include/malloc.h being referenced many times and the e2fsck/malloc.h never being referenced please run that compile again but instead of doing a '-E', do '-c -v' and attach the output I'm a poor idiot./etc/profile.local.after:export CPATH="/home/$USER/root/include:$CPATH"But I don't know why it worked for over one year w/o any problems. Now fixed that, and everything works well even with CPATH being empty before issuing the line above.(I could kill myself if that was the source of every trouble, but I'll know very soon ...) |