Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux-HA: Pacemaker

[PATCH] compile without libqb

 

 

Linux-HA pacemaker RSS feed   Index | Next | Previous | View Threaded


bubble at hoster-ok

Jan 16, 2012, 3:11 AM

Post #1 of 2 (332 views)
Permalink
[PATCH] compile without libqb

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

_______________________________________________
Pacemaker mailing list: Pacemaker [at] oss
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


andrew at beekhof

Jan 16, 2012, 4:31 AM

Post #2 of 2 (305 views)
Permalink
Re: [PATCH] compile without libqb [In reply to]

On Mon, Jan 16, 2012 at 10:11 PM, Vladislav Bogdanov
<bubble [at] hoster-ok> wrote:
> Hi Andrew,
>
> pacemaker from your private repo does not compile without libqb again
> (b456827)

One second, I'll pull from ClusterLabs (the automated builder also
noticed the same problem)

>
> 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
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker [at] oss
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org

_______________________________________________
Pacemaker mailing list: Pacemaker [at] oss
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org

Linux-HA pacemaker RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.