Xymon Mailing List Archive search

Compiling Xymon on OSX Snow Leopard

3 messages in this thread

list T.J. Yang · Sun, 14 Feb 2010 21:47:49 -0600 ·
Thanks to Joshua in Macport team to provide a pointer regarding the very "Availability.h" issue is causedby 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 = clienttj-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.
http://clk.atdmt.com/GBL/go/201469227/direct/01/
list T.J. Yang · Sun, 14 Feb 2010 23:01:25 -0600 ·

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 = clienttj-yangs-imac:4.4.0 tj_yang$
quoted from T.J. Yang

From: user-8e841282cda5@xymon.invalid
To: user-ae9b8668bcde@xymon.invalid
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 causedby 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 = clienttj-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.
http://clk.atdmt.com/GBL/go/201469226/direct/01/
list M. Hansen · Sun, 14 Mar 2010 22:23:14 +0100 ·
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.
quoted from T.J. Yang


On Mon, Feb 15, 2010 at 6:01 AM, T.J. Yang <user-8e841282cda5@xymon.invalid> 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
quoted from T.J. Yang
 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$
quoted from T.J. Yang

From: user-8e841282cda5@xymon.invalid
To: user-ae9b8668bcde@xymon.invalid
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
quoted from T.J. Yang
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$
quoted from T.J. 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.