[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-sparc
Subject: Re: silo fails to build with e2fsprogs-1.41.14 (undefined
From: David Miller <davem () davemloft ! net>
Date: 2011-01-10 19:29:07
Message-ID: 20110110.112907.235685272.davem () davemloft ! net
[Download RAW message or body]
From: Raśl Porcel <armin76@gentoo.org>
Date: Mon, 10 Jan 2011 20:10:36 +0100
> Hi,
>
> SILO fails to build here with e2fsprogs-1.41.14 installed, i'm attaching
> the build log.
I really appreciate how they make libext2 harder and harder to link into
embedded self-contained things like bootloaders over time.
I just pushed the following fix for this:
--------------------
second: Add dummy posix_memalign stubb for libext2
Reported-by: Raśl Porcel <armin76@gentoo.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
---
second/fs/ext2.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/second/fs/ext2.c b/second/fs/ext2.c
index 57f5e9a..12d00dc 100644
--- a/second/fs/ext2.c
+++ b/second/fs/ext2.c
@@ -163,3 +163,9 @@ void *realloc(void *p, int size)
{
return NULL;
}
+
+int posix_memalign(void **memptr, size_t alignment, size_t size)
+{
+ *memptr = NULL;
+ return -1;
+}
--
1.7.3.4
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic