problems compiling 0.4.9 on slackware system

Luis Claudio R.Goncalves lclaudio at conectiva.com.br
Mon Apr 16 13:50:56 MDT 2001


On Fri, Apr 13, 2001 at 05:03:50PM -0700, David Lang wrote:
| I am attempting to compile on a slackware system, libc 2.2.2
| (slackware-current as of Feb 28) and get an error saying that CLK_TCK was
| used but not defined.
| 
| where should CLK_TCK have been defined?

Hi!

   This is Glibc 2.2 related. The fix below shoul solve the problem.

--------------------------cut here------------------------
diff -ruN heartbeat-0.4.8l/heartbeat/hb_api.c
heartbeat-0.4.8l.nsc/heartbeat/hb_api.c
--- heartbeat-0.4.8l/heartbeat/hb_api.c Sat Nov 11 18:05:50 2000
+++ heartbeat-0.4.8l.nsc/heartbeat/hb_api.c     Thu Mar  1 18:01:28 2001
@@ -74,7 +74,11 @@
 #include <hb_api.h>
 #include <hb_api_core.h>
 #include <sys/stat.h>
+#if defined(__GLIBC__) && ( __GLIBC__ == 2 && __GLIBC_MINOR__ < 2 )
 #include <sys/time.h>
+#else
+#include <time.h>
+#endif
 #include <unistd.h>

 static int api_ping_iflist(const struct ha_msg* msg, struct node_info *node
--------------------------cut here------------------------


-- 
[ Luis Claudio R. Goncalves                  lclaudio at conectiva.com.br ]
[ MSc coming soon -- Conectiva HA Team -- Gospel User -- Linuxer -- :) ]
[ Fault Tolerance - Real-Time - Distributed Systems - IECLB - IS 40:31 ]
[ LateNite Programmer --  Jesus Is The Solid Rock On Which I Stand  -- ]



More information about the Linux-HA mailing list