[hobbit] Compiling Xymon on OSX Snow Leopard

M. Hansen mh31337 at gmail.com
Sun Mar 14 22:23:14 CET 2010


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.



More information about the Xymon mailing list