[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-ha-dev
Subject: Re: [Linux-ha-dev] Build dependency issue with
From: Andrew Beekhof <andrew () beekhof ! net>
Date: 2009-08-31 9:23:29
Message-ID: b80f82d20908310223g2a66b7cco8debe17de736b040 () mail ! gmail ! com
[Download RAW message or body]
export CFLAGS="$CFLAGS -I$PREFIX/include -L$PREFIX/lib"
On Mon, Aug 31, 2009 at 10:01 AM, Florian Haas<florian.haas@linbit.com> 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@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/
>
>
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic