Xymon Mailing List Archive search

Problem building Hobbit on a Solaris 10 zone

11 messages in this thread

list John P Martin · Tue, 12 Aug 2008 16:06:43 +0100 ·
Hi,
      I have been trying to build a Hobbit server in a Solaris 10
non-global zone (or container), having downloaded the 4.2.0 source kit.  I
believe I have met all the prerequisites, but when I come to the "make"
stage, the build fails.

I spent some time checking what I had done and searching for known
problems, so apologies if the information is already out there and I've
missed it.

I repeated the steps I went through on another similar server, but this
time built the kit in the global zone, and it built OK.  Has anyone
sucessfully built a hobbit server in a Solaris 10 non-global zone?

Details:
OS: Solaris 10 1/06
Hobbit 4.2.0
Hardware: SunFire V240 (Sparc).

The configure goes OK.  The make seems to be OK up to this point:

(cd c-ares && CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I.
-I/export/home/user1/hobbit-4.2.0/include -I/usr/local/include" ./configure
--disable-shared)
shell-init: error retrieving current directory: getcwd: cannot access
parent directories: Error 0
job-working-directory: error retrieving current directory: getcwd: cannot
access parent directories: Error 0

This message repeats lots of times, then a bunch of:

cat: cannot open confdefs.h

messages, and the whole session ends with:

checking for library containing gethostbyname... -lnsl
checking for library containing socket... -lsocket
checking whether to enable debug options... no
configure: error: cannot run /bin/bash ./config.sub
make[1]: *** [c-ares/Makefile] Error 1
make[1]: Leaving directory `/export/home/user1/hobbit-4.2.0/bbnet'
make: *** [bbnet-build] Error 2


              Cheers,

                        John
list Jim Smith · Tue, 12 Aug 2008 09:30:25 -0600 ·
It looks like permissions problems on the directories to me.

Jim Smith
SVHS
Little Rock, AR
quoted from John P Martin


-----Original Message-----
From: John P Martin [mailto:user-18313e92e552@xymon.invalid] 
Sent: Tuesday, August 12, 2008 10:07 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Problem building Hobbit on a Solaris 10 zone


Hi,
      I have been trying to build a Hobbit server in a Solaris 10
non-global zone (or container), having downloaded the 4.2.0 source kit.
I
believe I have met all the prerequisites, but when I come to the "make"
stage, the build fails.

I spent some time checking what I had done and searching for known
problems, so apologies if the information is already out there and I've
missed it.

I repeated the steps I went through on another similar server, but this
time built the kit in the global zone, and it built OK.  Has anyone
sucessfully built a hobbit server in a Solaris 10 non-global zone?

Details:
OS: Solaris 10 1/06
Hobbit 4.2.0
Hardware: SunFire V240 (Sparc).

The configure goes OK.  The make seems to be OK up to this point:

(cd c-ares && CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I.
-I/export/home/user1/hobbit-4.2.0/include -I/usr/local/include"
./configure
--disable-shared)
shell-init: error retrieving current directory: getcwd: cannot access
parent directories: Error 0
job-working-directory: error retrieving current directory: getcwd:
cannot
access parent directories: Error 0

This message repeats lots of times, then a bunch of:

cat: cannot open confdefs.h

messages, and the whole session ends with:

checking for library containing gethostbyname... -lnsl
checking for library containing socket... -lsocket
checking whether to enable debug options... no
configure: error: cannot run /bin/bash ./config.sub
make[1]: *** [c-ares/Makefile] Error 1
make[1]: Leaving directory `/export/home/user1/hobbit-4.2.0/bbnet'
make: *** [bbnet-build] Error 2


              Cheers,

                        John
list T.J. Yang · Tue, 12 Aug 2008 11:11:19 -0500 ·
I will create a version of  hobbit server package for sparc and intel solaris 10 for hobbit community.
but  I hope you can wait. the package will be here

http://hobbitmon.svn.sourceforge.net/viewvc/hobbitmon/branches/tjyang/dist/cd/dists/opt/packages/sparc-sun-solaris2.10/

I didn't use gcc to compile hobbit on Solaris platform. package source  will be released also.

T.J. Yang
quoted from Jim Smith
To: user-ae9b8668bcde@xymon.invalid
From: user-18313e92e552@xymon.invalid
Date: Tue, 12 Aug 2008 16:06:43 +0100
Subject: [hobbit] Problem building Hobbit on a Solaris 10 zone


Hi,
      I have been trying to build a Hobbit server in a Solaris 10
non-global zone (or container), having downloaded the 4.2.0 source kit.  I
believe I have met all the prerequisites, but when I come to the "make"
stage, the build fails.

I spent some time checking what I had done and searching for known
problems, so apologies if the information is already out there and I've
missed it.

I repeated the steps I went through on another similar server, but this
time built the kit in the global zone, and it built OK.  Has anyone
sucessfully built a hobbit server in a Solaris 10 non-global zone?

Details:
OS: Solaris 10 1/06
Hobbit 4.2.0
Hardware: SunFire V240 (Sparc).

The configure goes OK.  The make seems to be OK up to this point:

(cd c-ares && CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I.
-I/export/home/user1/hobbit-4.2.0/include -I/usr/local/include" ./configure
--disable-shared)
shell-init: error retrieving current directory: getcwd: cannot access
parent directories: Error 0
job-working-directory: error retrieving current directory: getcwd: cannot
access parent directories: Error 0

This message repeats lots of times, then a bunch of:

cat: cannot open confdefs.h

messages, and the whole session ends with:

checking for library containing gethostbyname... -lnsl
checking for library containing socket... -lsocket
checking whether to enable debug options... no
configure: error: cannot run /bin/bash ./config.sub
make[1]: *** [c-ares/Makefile] Error 1
make[1]: Leaving directory `/export/home/user1/hobbit-4.2.0/bbnet'
make: *** [bbnet-build] Error 2


              Cheers,

                        John

Get Windows Live and get whatever you need, wherever you are.  Start here.
http://www.windowslive.com/default.html?ocid=TXT_TAGLM_WL_Home_082008
list Katherine Cont Spawar Itc Hosch · Tue, 12 Aug 2008 12:13:27 -0500 ·
Is this a sparse root or a whole root zone?  If the former then the
container may not have permission to write to /usr .

- katherine hosch
quoted from John P Martin

-----Original Message-----
From: John P Martin [mailto:user-18313e92e552@xymon.invalid] 
Sent: Tuesday, August 12, 2008 10:07
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Problem building Hobbit on a Solaris 10 zone


Hi,
      I have been trying to build a Hobbit server in a Solaris 10
non-global zone (or container), having downloaded the 4.2.0 source kit.
I believe I have met all the prerequisites, but when I come to the
"make"
stage, the build fails.

I spent some time checking what I had done and searching for known
problems, so apologies if the information is already out there and I've
missed it.

I repeated the steps I went through on another similar server, but this
time built the kit in the global zone, and it built OK.  Has anyone
sucessfully built a hobbit server in a Solaris 10 non-global zone?

Details:
OS: Solaris 10 1/06
Hobbit 4.2.0
Hardware: SunFire V240 (Sparc).

The configure goes OK.  The make seems to be OK up to this point:

(cd c-ares && CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I.
-I/export/home/user1/hobbit-4.2.0/include -I/usr/local/include"
./configure
--disable-shared)
shell-init: error retrieving current directory: getcwd: cannot access
parent directories: Error 0
job-working-directory: error retrieving current directory: getcwd:
cannot access parent directories: Error 0

This message repeats lots of times, then a bunch of:

cat: cannot open confdefs.h

messages, and the whole session ends with:

checking for library containing gethostbyname... -lnsl checking for
library containing socket... -lsocket checking whether to enable debug
options... no
configure: error: cannot run /bin/bash ./config.sub
make[1]: *** [c-ares/Makefile] Error 1
make[1]: Leaving directory `/export/home/user1/hobbit-4.2.0/bbnet'
make: *** [bbnet-build] Error 2


              Cheers,

                        John
list Benjamin P. August · Tue, 12 Aug 2008 10:45:24 -0700 ·
Bear with me, I left Sun 11/2005, haven't touched a Solaris machine  
since early 06, and my zone mojo is somewhat rusty.

But isn't it possible for the local zones to lack packages that exist  
in the global zone? Are the header packages missing from the local zone?

-- 
--Ben
Benjamin P. August
System Administrator - VPUE
Stanford University
list Martin Ward · Wed, 13 Aug 2008 08:54:51 +0100 ·
I have just reconfigured/recompiled Hobbit 4.2.0 within a Solaris 10
zone although I don't know which patch level I am running and this is an
i386 arch machine, so it can definitely be done.

Since it looks like ./configure is complaining you could have a look in
~/hobbit-4.2.0/bbnet/c-ares/config.log file, that may have more detailed
information.

|\/|artin
quoted from John P Martin

-----Original Message-----
From: John P Martin [mailto:user-18313e92e552@xymon.invalid] 
Sent: 12 August 2008 16:07
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Problem building Hobbit on a Solaris 10 zone


Hi,
      I have been trying to build a Hobbit server in a Solaris 10
non-global zone (or container), having downloaded the 4.2.0 source kit.
I believe I have met all the prerequisites, but when I come to the
"make" stage, the build fails.

I spent some time checking what I had done and searching for known
problems, so apologies if the information is already out there and I've
missed it.

I repeated the steps I went through on another similar server, but this
time built the kit in the global zone, and it built OK.  Has anyone
sucessfully built a hobbit server in a Solaris 10 non-global zone?

Details:
OS: Solaris 10 1/06
Hobbit 4.2.0
Hardware: SunFire V240 (Sparc).

The configure goes OK.  The make seems to be OK up to this point:

(cd c-ares && CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I.
-I/export/home/user1/hobbit-4.2.0/include -I/usr/local/include"
./configure
--disable-shared)
shell-init: error retrieving current directory: getcwd: cannot access
parent directories: Error 0
job-working-directory: error retrieving current directory: getcwd:
cannot access parent directories: Error 0

This message repeats lots of times, then a bunch of:

cat: cannot open confdefs.h

messages, and the whole session ends with:

checking for library containing gethostbyname... -lnsl
checking for library containing socket... -lsocket
checking whether to enable debug options... no
configure: error: cannot run /bin/bash ./config.sub
make[1]: *** [c-ares/Makefile] Error 1
make[1]: Leaving directory `/export/home/user1/hobbit-4.2.0/bbnet'
make: *** [bbnet-build] Error 2


              Cheers,

                        John


*************************************************************************************

The message is intended for the named addressee only and may not be disclosed to or used by anyone else, nor may it be copied in any way. 

The contents of this message and its attachments are confidential and may also be subject to legal privilege.  If you are not the named addressee and/or have received this message in error, please advise us by e-mailing user-61c7f445d564@xymon.invalid and delete the message and any attachments without retaining any copies. 

Internet communications are not secure and COLT does not accept responsibility for this message, its contents nor responsibility for any viruses. 

No contracts can be created or varied on behalf of COLT Telecommunications, its subsidiaries or affiliates ("COLT") and any other party by email Communications unless expressly agreed in writing with such other party.  

Please note that incoming emails will be automatically scanned to eliminate potential viruses and unsolicited promotional emails. For more information refer to www.colt.net or contact us on +44(0)20 7390 3900.
list Vernon Everett · Wed, 13 Aug 2008 16:51:16 +0800 ·
Hi

I have just built a test Hobbit server in a Solaris zone, but I used
sol10_u5.
It's also a Sparc system.

I tried in a sparse zone, and experienced a world of hurt.
I reinstalled the zone as non-sparse, and life was good.

I did notice that LD_LIBRARY_PATH needed many additions along the way,
but it doesn't look like that's your problem.
You will also need to make sure your LD_LIBRARY_PATH is correctly
defined when you start Hobbit (when you get there)

Are you using a sparse zone?
That might be the cause of your pain.

Cheers
    Vernon
quoted from Martin Ward


-----Original Message-----
From: Ward, Martin [mailto:user-2d33a6eb6a05@xymon.invalid] 
Sent: Wednesday, 13 August 2008 3:55 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Problem building Hobbit on a Solaris 10 zone

I have just reconfigured/recompiled Hobbit 4.2.0 within a Solaris 10
zone although I don't know which patch level I am running and this is an
i386 arch machine, so it can definitely be done.

Since it looks like ./configure is complaining you could have a look in
~/hobbit-4.2.0/bbnet/c-ares/config.log file, that may have more detailed
information.

|\/|artin

-----Original Message-----
From: John P Martin [mailto:user-18313e92e552@xymon.invalid]
Sent: 12 August 2008 16:07
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Problem building Hobbit on a Solaris 10 zone


Hi,
      I have been trying to build a Hobbit server in a Solaris 10
non-global zone (or container), having downloaded the 4.2.0 source kit.
I believe I have met all the prerequisites, but when I come to the
"make" stage, the build fails.

I spent some time checking what I had done and searching for known
problems, so apologies if the information is already out there and I've
missed it.

I repeated the steps I went through on another similar server, but this
time built the kit in the global zone, and it built OK.  Has anyone
sucessfully built a hobbit server in a Solaris 10 non-global zone?

Details:
OS: Solaris 10 1/06
Hobbit 4.2.0
Hardware: SunFire V240 (Sparc).

The configure goes OK.  The make seems to be OK up to this point:

(cd c-ares && CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I.
-I/export/home/user1/hobbit-4.2.0/include -I/usr/local/include"
./configure
--disable-shared)
shell-init: error retrieving current directory: getcwd: cannot access
parent directories: Error 0
job-working-directory: error retrieving current directory: getcwd:
cannot access parent directories: Error 0

This message repeats lots of times, then a bunch of:

cat: cannot open confdefs.h

messages, and the whole session ends with:

checking for library containing gethostbyname... -lnsl
checking for library containing socket... -lsocket
checking whether to enable debug options... no
configure: error: cannot run /bin/bash ./config.sub
make[1]: *** [c-ares/Makefile] Error 1
make[1]: Leaving directory `/export/home/user1/hobbit-4.2.0/bbnet'
make: *** [bbnet-build] Error 2


              Cheers,

                        John


************************************************************************
*************
The message is intended for the named addressee only and may not be
disclosed to or used by anyone else, nor may it be copied in any way. 

The contents of this message and its attachments are confidential and
may also be subject to legal privilege.  If you are not the named
addressee and/or have received this message in error, please advise us
by e-mailing user-61c7f445d564@xymon.invalid and delete the message and any
attachments without retaining any copies. 

Internet communications are not secure and COLT does not accept
responsibility for this message, its contents nor responsibility for any
viruses. 

No contracts can be created or varied on behalf of COLT
Telecommunications, its subsidiaries or affiliates ("COLT") and any
other party by email Communications unless expressly agreed in writing
with such other party.  

Please note that incoming emails will be automatically scanned to
eliminate potential viruses and unsolicited promotional emails. For more
information refer to www.colt.net or contact us on +44(0)20 7390 3900.


NOTICE: This email and any attachments are confidential. 
They may contain legally privileged information or 
copyright material. You must not read, copy, use or 
disclose them without authorisation. If you are not an 
intended recipient, please contact us at once by return 
email and then delete both messages and all attachments.
list John P Martin · Thu, 14 Aug 2008 15:23:51 +0100 ·
Hi,
Thanks to everyone who replied.  Sorry for the slow response - I locked
myself out of email for a couple of days.

To respond to the postings:
It looks like permissions problems on the directories to me.[Jim Smith}
That's what I thought, but I went the whole "recursive 777" hog and it made
no difference.
I will create a version of  hobbit server package for sparc... [T. J.
Yang]
That would be great - I could stop worrying :-)
Is this a sparse root or a whole root zone? ... [Katherine Hosch].
It was originally sparse root, and I had the same thoughts,so I rebuilt the
zone as whole root.
I have just reconfigured/recompiled Hobbit 4.2.0 within a Solaris 10
zone... (Intel) [Martin Ward]
Good to know - thanks.
Since it looks like ./configure is complaining you could have a look in
~/hobbit-4.2.0/bbnet/c-ares/config.log file [Martin Ward]
I did have a look at this log file, and it didn't help me, but I have
extracted some of the information and added it below, in case that helps
anybody understand my problem.
I have just built a test Hobbit server in a Solaris zone... (sparc)
[Vernon Everett]
Even better to know :-) - thanks
isn't it possible for the local zones to lack packages that exist in the
global zone? [Ben August]
You're not that rusty - you are quite right.  However, in this instance I
believe all the packages from the global zone were successfully installed
in the non-global zone, apart from two relating to zone management (which
aren't meant to install in non-global zones because they aren't
appropriate).

Many thanks - this is an excellent mailing list.  Lots of quick responses,
and all relevant - superb.

Here is some of the information from the
~/hobbit-4.2.0/bbnet/c-ares/config.log file as suggested by Martin Ward.
It looks to me like a repeat of the error messages posted earlier, and I
can't see any more useful clues, but perhaps that's just me:

configure:2272: gcc --version </dev/null >&5
job-working-directory: error retrieving current directory: getcwd: cannot
access parent directories: No such file or directory
gcc (GCC) 3.4.6

and so it repeats.

              Cheers,

                        John
list Ralph Mitchell · Thu, 14 Aug 2008 09:42:45 -0500 ·
quoted from John P Martin
On Tue, Aug 12, 2008 at 10:06 AM, John P Martin <user-18313e92e552@xymon.invalid> wrote:
Hi,
     I have been trying to build a Hobbit server in a Solaris 10
non-global zone (or container), having downloaded the 4.2.0 source kit.  I
believe I have met all the prerequisites, but when I come to the "make"
stage, the build fails.

I spent some time checking what I had done and searching for known
problems, so apologies if the information is already out there and I've
missed it.

I repeated the steps I went through on another similar server, but this
time built the kit in the global zone, and it built OK.  Has anyone
sucessfully built a hobbit server in a Solaris 10 non-global zone?

Details:
OS: Solaris 10 1/06
Hobbit 4.2.0
Hardware: SunFire V240 (Sparc).

The configure goes OK.  The make seems to be OK up to this point:

(cd c-ares && CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I.
-I/export/home/user1/hobbit-4.2.0/include -I/usr/local/include" ./configure
--disable-shared)
shell-init: error retrieving current directory: getcwd: cannot access
parent directories: Error 0
job-working-directory: error retrieving current directory: getcwd: cannot
access parent directories: Error 0
I don't know if this is useful, but I can reproduce the message on a linux
system by doing this:

     mkdir /tmp/a
     cd /tmp/a
     rmdir /tmp/a
     bash

I don't have a Solaris 10 non-global zone handy to try it in, but that
*doesn't* work in either Solaris 8 (sparc) or Solaris 10 (x86 in VMware)
global zone.  I guess they're smart enough to notice when you try to remove
a directory that's in your working directory path.

So, this may not be helpful, and I don't know how it does it, but I'd say it
looks like *something* is somehow making part of the directory path
disappear...

Ralph Mitchell
list Tim McCloskey · Thu, 14 Aug 2008 07:55:48 -0700 ·
I've built many clients in Solaris 10 zones, have not tried a server.  I can't recall exactly what the trouble was but I 
have a faint memory of building something, apache php or mysql in a zone and having some odd troubles with the 
redirection to /dev/null.  You could try to edit configure and send that to a flat file in /var/tmp or somewhere.
configure:2272: gcc --version </dev/null >&5
list Katherine Cont Spawar Itc Hosch · Thu, 14 Aug 2008 10:05:48 -0500 ·
John,

I just built hobbit on a sparc (whole root) container, using the gcc
that is part of the full Solaris install (/usr/sfw/bin/gcc).  However,
there are several package prerequisites that I had to install, all
available from sunfreeware.com :

	make (gnu make)
	fping
	rrdtool
	pcre

Once that is all there you should be able to run "./configure --server"
and then "make" (make sure it is the make in /usr/local/bin - gmake).

The error message indicates that you have moved the parent directory or
something like that. 
quoted from John P Martin

-----Original Message-----
From: John P Martin [mailto:user-18313e92e552@xymon.invalid] 
Sent: Thursday, August 14, 2008 9:24
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Problem building Hobbit on a Solaris 10 zone


Hi,
Thanks to everyone who replied.  Sorry for the slow response - I locked
myself out of email for a couple of days.

To respond to the postings:
It looks like permissions problems on the directories to me.[Jim 
Smith}
That's what I thought, but I went the whole "recursive 777" hog and it
made no difference.
I will create a version of  hobbit server package for sparc... [T. J.
Yang]
That would be great - I could stop worrying :-)
Is this a sparse root or a whole root zone? ... [Katherine Hosch].
It was originally sparse root, and I had the same thoughts,so I rebuilt
the zone as whole root.
I have just reconfigured/recompiled Hobbit 4.2.0 within a Solaris 10
zone... (Intel) [Martin Ward]
Good to know - thanks.
Since it looks like ./configure is complaining you could have a look 
in
~/hobbit-4.2.0/bbnet/c-ares/config.log file [Martin Ward] I did have a
look at this log file, and it didn't help me, but I have extracted some
of the information and added it below, in case that helps anybody
understand my problem.
I have just built a test Hobbit server in a Solaris zone... (sparc)
[Vernon Everett]
Even better to know :-) - thanks
isn't it possible for the local zones to lack packages that exist in 
the
global zone? [Ben August]
You're not that rusty - you are quite right.  However, in this instance
I believe all the packages from the global zone were successfully
installed in the non-global zone, apart from two relating to zone
management (which aren't meant to install in non-global zones because
they aren't appropriate).

Many thanks - this is an excellent mailing list.  Lots of quick
responses, and all relevant - superb.

Here is some of the information from the
~/hobbit-4.2.0/bbnet/c-ares/config.log file as suggested by Martin Ward.
It looks to me like a repeat of the error messages posted earlier, and I
can't see any more useful clues, but perhaps that's just me:

configure:2272: gcc --version </dev/null >&5
job-working-directory: error retrieving current directory: getcwd:
cannot access parent directories: No such file or directory gcc (GCC)
3.4.6

and so it repeats.

              Cheers,

                        John