Re: silo fails to build with e2fsprogs-1.41.14 (undefined references to posix_memalign)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Raúl Porcel <armin76@xxxxxxxxxx>
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@xxxxxxxxxx>
Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
---
 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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux