Xymon Mailing List Archive search

Error building Hobbit 4.0

10 messages in this thread

list Rich Smrcina · Thu, 31 Mar 2005 10:28:30 -0600 ·
Received the following error building Hobbit 4.0:

make[1]: Entering directory `/home/hobbit/hobbit-4.0/bbnet'
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DMAXMSG=32768 
-DBBDPORTNUMBER=1984 -I. -I/home/hobbit/hobbit-4.0/include -DHOBBITD=1 
    -c -o bbtest-net.o bbtest-net.c
bbtest-net.c: In function `start_fping_service':
bbtest-net.c:1129: error: `errno' undeclared (first use in this function)
bbtest-net.c:1129: error: (Each undeclared identifier is reported only once
bbtest-net.c:1129: error: for each function it appears in.)
make[1]: *** [bbtest-net.o] Error 1
make[1]: Leaving directory `/home/hobbit/hobbit-4.0/bbnet'
make: *** [bbnet-build] Error 2

-- 
Rich Smrcina
VM Assist, Inc.
Main: (262)392-2026
Cell: (XXX)XXX-XXXX
Ans Service:  (866)569-7378
user-61add9955ef9@xymon.invalid

Catch the WAVV!  http://www.wavv.org
WAVV 2005 - Colorado Springs - May 20-24, 2005
list Lars Ebeling · Thu, 31 Mar 2005 18:32:47 +0200 (CEST) ·
cc -g -O -D_REENTRANT -DHPUX -DMAXMSG=32768 -DBBDPORTNUMBER=1984 -I. -I/home/hob
bit/hobbit-4.0/include -DHOBBITD=1 -c -o trimhistory.o trimhistory.c            trimhistory.c: In function étrim_files':                                        trimhistory.c:150: error: éPATH_MAX' undeclared (first use in this function)    trimhistory.c:150: error: (Each undeclared identifier is reported only once     trimhistory.c:150: error: for each function it appears in.)                     trimhistory.c: In function étrim_logs':                                         trimhistory.c:269: error: éPATH_MAX' undeclared (first use in this function)    makeÄ1Å: *** Ätrimhistory.oÅ Error 1                                            makeÄ1Å: Leaving directory é/home/hobbit/hobbit-4.0/hobbitd'                    make: *** Ähobbitd-buildÅ Error 2                                                Regards
Lars


Hobbithobbyist

The trouble with the world is that the stupid are cocksure and the intelligent are full of doubt.
--Bertrand Russell
list Lars Ebeling · Thu, 31 Mar 2005 18:56:36 +0200 (CEST) ·
Thought I recognised this so I added this first of all includes in trimhistory.c
 #include <limits.h>

Another small bug, my name is spelled Ebelin, otherwise I am very proud.
 /Lars

lars ebeling <user-b8ea1138b488@xymon.invalid> wrote:
Datum: Thu, 31 Mar 2005 18:32:47 +0200 (CEST)
Från: lars ebeling <user-b8ea1138b488@xymon.invalid>
Till: hobbit <user-ae9b8668bcde@xymon.invalid>
quoted from Lars Ebeling
Ämne: [hobbit] Error building hobbit 4.0


Från:   lars ebeling[SMTP:user-b8ea1138b488@xymon.invalid] Skickat:      den 31 mars 2005 18:32:47 Till: hobbit Ämne:     [hobbit] Error building hobbit 4.0 Automatiskt vidarebefordrat av en regel

cc -g -O -D_REENTRANT -DHPUX -DMAXMSG=32768 -DBBDPORTNUMBER=1984 -I. -I/home/hob
bit/hobbit-4.0/include -DHOBBITD=1 -c -o trimhistory.o trimhistory.c            trimhistory.c: In function étrim_files':                                        trimhistory.c:150: error: éPATH_MAX' undeclared (first use in this function)    trimhistory.c:150: error: (Each undeclared identifier is reported only once     trimhistory.c:150: error: for each function it appears in.)                     trimhistory.c: In function étrim_logs':                                         trimhistory.c:269: error: éPATH_MAX' undeclared (first use in this function)    makeÄ1Å: *** Ätrimhistory.oÅ Error 1                                            makeÄ1Å: Leaving directory é/home/hobbit/hobbit-4.0/hobbitd'                    make: *** Ähobbitd-buildÅ Error 2                                                Regards
Lars


Hobbithobbyist

The trouble with the world is that the stupid are cocksure and the intelligent are full of doubt.
--Bertrand Russell 

Hobbithobbyist

The trouble with the world is that the stupid are cocksure and the intelligent are full of doubt.
--Bertrand Russell
list Lars Ebeling · Thu, 31 Mar 2005 18:58:45 +0200 (CEST) ·
Tired, forgot to add this:
 Build complete. Now run '/usr/local/bin/make install' as root  /Lars
quoted from Lars Ebeling

lars ebeling <user-b8ea1138b488@xymon.invalid> wrote:
Datum: Thu, 31 Mar 2005 18:32:47 +0200 (CEST)
Från: lars ebeling <user-b8ea1138b488@xymon.invalid>
Till: hobbit <user-ae9b8668bcde@xymon.invalid>
Ämne: [hobbit] Error building hobbit 4.0


Från:   lars ebeling[SMTP:user-b8ea1138b488@xymon.invalid] Skickat:      den 31 mars 2005 18:32:47 Till: hobbit Ämne:     [hobbit] Error building hobbit 4.0 Automatiskt vidarebefordrat av en regel

cc -g -O -D_REENTRANT -DHPUX -DMAXMSG=32768 -DBBDPORTNUMBER=1984 -I. -I/home/hob
bit/hobbit-4.0/include -DHOBBITD=1 -c -o trimhistory.o trimhistory.c            trimhistory.c: In function étrim_files':                                        trimhistory.c:150: error: éPATH_MAX' undeclared (first use in this function)    trimhistory.c:150: error: (Each undeclared identifier is reported only once     trimhistory.c:150: error: for each function it appears in.)                     trimhistory.c: In function étrim_logs':                                         trimhistory.c:269: error: éPATH_MAX' undeclared (first use in this function)    makeÄ1Å: *** Ätrimhistory.oÅ Error 1                                            makeÄ1Å: Leaving directory é/home/hobbit/hobbit-4.0/hobbitd'                    make: *** Ähobbitd-buildÅ Error 2                                                Regards
Lars


Hobbithobbyist

The trouble with the world is that the stupid are cocksure and the intelligent are full of doubt.
--Bertrand Russell 

Hobbithobbyist

The trouble with the world is that the stupid are cocksure and the intelligent are full of doubt.
--Bertrand Russell
list Lars Ebeling · Thu, 31 Mar 2005 19:00:16 +0200 (CEST) ·
Very tired.
 Ebeling

lars ebeling <user-b8ea1138b488@xymon.invalid> wrote:
Datum: Thu, 31 Mar 2005 18:56:36 +0200 (CEST)
signature
Från: lars ebeling <user-b8ea1138b488@xymon.invalid>
Till: hobbit <user-ae9b8668bcde@xymon.invalid>
Ämne: Fwd: [hobbit] Error building hobbit 4.0


quoted from Lars Ebeling
Från:   lars ebeling[SMTP:user-b8ea1138b488@xymon.invalid] Skickat:      den 31 mars 2005 18:56:36 Till: hobbit Ämne:     Fwd: [hobbit] Error building hobbit 4.0 Automatiskt vidarebefordrat av en regel

Thought I recognised this so I added this first of all includes in trimhistory.c
 #include <limits.h>

Another small bug, my name is spelled Ebelin, otherwise I am very proud.
 /Lars

lars ebeling <user-b8ea1138b488@xymon.invalid> wrote:
Datum: Thu, 31 Mar 2005 18:32:47 +0200 (CEST)
Från: lars ebeling <user-b8ea1138b488@xymon.invalid>
Till: hobbit <user-ae9b8668bcde@xymon.invalid>
Ämne: [hobbit] Error building hobbit 4.0


Från:   lars ebeling[SMTP:user-b8ea1138b488@xymon.invalid] Skickat:      den 31 mars 2005 18:32:47 Till: hobbit Ämne:     [hobbit] Error building hobbit 4.0 Automatiskt vidarebefordrat av en regel

cc -g -O -D_REENTRANT -DHPUX -DMAXMSG=32768 -DBBDPORTNUMBER=1984 -I. -I/home/hob
bit/hobbit-4.0/include -DHOBBITD=1 -c -o trimhistory.o trimhistory.c            trimhistory.c: In function étrim_files':                                        trimhistory.c:150: error: éPATH_MAX' undeclared (first use in this function)    trimhistory.c:150: error: (Each undeclared identifier is reported only once     trimhistory.c:150: error: for each function it appears in.)                     trimhistory.c: In function étrim_logs':                                         trimhistory.c:269: error: éPATH_MAX' undeclared (first use in this function)    makeÄ1Å: *** Ätrimhistory.oÅ Error 1                                            makeÄ1Å: Leaving directory é/home/hobbit/hobbit-4.0/hobbitd'                    make: *** Ähobbitd-buildÅ Error 2                                                Regards
Lars


Hobbithobbyist

The trouble with the world is that the stupid are cocksure and the intelligent are full of doubt.
--Bertrand Russell 

Hobbithobbyist

The trouble with the world is that the stupid are cocksure and the intelligent are full of doubt.
--Bertrand Russell 

Hobbithobbyist

The trouble with the world is that the stupid are cocksure and the intelligent are full of doubt.
--Bertrand Russell
list David Gore · Thu, 31 Mar 2005 17:12:17 +0000 ·
Same here on solaris 9.

~David
quoted from Rich Smrcina

Rich Smrcina wrote:
Received the following error building Hobbit 4.0:

make[1]: Entering directory `/home/hobbit/hobbit-4.0/bbnet'
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DMAXMSG=32768 
-DBBDPORTNUMBER=1984 -I. -I/home/hobbit/hobbit-4.0/include -DHOBBITD=1 
   -c -o bbtest-net.o bbtest-net.c
bbtest-net.c: In function `start_fping_service':
bbtest-net.c:1129: error: `errno' undeclared (first use in this function)
bbtest-net.c:1129: error: (Each undeclared identifier is reported only once
bbtest-net.c:1129: error: for each function it appears in.)
make[1]: *** [bbtest-net.o] Error 1
make[1]: Leaving directory `/home/hobbit/hobbit-4.0/bbnet'
make: *** [bbnet-build] Error 2
list Henrik Størner · Thu, 31 Mar 2005 19:20:43 +0200 ·
On Thu, Mar 31, 2005 at 05:12:17PM +0000, David Gore wrote:
Same here on solaris 9.
Oh well. There's always one more bug :-)


Henrik

-------------- next part --------------
--- bbnet/bbtest-net.c	2005/03/25 21:06:57	1.208
+++ bbnet/bbtest-net.c	2005/03/31 17:19:40
@@ -8,7 +8,7 @@
 /*                                                                            */
 /*----------------------------------------------------------------------------*/
 
-static char rcsid[] = "$Id: bbtest-net.c,v 1.208 2005/03/25 21:06:57 henrik Exp $";
+static char rcsid[] = "$Id: bbtest-net.c,v 1.209 2005/03/31 17:19:36 henrik Exp $";
 
 #include <limits.h>
 #include <stdio.h>
@@ -22,6 +22,7 @@
 #include <sys/wait.h>
 #include <rpc/rpc.h>
 #include <fcntl.h>
+#include <errno.h>
 
 #ifdef HAVE_RPCENT
 #include <rpc/rpcent.h>
--- hobbitd/trimhistory.c	2005/03/30 15:55:45	1.4
+++ hobbitd/trimhistory.c	2005/03/31 17:19:40
@@ -10,7 +10,7 @@
 /*                                                                            */
 /*----------------------------------------------------------------------------*/
 
-static char rcsid[] = "$Id: trimhistory.c,v 1.4 2005/03/30 15:55:45 henrik Exp $";
+static char rcsid[] = "$Id: trimhistory.c,v 1.5 2005/03/31 17:19:36 henrik Exp $";
 
 #include <sys/types.h>
 #include <sys/stat.h>
@@ -21,6 +21,7 @@
 #include <dirent.h>
 #include <errno.h>
 #include <utime.h>
+#include <limits.h>
 
 #include "libbbgen.h"
list Tom Georgoulias · Thu, 31 Mar 2005 14:09:30 -0500 ·
Henrik Stoerner wrote:
Oh well. There's always one more bug :-)
Has this patch already been applied to the 4.0 tarball on sourceforge?
list Rich Smrcina · Thu, 31 Mar 2005 13:45:16 -0600 ·
The build works great.  4.0 is up and running!
quoted from Rich Smrcina

Henrik Stoerner wrote:
On Thu, Mar 31, 2005 at 05:12:17PM +0000, David Gore wrote:
Same here on solaris 9.

Oh well. There's always one more bug :-)


Henrik
-- 
Rich Smrcina
VM Assist, Inc.
Main: (262)392-2026
Cell: (XXX)XXX-XXXX
Ans Service:  (866)569-7378
user-61add9955ef9@xymon.invalid

Catch the WAVV!  http://www.wavv.org
WAVV 2005 - Colorado Springs - May 20-24, 2005
list Henrik Størner · Thu, 31 Mar 2005 22:37:19 +0200 ·
quoted from Tom Georgoulias
On Thu, Mar 31, 2005 at 02:09:30PM -0500, Tom Georgoulias wrote:
Henrik Stoerner wrote:
Oh well. There's always one more bug :-)
Has this patch already been applied to the 4.0 tarball on
sourceforge?
I've uploaded a 4.0.1 tar.gz file to sourceforge now. The only
change is the compile-fix for some platforms (Solaris and HP-UX,
possibly others).


Henrik