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

Mailing List Archive: Linux-HA: Dev

Build dependency issue with heartbeat/cluster-glue

 

 

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


florian.haas at linbit

Aug 31, 2009, 1:01 AM

Post #1 of 2 (4228 views)
Permalink
Build dependency issue with heartbeat/cluster-glue

Andrew, Lars, Dejan,

As I'm trying to fix the heartbeat init script (and struggling with
automake in the process), I believe I've run into a heartbeat build
issue where I'm guessing at some point $PREFIX isn't evaluated correctly.

Here's what I do (in my hg clone for glue)
export PREFIX=/tmp/cluster-build/usr
export LCRSODIR=$PREFIX/libexec/lcrso
export CLUSTER_USER=hacluster
export CLUSTER_GROUP=haclient
./configure --prefix=$PREFIX
--with-initdir=/tmp/cluster-build/etc/init.d
--sysconfdir=/tmp/cluster-build/etc --localstatedir=/tmp/cluster-build/var

Configure now reports:
glue configuration:
Version = 1.0.0 (Build: unknown)
Features =

Prefix = /tmp/cluster-build/usr
Executables = /tmp/cluster-build/usr/sbin
Man pages = /tmp/cluster-build/usr/share/man
Libraries = /tmp/cluster-build/usr/lib
Header files = /tmp/cluster-build/usr/include
Arch-independent files = /tmp/cluster-build/usr/share
State information = /tmp/cluster-build/var
System configuration = /tmp/cluster-build/etc

Use system LTDL = yes

HA group name = haclient
HA user name = hacluster

CFLAGS = -g -O2 -ggdb3 -O0 -fstack-protector-all
-Wall -Waggregate-return -Wbad-function-cast -Wcast-qual -Wcast-align
-Wdeclaration-after-statement -Wendif-labels -Wfloat-equal -Wformat=2
-Wformat-security -Wformat-nonliteral -Winline -Wmissing-prototypes
-Wmissing-declarations -Wmissing-format-attribute -Wnested-externs
-Wno-long-long -Wno-strict-aliasing -Wpointer-arith -Wstrict-prototypes
-Wwrite-strings -ansi -D_GNU_SOURCE -DANSI_ONLY -Werror
Libraries = -lbz2 -lxml2 -lc -luuid -lrt -ldl
-lglib-2.0 -lltdl
Stack Libraries =

... which I am happy with. I now do make and make install, and
everything correctly installs into my directory hierarchy under
/tmp/cluster-build.

I now change to my hg clone for heartbeat (dev repo from
hg.linux-ha.org) and try bootstrap with the same flags as for glue:

./bootstrap --prefix=$PREFIX
--with-initdir=/tmp/cluster-build/etc/init.d
--sysconfdir=/tmp/cluster-build/etc --localstatedir=/tmp/cluster-build/var

... which bombs out with:
checking heartbeat/glue_config.h usability... no
checking heartbeat/glue_config.h presence... no
checking for heartbeat/glue_config.h... no
configure: error: Core development headers were not found
See `config.log' for more details.

config.log lists includedir as being '/tmp/cluster-build/usr/include',
which does contain heartbeat/glue_config.h.

What am I doing wrong?

Any advice much appreciated. Thanks!

Cheers,
Florian
Attachments: signature.asc (0.25 KB)


andrew at beekhof

Aug 31, 2009, 2:23 AM

Post #2 of 2 (4158 views)
Permalink
Re: Build dependency issue with heartbeat/cluster-glue [In reply to]

export CFLAGS="$CFLAGS -I$PREFIX/include -L$PREFIX/lib"

On Mon, Aug 31, 2009 at 10:01 AM, Florian Haas<florian.haas [at] linbit> wrote:
> Andrew, Lars, Dejan,
>
> As I'm trying to fix the heartbeat init script (and struggling with
> automake in the process), I believe I've run into a heartbeat build
> issue where I'm guessing at some point $PREFIX isn't evaluated correctly.
>
> Here's what I do (in my hg clone for glue)
> export PREFIX=/tmp/cluster-build/usr
> export LCRSODIR=$PREFIX/libexec/lcrso
> export CLUSTER_USER=hacluster
> export CLUSTER_GROUP=haclient
> ./configure --prefix=$PREFIX
> --with-initdir=/tmp/cluster-build/etc/init.d
> --sysconfdir=/tmp/cluster-build/etc --localstatedir=/tmp/cluster-build/var
>
> Configure now reports:
> glue configuration:
>  Version                  = 1.0.0 (Build: unknown)
>  Features                 =
>
>  Prefix                   = /tmp/cluster-build/usr
>  Executables              = /tmp/cluster-build/usr/sbin
>  Man pages                = /tmp/cluster-build/usr/share/man
>  Libraries                = /tmp/cluster-build/usr/lib
>  Header files             = /tmp/cluster-build/usr/include
>  Arch-independent files   = /tmp/cluster-build/usr/share
>  State information        = /tmp/cluster-build/var
>  System configuration     = /tmp/cluster-build/etc
>
>  Use system LTDL          = yes
>
>  HA group name            = haclient
>  HA user name             = hacluster
>
>  CFLAGS                   = -g -O2 -ggdb3 -O0  -fstack-protector-all
> -Wall -Waggregate-return -Wbad-function-cast -Wcast-qual -Wcast-align
> -Wdeclaration-after-statement -Wendif-labels -Wfloat-equal -Wformat=2
> -Wformat-security -Wformat-nonliteral -Winline -Wmissing-prototypes
> -Wmissing-declarations -Wmissing-format-attribute -Wnested-externs
> -Wno-long-long -Wno-strict-aliasing -Wpointer-arith -Wstrict-prototypes
> -Wwrite-strings -ansi -D_GNU_SOURCE -DANSI_ONLY -Werror
>  Libraries                = -lbz2 -lxml2 -lc -luuid -lrt -ldl
> -lglib-2.0   -lltdl
>  Stack Libraries          =
>
> ... which I am happy with. I now do make and make install, and
> everything correctly installs into my directory hierarchy under
> /tmp/cluster-build.
>
> I now change to my hg clone for heartbeat (dev repo from
> hg.linux-ha.org) and try bootstrap with the same flags as for glue:
>
> ./bootstrap --prefix=$PREFIX
> --with-initdir=/tmp/cluster-build/etc/init.d
> --sysconfdir=/tmp/cluster-build/etc --localstatedir=/tmp/cluster-build/var
>
> ... which bombs out with:
> checking heartbeat/glue_config.h usability... no
> checking heartbeat/glue_config.h presence... no
> checking for heartbeat/glue_config.h... no
> configure: error: Core development headers were not found
> See `config.log' for more details.
>
> config.log lists includedir as being '/tmp/cluster-build/usr/include',
> which does contain heartbeat/glue_config.h.
>
> What am I doing wrong?
>
> Any advice much appreciated. Thanks!
>
> Cheers,
> Florian
>
>
> _______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/
>
>
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Linux-HA dev 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.