On Thu, May 18, 2006 at 12:47:44PM +0200, Martin Michlmayr wrote: > Do you see this too? Putting -lcrypt sooner works for me, as in: > gcc -g -O2 -Wall -lcrypt -Wl,--as-needed -o .libs/efstool efstool.o > ./.libs/libefs.so -L/usr/lib /usr/lib/libglib.so -lz > but that doesn't seem right. > > Any idea?
I can reproduce the failure. The problem seems to be that libefs isn't linked against libcrypt. The attached patch, which does link libefs against libcrypt, fixed the problem on my system. -- Matt
diff -ru bonobo-1.0.22.orig/libefs/src/Makefile.am bonobo-1.0.22/libefs/src/Makefile.am --- bonobo-1.0.22.orig/libefs/src/Makefile.am 2006-05-18 07:17:26.000000000 -0700 +++ bonobo-1.0.22/libefs/src/Makefile.am 2006-05-18 06:38:01.000000000 -0700 @@ -19,7 +19,7 @@ noinst_HEADERS = efs_internal.h ib1_driver.h blowfish.h libefs_la_LDFLAGS = \ - -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -lz + -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -lz $(CRYPTLIB) libefs_la_SOURCES = \ efs.c \ diff -ru bonobo-1.0.22.orig/libefs/src/Makefile.in bonobo-1.0.22/libefs/src/Makefile.in --- bonobo-1.0.22.orig/libefs/src/Makefile.in 2006-05-18 07:17:33.000000000 -0700 +++ bonobo-1.0.22/libefs/src/Makefile.in 2006-05-18 06:56:53.000000000 -0700 @@ -104,7 +104,7 @@ noinst_HEADERS = efs_internal.h ib1_driver.h blowfish.h -libefs_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -lz +libefs_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -lz $(CRYPTLIB) libefs_la_SOURCES = efs.c wrapper.c lock.c ib1_cache.c ib1_alloc.c ib1_driver.c ib1_inode.c ib1_file.c blowfish.c mime.c
signature.asc
Description: Digital signature