[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20080417205822.GI3063@mit.edu>
Date: Thu, 17 Apr 2008 16:58:22 -0400
From: Theodore Tso <tytso@....edu>
To: Eric Sandeen <sandeen@...hat.com>
Cc: linux-ext4@...r.kernel.org
Subject: Re: [PATCH 1/5] Fix tst_extents build
On Mon, Apr 07, 2008 at 10:00:56PM -0500, Eric Sandeen wrote:
> tst_extents needs libdl & libuuid to build, for me
>
> @@ -312,7 +312,7 @@ tst_extents: $(srcdir)/extent.c extent_dbg.c $(DEBUG_OBJS) $(LIBSS) $(LIBE2P) $(
> @$(CC) -o tst_extents $(srcdir)/extent.c extent_dbg.c \
> $(ALL_CFLAGS) -DDEBUG $(DEBUG_OBJS) $(LIBSS) $(LIBE2P) \
> $(LIBUUID) $(STATIC_LIBEXT2FS) $(LIBBLKID) $(LIBCOM_ERR) \
> - -I $(top_srcdir)/debugfs
> + -I $(top_srcdir)/debugfs -ldl -luuid
Thanks for pointing this out; my development environment I always
build with elf shared libraries enabled, so I didn't notice this
problem.
$(LIBUUID) was already included, but in the wrong place. So it was
just a matter of reordering the library link order.
This is the fixed I ultimately checked in.
- Ted
commit daf7a6e5d1621d4d84feabedb286e23dc5ad7dbb
Author: Theodore Ts'o <tytso@....edu>
Date: Thu Apr 17 16:54:24 2008 -0400
Fix tst_extents build when building w/o dynamic libraries
$(LIBSS) should automatically include @DLOPEN_LIB@ so the right thing
happens for programs that need to use the ss library.
Reorder the library link order for tst_extents since the blkid library
uses libuuid functions.
Thanks to Eric Sandeen for pointing this problem out!
Signed-off-by: "Theodore Ts'o" <tytso@....edu>
diff --git a/MCONFIG.in b/MCONFIG.in
index 8cd2ccf..80ddbd8 100644
--- a/MCONFIG.in
+++ b/MCONFIG.in
@@ -72,7 +72,7 @@ DEVMAPPER_LIBS = @DEVMAPPER_LIBS@
STATIC_DEVMAPPER_LIBS = @STATIC_DEVMAPPER_LIBS@
LIB = $(top_builddir)/lib
-LIBSS = $(LIB)/libss@..._EXT@
+LIBSS = $(LIB)/libss@..._EXT@ @DLOPEN_LIB@
LIBCOM_ERR = $(LIB)/libcom_err@..._EXT@
LIBE2P = $(LIB)/libe2p@..._EXT@
LIBEXT2FS = $(LIB)/libext2fs@..._EXT@
@@ -82,7 +82,7 @@ LIBINTL = @LIBINTL@
DEPLIBUUID = $(LIB)/libuuid@..._EXT@
DEPLIBBLKID = $(LIB)/libblkid@..._EXT@
-STATIC_LIBSS = $(LIB)/libss@...TIC_LIB_EXT@
+STATIC_LIBSS = $(LIB)/libss@...TIC_LIB_EXT@ @DLOPEN_LIB@
STATIC_LIBCOM_ERR = $(LIB)/libcom_err@...TIC_LIB_EXT@
STATIC_LIBE2P = $(LIB)/libe2p@...TIC_LIB_EXT@
STATIC_LIBEXT2FS = $(LIB)/libext2fs@...TIC_LIB_EXT@
@@ -91,7 +91,7 @@ STATIC_LIBBLKID = $(LIB)/libblkid@...TIC_LIB_EXT@ $(STATIC_DEVMAPPER_LIBS)
DEPSTATIC_LIBUUID = $(LIB)/libuuid@...TIC_LIB_EXT@
DEPSTATIC_LIBBLKID = $(LIB)/libblkid@...TIC_LIB_EXT@
-PROFILED_LIBSS = $(LIB)/libss@...FILED_LIB_EXT@
+PROFILED_LIBSS = $(LIB)/libss@...FILED_LIB_EXT@ @DLOPEN_LIB@
PROFILED_LIBCOM_ERR = $(LIB)/libcom_err@...FILED_LIB_EXT@
PROFILED_LIBE2P = $(LIB)/libe2p@...FILED_LIB_EXT@
PROFILED_LIBEXT2FS = $(LIB)/libext2fs@...FILED_LIB_EXT@
diff --git a/debugfs/Makefile.in b/debugfs/Makefile.in
index bdba326..cb3efcb 100644
--- a/debugfs/Makefile.in
+++ b/debugfs/Makefile.in
@@ -8,7 +8,6 @@ VPATH = @srcdir@
top_builddir = ..
my_dir = debugfs
INSTALL = @INSTALL@
-DLOPEN_LIB = @DLOPEN_LIB@
@MCONFIG@
@@ -26,7 +25,7 @@ SRCS= debug_cmds.c $(srcdir)/debugfs.c $(srcdir)/util.c $(srcdir)/ls.c \
$(srcdir)/htree.c $(srcdir)/unused.c
LIBS= $(LIBEXT2FS) $(LIBE2P) $(LIBSS) $(LIBCOM_ERR) $(LIBBLKID) \
- $(LIBUUID) $(DLOPEN_LIB)
+ $(LIBUUID)
DEPLIBS= $(LIBEXT2FS) $(LIBE2P) $(LIBSS) $(LIBCOM_ERR) $(DEPLIBBLKID) $(DEPLIBUUID)
.c.o:
diff --git a/lib/ext2fs/Makefile.in b/lib/ext2fs/Makefile.in
index 677e2d6..b5f67e6 100644
--- a/lib/ext2fs/Makefile.in
+++ b/lib/ext2fs/Makefile.in
@@ -305,7 +305,7 @@ tst_extents: $(srcdir)/extent.c extent_dbg.c $(DEBUG_OBJS) $(LIBSS) $(LIBE2P) $(
@echo " LD $@"
@$(CC) -o tst_extents $(srcdir)/extent.c extent_dbg.c \
$(ALL_CFLAGS) -DDEBUG $(DEBUG_OBJS) $(LIBSS) $(LIBE2P) \
- $(LIBUUID) $(STATIC_LIBEXT2FS) $(LIBBLKID) $(LIBCOM_ERR) \
+ $(STATIC_LIBEXT2FS) $(LIBBLKID) $(LIBUUID) $(LIBCOM_ERR) \
-I $(top_srcdir)/debugfs
tst_csum: tst_csum.c csum.c $(STATIC_LIBEXT2FS)
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists