add libpthread to btreplay/Makefile LIBS
PATCH 1/1 add libpthread to btreplay/Makefile LIBS
Fedora linking changes picked this up:
/usr/bin/ld: btreplay.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'/usr/bin/ld: note: 'pthread_create@@GLIBC_2.2.5' is defined in DSO /lib64/libpthread.so.0 so try adding it to the linker command line
See also https://bugzilla.redhat.com/show_bug.cgi?idV4775
---
Index: blktrace-1.0.1/btreplay/Makefile =================================--- blktrace-1.0.1.orig/btreplay/Makefile +++ blktrace-1.0.1/btreplay/Makefile
@@ -13,7 +13,7 @@ XCFLAGS = -D_GNU_SOURCE -D_LARGEFILE_SOU
override CFLAGS += $(INCS) $(XCFLAGS) $(OCFLAGS)
PROGS = btrecord btreplay
-LIBS = -laio -lrt
+LIBS = -laio -lrt -lpthread
all: depend $(PROGS)
Quoted 6 lines · Eric Sandeen
Fedora linking changes picked this up:
/usr/bin/ld: btreplay.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'/usr/bin/ld: note: 'pthread_create@@GLIBC_2.2.5' is defined in DSO/lib64/libpthread.so.0so try adding it to the linker command line
Thanks Eric, applied!
Signature · 1 line
Jens Axboe