Hello,

haproxy cannot be compiled on debian 9.13 if the TRACE option is used.

--
Zaga    <[email protected]>

What can change the nature of a man?
>From 97fee9d468d5bd52716fa0352a5ce9b4522730fc Mon Sep 17 00:00:00 2001
From: Miroslav Zagorac <[email protected]>
Date: Thu, 24 Sep 2020 09:15:46 +0200
Subject: [PATCH] BUILD: trace: include tools.h

If the TRACE option is used when compiling the haproxy source,
the following error occurs:

---
src/calltrace.o: In function `make_line':
.../src/calltrace.c:204: undefined reference to `rdtsc'
src/calltrace.o: In function `calltrace':
.../src/calltrace.c:277: undefined reference to `rdtsc'
collect2: error: ld returned 1 exit status
Makefile:866: recipe for target 'haproxy' failed
---
---
 src/calltrace.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/calltrace.c b/src/calltrace.c
index 2208ca11b..551e8a01f 100644
--- a/src/calltrace.c
+++ b/src/calltrace.c
@@ -49,6 +49,7 @@
 #include <string.h>
 #include <haproxy/api.h>
 #include <haproxy/time.h>
+#include <haproxy/tools.h>
 
 static FILE *log;
 static int level;
-- 
2.20.1

Reply via email to