[Pacemaker] [PATCH] compile without libqb

Vladislav Bogdanov bubble at hoster-ok.com
Mon Jan 16 12:11:51 CET 2012


Hi Andrew,

pacemaker from your private repo does not compile without libqb again
(b456827)

Following patch fixes that.

--- a/lib/common/utils.c        2012-01-16 09:23:36.000000000 +0000
+++ b/lib/common/utils.c        2012-01-16 09:23:49.681899538 +0000
@@ -674,13 +674,13 @@
     crm_enable_stderr(to_stderr);

     logfile = getenv("HA_debugfile");
+#if LIBQB_LOGGING
     if(logfile) {
         int fd = qb_log_file_open(logfile);
         qb_log_filter_ctl(fd, QB_LOG_FILTER_ADD, QB_LOG_FILTER_FILE,
"*", level);
         qb_log_ctl(fd, QB_LOG_CONF_ENABLED, QB_TRUE);
     }

-#if LIBQB_LOGGING
     /* Set the default log formats */
     for(lpc = QB_LOG_SYSLOG; lpc < QB_LOG_TARGET_MAX; lpc++) {
         set_format_string(lpc, crm_system_name, FALSE);


Best,
Vladislav



More information about the Pacemaker mailing list