From patchwork Mon Jan 10 19:29:07 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: silo fails to build with e2fsprogs-1.41.14 (undefined references to posix_memalign) Date: Mon, 10 Jan 2011 09:29:07 -0000 From: David Miller X-Patchwork-Id: 78196 Message-Id: <20110110.112907.235685272.davem@davemloft.net> To: armin76@gentoo.org Cc: sparclinux@vger.kernel.org From: Raúl Porcel 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 Signed-off-by: David S. Miller --- 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; +}