From 8f33982b230f87dac3856bea998015251ce2beec Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Tue, 5 Mar 2013 02:34:02 -0500 Subject: [PATCH] afsd: afsd.fuse needs MT_LIBS MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This fixes a build failure on Ubuntu raring as of binutils 2.23.1-0ubuntu8, which pulled in a bugfix that makes --no-copy-dt-needed-entries stricter: http://sourceware.org/git/?p=binutils.git;a=commit;h=63f3bee644cc30f1e6d049ca54d307a7c63b8186 make[3]: Entering directory `/…/src/afsd' gcc -O -I/…/src/config -I/…/include -I. -I. -D_LARGEFILE64_SOURCE -I/…/src/afs -I/…/src/afs/UKERNEL -I/…/src/rx/UKERNEL -DUKERNEL -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse -o afsd.fuse afsd_fuse.o /…/lib/libuafs.a /…/lib/libdes.a /…/lib/libafsutil.a /…/lib/libcmd.a /…/lib/libafsutil.a -lresolv -lfuse /usr/bin/ld.bfd.real: /…/lib/libuafs.a(afs_usrops.o): undefined reference to symbol 'pthread_setspecific@GLIBC_2.2.5' /usr/bin/ld.bfd.real: note: 'pthread_setspecific@GLIBC_2.2.5' is defined in DSO /lib/x86_64-linux-gnu/libpthread.so.0 so try adding it to the linker command line /lib/x86_64-linux-gnu/libpthread.so.0: could not read symbols: Invalid operation collect2: error: ld returned 1 exit status make[3]: *** [afsd.fuse] Error 1 make[3]: Leaving directory `/…/src/afsd' This is roughly a partial cherry-pick of commit f6d7a4b426f55db366113bbdda4da71570310410 (which doesn’t apply on 1.6.x), although this particular build failure had already been fixed on master as a side effect of commit 98f86cfc53fc987fdaed2f5bb733b5b5d21bfda9. Change-Id: I89467f00bbf511ec63c464b656d342c5fd2ce557 Signed-off-by: Anders Kaseorg Reviewed-on: http://gerrit.openafs.org/9387 Tested-by: BuildBot Reviewed-by: Andrew Deason Reviewed-by: Derrick Brashear Tested-by: Stephan Wiesand Reviewed-by: Stephan Wiesand --- src/afsd/Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/afsd/Makefile.in b/src/afsd/Makefile.in index de4961ef6..482308693 100644 --- a/src/afsd/Makefile.in +++ b/src/afsd/Makefile.in @@ -34,7 +34,7 @@ afsd: afsd.o afsd_kernel.o $(AFSLIBS) $(AFSD_LIBS) ${CC} ${CFLAGS} -o afsd afsd.o afsd_kernel.o $(NON_SHARED) $(LDFLAGS) $(AFSD_LDFLAGS) $(AFSLIBS) ${XLIBS} ${AFSD_LIBS} afsd.fuse: afsd_fuse.o $(UAFSLIBS) $(AFSD_LIBS) - ${CC} ${UAFS_CFLAGS} -o afsd.fuse afsd_fuse.o $(NON_SHARED) $(LDFLAGS) $(AFSD_LDFLAGS) $(UAFSLIBS) ${UAFS_XLIBS} ${AFSD_LIBS} + ${CC} ${UAFS_CFLAGS} -o afsd.fuse afsd_fuse.o $(NON_SHARED) $(LDFLAGS) $(AFSD_LDFLAGS) $(UAFSLIBS) $(MT_LIBS) ${UAFS_XLIBS} ${AFSD_LIBS} vsys: vsys.o ${CC} ${CFLAGS} -o vsys vsys.o ${TOP_LIBDIR}/libsys.a $(LDFLAGS) ${XLIBS} -- 2.39.5