[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] Compiling Xymon on OSX Snow Leopard
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] Compiling Xymon on OSX Snow Leopard
- From: "M. Hansen" <mh31337 (at) gmail.com>
- Date: Sun, 14 Mar 2010 22:23:14 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=JLAK8EWkvp5FgP7B8I6+Jcp9B14MCXn3Wdnp2CGaM3Y=; b=VgdL43HqVTsy1gIVfmeP9i+DJRRtDJc3o01x6Tge1h6zK4Id2CYrSWabZZQvUjXVWF IWo9K1rNJdl9Yi1tawrklC00jbzR5Ks875I2vAQF4WJvCxMKewqJDNsY2lbNf7SHnB8V 29pRFgmmhuGkrOXS+0jnpirYsvtmoOIVySfmU=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=OLmX9mDh/GVNc5Q5BqfkRko5iPkSKEQOrr+LMO1/Rkvzjgj3NCHOaYuYhkiKslsIF2 c/ris2cZ2wR6vs6duUUWw/snL884to4wG7z6I0XAgwTVSn84F8W92Bkx/Ko5dpj5/Xn5 jGgUC/m1XnjgogHdvMQiT1Eqj0XoBiZvvhglI=
- References: <BAY138-W17256A2166AE0C35C4E6999F4A0 (at) phx.gbl> <BAY138-W73D2FFADC3B1E963430749F4A0 (at) phx.gbl>
Works for me! I'm running version 4.2.0 on 10.6.1 Snow Leopard.
The diff file looked a little weird in the web archive, so here's a quick recap:
Step 1:
In build/Makefile.rules, replace:
CFLAGS += -I. -I$(BUILDTOPDIR)/include
with:
CFLAGS += -I$(BUILDTOPDIR)/include
Step 2:
In lib/Makefile, replace:
CFLAGS += -I. -I../include
with:
CFLAGS += -I../include
Thanks a lot, T.J.
On Mon, Feb 15, 2010 at 6:01 AM, T.J. Yang <tj_yang (at) hotmail.com> wrote:
>
> I missed lib/Makefile in last post.
> tj-yangs-imac:4.4.0 tj_yang$ diff -u lib/Makefile.orig lib/Makefile
> --- lib/Makefile.orig 2010-02-14 22:57:16.000000000 -0600
> +++ lib/Makefile 2010-02-14 22:58:21.000000000 -0600
> @@ -9,7 +9,7 @@
> endif
>
> -CFLAGS += -I. -I../include
> +CFLAGS += -I../include
> all: test-endianness libbbgen.a hobbitclient.a loadhosts stackio
> availability md5 sha1 rmd160 locator
> tj-yangs-imac:4.4.0 tj_yang$ diff -u build/Makefile.rules.orig
> build/Makefile.rules
> --- build/Makefile.rules.orig 2010-02-14 22:57:15.000000000 -0600
> +++ build/Makefile.rules 2010-02-14 22:58:51.000000000 -0600
> @@ -8,7 +8,7 @@
> # Build targets
> #####################
> -CFLAGS += -I. -I$(BUILDTOPDIR)/include
> +CFLAGS += -I$(BUILDTOPDIR)/include
> ifeq ($(CLIENTONLY),yes)
> BUILDTARGETS = client
> tj-yangs-imac:4.4.0 tj_yang$
>
> ________________________________
> From: tj_yang (at) hotmail.com
> To: hobbit (at) hswn.dk
> Date: Sun, 14 Feb 2010 21:47:49 -0600
> Subject: [hobbit] Compiling Xymon on OSX Snow Leopard
>
> Thanks to Joshua in Macport team to provide a pointer regarding the very
> "Availability.h" issue is caused
> by duplicated inclusion of "Availability.h" in . directory. I commented out
> "-I." in Makefile.rules file to fix the compilation issue.
> Look likes we have solution for reported issue in R1. Not sure the impact of
> the omission of "-I." will do to other OS.
>
> How ?
> tj-yangs-imac:4.2.3 tj_yang$ diff -u build/Makefile.rules.orig
> build/Makefile.rules
> --- build/Makefile.rules.orig 2010-02-14 21:35:37.000000000 -0600
> +++ build/Makefile.rules 2010-02-14 21:36:24.000000000 -0600
> @@ -8,7 +8,7 @@
> # Build targets
> #####################
> -CFLAGS += -I. -I$(BUILDTOPDIR)/include
> +CFLAGS += -I$(BUILDTOPDIR)/include
> ifeq ($(CLIENTONLY),yes)
> BUILDTARGETS = client
> tj-yangs-imac:4.2.3 tj_yang$
> Why ?
> Don't know exactly why the change of gcc version to 4.2.1 in S.L. break the
> Makefile.rules files.
> R1: http://www.hswn.dk/hobbiton/2009/11/msg00311.html
> Cheers
>
> T.J. Yang
>
>
> ________________________________
> Hotmail: Trusted email with powerful SPAM protection. Sign up now.
> ________________________________
> Hotmail: Trusted email with Microsoft’s powerful SPAM protection. Sign up
> now.