* [Cluster-devel] [PATCH] avoid build failure: css.h: no such file
@ 2009-06-19 17:53 Jim Meyering
2009-06-19 21:42 ` Jim Meyering
0 siblings, 1 reply; 4+ messages in thread
From: Jim Meyering @ 2009-06-19 17:53 UTC (permalink / raw)
To: cluster-devel.redhat.com
Building fence, as just described, I get this:
agent.c:15:17: fatal error: ccs.h: No such file or directory
compilation terminated.
make[2]: *** [libfence_la-agent.lo] Error 1
make[2]: Leaving directory `/h/meyering/w/co/fence/fence/libfence'
The fix is to arrange to compile with the corosync CFLAGS from pkg-config:
From 9f44500477465e04654e42363e627c9845dc2596 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering@redhat.com>
Date: Fri, 19 Jun 2009 19:52:44 +0200
Subject: [PATCH] avoid build failure: css.h: no such file
* configure.ac: Use PKG_CHECK_MODULES([corosync],[corosync]).
* fence/libfence/Makefile.am (libfence_la_CFLAGS):
Append $(corosync_CFLAGS).
---
configure.ac | 1 +
fence/libfence/Makefile.am | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/configure.ac b/configure.ac
index e569176..b0a014b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -77,6 +77,7 @@ check_lib_no_libs() {
}
# corosync libs
+PKG_CHECK_MODULES([corosync],[corosync])
PKG_CHECK_MODULES([cfg],[libcfg])
PKG_CHECK_MODULES([cpg],[libcpg])
PKG_CHECK_MODULES([quorum],[libquorum])
diff --git a/fence/libfence/Makefile.am b/fence/libfence/Makefile.am
index dff9098..13b48cb 100644
--- a/fence/libfence/Makefile.am
+++ b/fence/libfence/Makefile.am
@@ -12,7 +12,7 @@ lib_LTLIBRARIES = libfence.la
libfence_la_SOURCES = agent.c
-libfence_la_CFLAGS = $(css_CFLAGS)
+libfence_la_CFLAGS = $(css_CFLAGS) $(corosync_CFLAGS)
libfence_la_LDFLAGS = $(ccs_LIBS) \
-version-info $(libversion)
--
1.6.3.2.416.g04d0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Cluster-devel] [PATCH] avoid build failure: css.h: no such file
2009-06-19 17:53 [Cluster-devel] [PATCH] avoid build failure: css.h: no such file Jim Meyering
@ 2009-06-19 21:42 ` Jim Meyering
2009-06-20 12:33 ` Fabio M. Di Nitto
0 siblings, 1 reply; 4+ messages in thread
From: Jim Meyering @ 2009-06-19 21:42 UTC (permalink / raw)
To: cluster-devel.redhat.com
Jim Meyering wrote:
> Building fence, as just described, I get this:
>
> agent.c:15:17: fatal error: ccs.h: No such file or directory
> compilation terminated.
> make[2]: *** [libfence_la-agent.lo] Error 1
> make[2]: Leaving directory `/h/meyering/w/co/fence/fence/libfence'
>
> The fix is to arrange to compile with the corosync CFLAGS from pkg-config:
While my patch worked, it wasn't right ;-)
Fabio found the real cause: a typo: css_... instead of css_...
Here's the patch:
From b124cd70ce01d12eb0a11e89c7f8c740cf4dbf30 Mon Sep 17 00:00:00 2001
From: Fabio M. Di Nitto <fdinitto@redhat.com>
Date: Fri, 19 Jun 2009 19:52:44 +0200
Subject: [PATCH] avoid build failure: css.h: no such file
* fence/libfence/Makefile.am (libfence_la_CFLAGS): Fix typo:
s/css_CFLAGS/ccs_CFLAGS/
---
fence/libfence/Makefile.am | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fence/libfence/Makefile.am b/fence/libfence/Makefile.am
index dff9098..ef99b57 100644
--- a/fence/libfence/Makefile.am
+++ b/fence/libfence/Makefile.am
@@ -12,7 +12,7 @@ lib_LTLIBRARIES = libfence.la
libfence_la_SOURCES = agent.c
-libfence_la_CFLAGS = $(css_CFLAGS)
+libfence_la_CFLAGS = $(ccs_CFLAGS)
libfence_la_LDFLAGS = $(ccs_LIBS) \
-version-info $(libversion)
--
1.6.3.2.416.g04d0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Cluster-devel] [PATCH] avoid build failure: css.h: no such file
2009-06-19 21:42 ` Jim Meyering
@ 2009-06-20 12:33 ` Fabio M. Di Nitto
2009-06-21 8:02 ` Jim Meyering
0 siblings, 1 reply; 4+ messages in thread
From: Fabio M. Di Nitto @ 2009-06-20 12:33 UTC (permalink / raw)
To: cluster-devel.redhat.com
good to in of course :)
Fabio
On Fri, 2009-06-19 at 23:42 +0200, Jim Meyering wrote:
> Jim Meyering wrote:
> > Building fence, as just described, I get this:
> >
> > agent.c:15:17: fatal error: ccs.h: No such file or directory
> > compilation terminated.
> > make[2]: *** [libfence_la-agent.lo] Error 1
> > make[2]: Leaving directory `/h/meyering/w/co/fence/fence/libfence'
> >
> > The fix is to arrange to compile with the corosync CFLAGS from pkg-config:
>
> While my patch worked, it wasn't right ;-)
> Fabio found the real cause: a typo: css_... instead of css_...
>
> Here's the patch:
>
> >From b124cd70ce01d12eb0a11e89c7f8c740cf4dbf30 Mon Sep 17 00:00:00 2001
> From: Fabio M. Di Nitto <fdinitto@redhat.com>
> Date: Fri, 19 Jun 2009 19:52:44 +0200
> Subject: [PATCH] avoid build failure: css.h: no such file
>
> * fence/libfence/Makefile.am (libfence_la_CFLAGS): Fix typo:
> s/css_CFLAGS/ccs_CFLAGS/
> ---
> fence/libfence/Makefile.am | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/fence/libfence/Makefile.am b/fence/libfence/Makefile.am
> index dff9098..ef99b57 100644
> --- a/fence/libfence/Makefile.am
> +++ b/fence/libfence/Makefile.am
> @@ -12,7 +12,7 @@ lib_LTLIBRARIES = libfence.la
>
> libfence_la_SOURCES = agent.c
>
> -libfence_la_CFLAGS = $(css_CFLAGS)
> +libfence_la_CFLAGS = $(ccs_CFLAGS)
>
> libfence_la_LDFLAGS = $(ccs_LIBS) \
> -version-info $(libversion)
> --
> 1.6.3.2.416.g04d0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Cluster-devel] [PATCH] avoid build failure: css.h: no such file
2009-06-20 12:33 ` Fabio M. Di Nitto
@ 2009-06-21 8:02 ` Jim Meyering
0 siblings, 0 replies; 4+ messages in thread
From: Jim Meyering @ 2009-06-21 8:02 UTC (permalink / raw)
To: cluster-devel.redhat.com
Fabio M. Di Nitto wrote:
> good to in of course :)
Pushed.
...
>> >From b124cd70ce01d12eb0a11e89c7f8c740cf4dbf30 Mon Sep 17 00:00:00 2001
>> From: Fabio M. Di Nitto <fdinitto@redhat.com>
>> Date: Fri, 19 Jun 2009 19:52:44 +0200
>> Subject: [PATCH] avoid build failure: css.h: no such file
>>
>> * fence/libfence/Makefile.am (libfence_la_CFLAGS): Fix typo:
>> s/css_CFLAGS/ccs_CFLAGS/
...
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-06-21 8:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-19 17:53 [Cluster-devel] [PATCH] avoid build failure: css.h: no such file Jim Meyering
2009-06-19 21:42 ` Jim Meyering
2009-06-20 12:33 ` Fabio M. Di Nitto
2009-06-21 8:02 ` Jim Meyering
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.