Skip to contentSkip to conversation

add libpthread to btreplay/Makefile LIBS

PATCH In review Eric Sandeen 2 participants 2 messages Feb 13, 2010 – Feb 22, 2010

lore
Share & tools
lore
#0 lore raw

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)

#1 lore raw
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.0 so try adding it to the linker command line

See also https://bugzilla.redhat.com/show_bug.cgi?idV4775

Thanks Eric, applied!

Signature · 1 line
Jens Axboe