Skip to contentSkip to conversation

makedumpfile: Fix a compile error on Debian with pthread

PATCH In review Jiang Wang 2 participants 3 messages Jan 30, 2021 – Feb 1, 2021

Subsystems (3)
lore
Share & tools
lore

Jiang Wang

author
#0 lore raw

PATCH 1/1 makedumpfile: Fix a compile error on Debian with pthread

From: "jiang.wang" <[email protected]>

On Debian 10, make reports errors about undefined reference to `pthread_rwlock_tryrdlock'. To fix it, put ldw before lpthread in the Makefile.

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
index cb6bd42..010d447 100644
@@ -68,7 +68,7 @@ endif
 CFLAGS += -DUSESNAPPY
 endif
 
-LIBS := -lpthread $(LIBS)
+LIBS := $(LIBS) -lpthread
 
 try-run = $(shell set -e;		\
 	TMP=".$$$$.tmp";		\
Signature · 7 lines
2.11.0


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
#1 lore raw

-----Original Message-----

Quoted 25 lines

From: "jiang.wang" <[email protected]>

On Debian 10, make reports errors about undefined reference to `pthread_rwlock_tryrdlock'. To fix it, put ldw before lpthread in the Makefile.

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -2
index cb6bd42..010d447 100644
@@ -68,7 +68,7 @@ endif
 CFLAGS += -DUSESNAPPY
 endif
 
-LIBS := -lpthread $(LIBS)
+LIBS := $(LIBS) -lpthread
 
 try-run = $(shell set -e;		\
 	TMP=".$$$$.tmp";		\
--
Quoted 1 line

2.11.0

Thanks for the patch, applied.
https://github.com/makedumpfile/makedumpfile/commit/01b4bd354c4a845c160d14487a93270cd1e22031

Kazu

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

#2 lore raw

Awesome, thanks!

Quoted 32 lines · HAGIO KAZUHITO(萩尾 一仁)

-----Original Message-----

Quoted 25 lines

From: "jiang.wang" <[email protected]>

On Debian 10, make reports errors about undefined reference to `pthread_rwlock_tryrdlock'. To fix it, put ldw before lpthread in the Makefile.

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -2
index cb6bd42..010d447 100644
@@ -68,7 +68,7 @@ endif
 CFLAGS += -DUSESNAPPY
 endif
 
-LIBS := -lpthread $(LIBS)
+LIBS := $(LIBS) -lpthread
 
 try-run = $(shell set -e;            \
      TMP=".$$$$.tmp";                \
--
Quoted 1 line

2.11.0

Thanks for the patch, applied.
https://github.com/makedumpfile/makedumpfile/commit/01b4bd354c4a845c160d14487a93270cd1e22031

Quoted 2 lines

Kazu

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec