errors compiling client on Solaris 8
list Kevin Attsi King
And Ideas? Configuration complete - now run make -s (GNU make) to build the tools xymon->make -s Checking for socklen_t Checking for snprintf Checking for vsnprintf Checking for rpc/rpcent.h Checking for sys/select.h Checking for u_int32_t typedef Checking for PATH_MAX definition Checking for SHUT_RD/WR/RDWR definitions Checking for strtoll() config.h created loadhosts.c: In function `xmh_find_item': loadhosts.c:226: warning: return discards qualifiers from pointer target type loadhosts.c: In function `xmh_item_id': loadhosts.c:625: warning: return discards qualifiers from pointer target type msort.c: In function `msort': msort.c:119: warning: passing arg 4 of `qsort' from incompatible pointer type sendmsg.c: In function `sendtoxymond': sendmsg.c:138: warning: 'sockfd' might be used uninitialized in this function stackio.c: In function `stackfgets': stackio.c:424: warning: 'eolchar' might be used uninitialized in this function stackio.c:440: warning: 'eolchar' might be used uninitialized in this function timefunc.c: In function `timespec_text': timefunc.c:147: warning: passing arg 2 of `getescapestring' from incompatible pointer type timefunc.c:126: warning: 'days' might be used uninitialized in this function timefunc.c:126: warning: 'starttime' might be used uninitialized in this function timefunc.c:126: warning: 'endtime' might be used uninitialized in this function timefunc.c:126: warning: 'columns' might be used uninitialized in this function Undefined first referenced symbol in file main /usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/crt1.o ld: fatal: Symbol referencing errors. No output written to setup-newfiles collect2: ld returned 1 exit status make[1]: *** [setup-newfiles] Error 1 make: *** [build-build] Error 2 Kevin H. King Engineer V Implementations AT&T XXX-XXX-XXXX "You can not please everyone everyday, But everyday please everyone you can" -me
list Kevin Attsi King
And I followed this to the "T"
Installation
============
Building the client package requires a working C compiler
and GNU make on the target platform. None of the extra libraries
needed for building Xymon are used by the client - so a
plain C compiler installation with GNU make is all that is
needed.
To build the client:
- create a "xymon" userid on the system
(not required, but recommended).
- extract the Xymon source archive
- cd to the xymon-X.X directory
- run "./configure --client; make"
- as root, run "make install"
The client installation is kept entirely within
the "xymon" users' home-directory. All client-related
files are in the ~xymon/client/ directory. If convenient,
this directory can be copied directly to other systems
of the same type, so you need not build the client from
source on all systems.
-----Original Message----- From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of KING, KEVIN (ATTSI) Sent: Tuesday, April 26, 2011 3:49 PM To: xymon at xymon.com Subject: [Xymon] errors compiling client on Solaris 8
▸
And Ideas?
Configuration complete - now run make -s (GNU make) to build the tools
xymon->make -s
Checking for socklen_t
Checking for snprintf
Checking for vsnprintf
Checking for rpc/rpcent.h
Checking for sys/select.h
Checking for u_int32_t typedef
Checking for PATH_MAX definition
Checking for SHUT_RD/WR/RDWR definitions
Checking for strtoll()
config.h created
loadhosts.c: In function `xmh_find_item':
loadhosts.c:226: warning: return discards qualifiers from pointer
target
type
loadhosts.c: In function `xmh_item_id':
loadhosts.c:625: warning: return discards qualifiers from pointer
target
type
msort.c: In function `msort':
msort.c:119: warning: passing arg 4 of `qsort' from incompatible
pointer
type
sendmsg.c: In function `sendtoxymond':
sendmsg.c:138: warning: 'sockfd' might be used uninitialized in this
function
stackio.c: In function `stackfgets':
stackio.c:424: warning: 'eolchar' might be used uninitialized in this
function
stackio.c:440: warning: 'eolchar' might be used uninitialized in this
function
timefunc.c: In function `timespec_text':
timefunc.c:147: warning: passing arg 2 of `getescapestring' from
incompatible pointer type
timefunc.c:126: warning: 'days' might be used uninitialized in this
function
timefunc.c:126: warning: 'starttime' might be used uninitialized in
this
function
timefunc.c:126: warning: 'endtime' might be used uninitialized in this
function
timefunc.c:126: warning: 'columns' might be used uninitialized in this
function
Undefined first referenced
symbol in file
main
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/crt1.o
ld: fatal: Symbol referencing errors. No output written to
setup-newfiles
collect2: ld returned 1 exit status
make[1]: *** [setup-newfiles] Error 1
make: *** [build-build] Error 2
Kevin H. King
Engineer V Implementations
AT&T
XXX-XXX-XXXX
"You can not please everyone everyday, But everyday please everyone
you
can" -me
list Josh Luthman
The problem is certainly a Solaris vs Xymon code. Josh Luthman Office: XXX-XXX-XXXX Direct: XXX-XXX-XXXX XXXX Wayne St Suite XXXX Troy, OH XXXXX
▸
On Tue, Apr 26, 2011 at 3:58 PM, KING, KEVIN (ATTSI) <user-ca972c0c43a8@xymon.invalid> wrote:
And I followed this to the "T" Installation ============ Building the client package requires a working C compiler and GNU make on the target platform. None of the extra libraries needed for building Xymon are used by the client - so a plain C compiler installation with GNU make is all that is needed. To build the client: - create a "xymon" userid on the system (not required, but recommended). - extract the Xymon source archive - cd to the xymon-X.X directory - run "./configure --client; make" - as root, run "make install" The client installation is kept entirely within the "xymon" users' home-directory. All client-related files are in the ~xymon/client/ directory. If convenient, this directory can be copied directly to other systems of the same type, so you need not build the client from source on all systems.-----Original Message----- From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of KING, KEVIN (ATTSI) Sent: Tuesday, April 26, 2011 3:49 PM To: xymon at xymon.com Subject: [Xymon] errors compiling client on Solaris 8 And Ideas? Configuration complete - now run make -s (GNU make) to build the tools xymon->make -s Checking for socklen_t Checking for snprintf Checking for vsnprintf Checking for rpc/rpcent.h Checking for sys/select.h Checking for u_int32_t typedef Checking for PATH_MAX definition Checking for SHUT_RD/WR/RDWR definitions Checking for strtoll() config.h created loadhosts.c: In function `xmh_find_item': loadhosts.c:226: warning: return discards qualifiers from pointer target type loadhosts.c: In function `xmh_item_id': loadhosts.c:625: warning: return discards qualifiers from pointer target type msort.c: In function `msort': msort.c:119: warning: passing arg 4 of `qsort' from incompatible pointer type sendmsg.c: In function `sendtoxymond': sendmsg.c:138: warning: 'sockfd' might be used uninitialized in this function stackio.c: In function `stackfgets': stackio.c:424: warning: 'eolchar' might be used uninitialized in this function stackio.c:440: warning: 'eolchar' might be used uninitialized in this function timefunc.c: In function `timespec_text': timefunc.c:147: warning: passing arg 2 of `getescapestring' from incompatible pointer type timefunc.c:126: warning: 'days' might be used uninitialized in this function timefunc.c:126: warning: 'starttime' might be used uninitialized in this function timefunc.c:126: warning: 'endtime' might be used uninitialized in this function timefunc.c:126: warning: 'columns' might be used uninitialized in this function Undefined first referenced symbol in file main /usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/crt1.o ld: fatal: Symbol referencing errors. No output written to setup-newfiles collect2: ld returned 1 exit status make[1]: *** [setup-newfiles] Error 1 make: *** [build-build] Error 2 Kevin H. King Engineer V Implementations AT&T XXX-XXX-XXXX "You can not please everyone everyday, But everyday please everyone you can" -me
list Tim McCloskey
What happens when you use GNU make, without the silent option? Solaris 8 might not have gmake installed, I don't recall. You have two versions of make on newer Solaris installs. Example: [root at somehost:~]# which make gmake /usr/ccs/bin/make /usr/sfw/bin/gmake Try gmake after you run configure.
▸
From: xymon-bounces at xymon.com [xymon-bounces at xymon.com] On Behalf Of Josh Luthman [user-4c45a83f15cb@xymon.invalid]
Sent: Tuesday, April 26, 2011 1:01 PM
To: KING, KEVIN (ATTSI)
Cc: xymon at xymon.com
Subject: Re: [Xymon] errors compiling client on Solaris 8
The problem is certainly a Solaris vs Xymon code.
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX
On Tue, Apr 26, 2011 at 3:58 PM, KING, KEVIN (ATTSI) <user-ca972c0c43a8@xymon.invalid<mailto:user-ca972c0c43a8@xymon.invalid>> wrote:
And I followed this to the "T"
Installation
============
Building the client package requires a working C compiler
and GNU make on the target platform. None of the extra libraries
needed for building Xymon are used by the client - so a
plain C compiler installation with GNU make is all that is
needed.
To build the client:
- create a "xymon" userid on the system
(not required, but recommended).
- extract the Xymon source archive
- cd to the xymon-X.X directory
- run "./configure --client; make"
- as root, run "make install"
The client installation is kept entirely within
the "xymon" users' home-directory. All client-related
files are in the ~xymon/client/ directory. If convenient,
this directory can be copied directly to other systems
of the same type, so you need not build the client from
source on all systems.
-----Original Message-----
From: xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com> [mailto:xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com>] On
▸
Behalf Of KING, KEVIN (ATTSI)
Sent: Tuesday, April 26, 2011 3:49 PM
To: xymon at xymon.com<mailto:xymon at xymon.com>
▸
Subject: [Xymon] errors compiling client on Solaris 8
And Ideas?
Configuration complete - now run make -s (GNU make) to build the tools
xymon->make -s
Checking for socklen_t
Checking for snprintf
Checking for vsnprintf
Checking for rpc/rpcent.h
Checking for sys/select.h
Checking for u_int32_t typedef
Checking for PATH_MAX definition
Checking for SHUT_RD/WR/RDWR definitions
Checking for strtoll()
config.h created
loadhosts.c: In function `xmh_find_item':
loadhosts.c:226: warning: return discards qualifiers from pointer
target
type
loadhosts.c: In function `xmh_item_id':
loadhosts.c:625: warning: return discards qualifiers from pointer
target
type
msort.c: In function `msort':
msort.c:119: warning: passing arg 4 of `qsort' from incompatible
pointer
type
sendmsg.c: In function `sendtoxymond':
sendmsg.c:138: warning: 'sockfd' might be used uninitialized in this
function
stackio.c: In function `stackfgets':
stackio.c:424: warning: 'eolchar' might be used uninitialized in this
function
stackio.c:440: warning: 'eolchar' might be used uninitialized in this
function
timefunc.c: In function `timespec_text':
timefunc.c:147: warning: passing arg 2 of `getescapestring' from
incompatible pointer type
timefunc.c:126: warning: 'days' might be used uninitialized in this
function
timefunc.c:126: warning: 'starttime' might be used uninitialized in
this
function
timefunc.c:126: warning: 'endtime' might be used uninitialized in this
function
timefunc.c:126: warning: 'columns' might be used uninitialized in this
function
Undefined first referenced
symbol in file
main
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/crt1.o
ld: fatal: Symbol referencing errors. No output written to
setup-newfiles
collect2: ld returned 1 exit status
make[1]: *** [setup-newfiles] Error 1
make: *** [build-build] Error 2
Kevin H. King
Engineer V Implementations
AT&T
XXX-XXX-XXXX
"You can not please everyone everyday, But everyday please everyone
you
can" -me
list Kevin Attsi King
xymon->which make /usr/local/bin/make xymon->make -v GNU Make 3.82 Built for sparc-sun-solaris2.8 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>; This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Are you saying I need to install gmake? Rather than use GNU Make?
-----Original Message----- From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Tim McCloskey Sent: Tuesday, April 26, 2011 4:07 PM
▸
To: xymon at xymon.com
Subject: Re: [Xymon] errors compiling client on Solaris 8
What happens when you use GNU make, without the silent option?Solaris
8 might not have gmake installed, I don't recall. You have two versions of make on newer Solaris installs. Example: [root at somehost:~]# which make gmake /usr/ccs/bin/make /usr/sfw/bin/gmake Try gmake after you run configure. From: xymon-bounces at xymon.com [xymon-bounces at xymon.com] On Behalf Of Josh Luthman [user-4c45a83f15cb@xymon.invalid] Sent: Tuesday, April 26, 2011 1:01 PM To: KING, KEVIN (ATTSI) Cc: xymon at xymon.com Subject: Re: [Xymon] errors compiling client on Solaris 8 The problem is certainly a Solaris vs Xymon code. Josh Luthman Office: XXX-XXX-XXXX Direct: XXX-XXX-XXXX XXXX Wayne St Suite XXXX Troy, OH XXXXX On Tue, Apr 26, 2011 at 3:58 PM, KING, KEVIN (ATTSI) <user-ca972c0c43a8@xymon.invalid<mailto:user-ca972c0c43a8@xymon.invalid>> wrote: And I followed this to the "T" Installation ============ Building the client package requires a working C compiler and GNU make on the target platform. None of the extra libraries needed for building Xymon are used by the client - so a plain C compiler installation with GNU make is all that is needed. To build the client: - create a "xymon" userid on the system (not required, but recommended). - extract the Xymon source archive - cd to the xymon-X.X directory - run "./configure --client; make" - as root, run "make install" The client installation is kept entirely within the "xymon" users' home-directory. All client-related files are in the ~xymon/client/ directory. If convenient, this directory can be copied directly to other systems of the same type, so you need not build the client from source on all systems.-----Original Message----- From: xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com>[mailto:xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com>] OnBehalf Of KING, KEVIN (ATTSI) Sent: Tuesday, April 26, 2011 3:49 PM To: xymon at xymon.com<mailto:xymon at xymon.com> Subject: [Xymon] errors compiling client on Solaris 8 And Ideas? Configuration complete - now run make -s (GNU make) to build the tools xymon->make -s Checking for socklen_t Checking for snprintf Checking for vsnprintf Checking for rpc/rpcent.h Checking for sys/select.h Checking for u_int32_t typedef Checking for PATH_MAX definition Checking for SHUT_RD/WR/RDWR definitions Checking for strtoll() config.h created loadhosts.c: In function `xmh_find_item': loadhosts.c:226: warning: return discards qualifiers from pointer target type loadhosts.c: In function `xmh_item_id': loadhosts.c:625: warning: return discards qualifiers from pointer target type msort.c: In function `msort': msort.c:119: warning: passing arg 4 of `qsort' from incompatible pointer type sendmsg.c: In function `sendtoxymond': sendmsg.c:138: warning: 'sockfd' might be used uninitialized in this function stackio.c: In function `stackfgets': stackio.c:424: warning: 'eolchar' might be used uninitialized in this function stackio.c:440: warning: 'eolchar' might be used uninitialized in this function timefunc.c: In function `timespec_text': timefunc.c:147: warning: passing arg 2 of `getescapestring' from incompatible pointer type timefunc.c:126: warning: 'days' might be used uninitialized in this function timefunc.c:126: warning: 'starttime' might be used uninitialized in this function timefunc.c:126: warning: 'endtime' might be used uninitialized in this function timefunc.c:126: warning: 'columns' might be used uninitialized in this function Undefined first referenced symbol in file main /usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/crt1.o ld: fatal: Symbol referencing errors. No output written to setup-newfiles collect2: ld returned 1 exit status make[1]: *** [setup-newfiles] Error 1 make: *** [build-build] Error 2 Kevin H. King Engineer V Implementations AT&T XXX-XXX-XXXX "You can not please everyone everyday, But everyday please everyone you can" -me
list Kevin Attsi King
And right now xymon is winning! I love the features of xymon, but in the many years I used BB I never had this much trouble compiling the product. Is xymon mainly used on the x86 nix boxes? How many folks are running on Solaris? -Kevin
▸
From: Josh Luthman [mailto:user-4c45a83f15cb@xymon.invalid]
Sent: Tuesday, April 26, 2011 4:01 PM
To: KING, KEVIN (ATTSI)
Cc: xymon at xymon.com
Subject: Re: [Xymon] errors compiling client on Solaris 8
The problem is certainly a Solaris vs Xymon code.
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX
On Tue, Apr 26, 2011 at 3:58 PM, KING, KEVIN (ATTSI) <user-ca972c0c43a8@xymon.invalid>
wrote:
And I followed this to the "T"
Installation
============
Building the client package requires a working C compiler
and GNU make on the target platform. None of the extra libraries
needed for building Xymon are used by the client - so a
plain C compiler installation with GNU make is all that is
needed.
To build the client:
- create a "xymon" userid on the system
(not required, but recommended).
- extract the Xymon source archive
- cd to the xymon-X.X directory
- run "./configure --client; make"
- as root, run "make install"
The client installation is kept entirely within
the "xymon" users' home-directory. All client-related
files are in the ~xymon/client/ directory. If convenient,
this directory can be copied directly to other systems
of the same type, so you need not build the client from
source on all systems.
-----Original Message----- From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of KING, KEVIN (ATTSI) Sent: Tuesday, April 26, 2011 3:49 PM To: xymon at xymon.com Subject: [Xymon] errors compiling client on Solaris 8
And Ideas? Configuration complete - now run make -s (GNU make) to build the tools xymon->make -s Checking for socklen_t Checking for snprintf Checking for vsnprintf Checking for rpc/rpcent.h Checking for sys/select.h Checking for u_int32_t typedef Checking for PATH_MAX definition Checking for SHUT_RD/WR/RDWR definitions Checking for strtoll() config.h created loadhosts.c: In function `xmh_find_item': loadhosts.c:226: warning: return discards qualifiers from pointer target type loadhosts.c: In function `xmh_item_id': loadhosts.c:625: warning: return discards qualifiers from pointer target type msort.c: In function `msort': msort.c:119: warning: passing arg 4 of `qsort' from incompatible pointer type sendmsg.c: In function `sendtoxymond': sendmsg.c:138: warning: 'sockfd' might be used uninitialized in this function stackio.c: In function `stackfgets': stackio.c:424: warning: 'eolchar' might be used uninitialized in this function stackio.c:440: warning: 'eolchar' might be used uninitialized in this function timefunc.c: In function `timespec_text': timefunc.c:147: warning: passing arg 2 of `getescapestring' from incompatible pointer type timefunc.c:126: warning: 'days' might be used uninitialized in this function timefunc.c:126: warning: 'starttime' might be used uninitialized in this function timefunc.c:126: warning: 'endtime' might be used uninitialized in this function timefunc.c:126: warning: 'columns' might be used uninitialized in this function Undefined first referenced symbol in file main /usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/crt1.o ld: fatal: Symbol referencing errors. No output written to setup-newfiles collect2: ld returned 1 exit status make[1]: *** [setup-newfiles] Error 1 make: *** [build-build] Error 2 Kevin H. King Engineer V Implementations AT&T XXX-XXX-XXXX "You can not please everyone everyday, But everyday please everyone you can" -me
list Josh Luthman
I've had one problem on beta, but I exclusively use x86 and primarily rhel.
▸
On Apr 26, 2011 6:01 PM, "KING, KEVIN (ATTSI)" <user-ca972c0c43a8@xymon.invalid> wrote:And right now xymon is winning! I love the features of xymon, but in the many years I used BB I never had this much trouble compiling the product. Is xymon mainly used on the x86 nix boxes? How many folks are running on Solaris? -Kevin From: Josh Luthman [mailto:user-4c45a83f15cb@xymon.invalid] Sent: Tuesday, April 26, 2011 4:01 PM To: KING, KEVIN (ATTSI) Cc: xymon at xymon.com Subject: Re: [Xymon] errors compiling client on Solaris 8 The problem is certainly a Solaris vs Xymon code. Josh Luthman Office: XXX-XXX-XXXX Direct: XXX-XXX-XXXX XXXX Wayne St Suite XXXX Troy, OH XXXXX On Tue, Apr 26, 2011 at 3:58 PM, KING, KEVIN (ATTSI) <user-ca972c0c43a8@xymon.invalid> wrote: And I followed this to the "T" Installation ============ Building the client package requires a working C compiler and GNU make on the target platform. None of the extra libraries needed for building Xymon are used by the client - so a plain C compiler installation with GNU make is all that is needed. To build the client: - create a "xymon" userid on the system (not required, but recommended). - extract the Xymon source archive - cd to the xymon-X.X directory - run "./configure --client; make" - as root, run "make install" The client installation is kept entirely within the "xymon" users' home-directory. All client-related files are in the ~xymon/client/ directory. If convenient, this directory can be copied directly to other systems of the same type, so you need not build the client from source on all systems.-----Original Message----- From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of KING, KEVIN (ATTSI) Sent: Tuesday, April 26, 2011 3:49 PM To: xymon at xymon.com Subject: [Xymon] errors compiling client on Solaris 8And Ideas? Configuration complete - now run make -s (GNU make) to build the tools xymon->make -s Checking for socklen_t Checking for snprintf Checking for vsnprintf Checking for rpc/rpcent.h Checking for sys/select.h Checking for u_int32_t typedef Checking for PATH_MAX definition Checking for SHUT_RD/WR/RDWR definitions Checking for strtoll() config.h created loadhosts.c: In function `xmh_find_item': loadhosts.c:226: warning: return discards qualifiers from pointer target type loadhosts.c: In function `xmh_item_id': loadhosts.c:625: warning: return discards qualifiers from pointer target type msort.c: In function `msort': msort.c:119: warning: passing arg 4 of `qsort' from incompatible pointer type sendmsg.c: In function `sendtoxymond': sendmsg.c:138: warning: 'sockfd' might be used uninitialized in this function stackio.c: In function `stackfgets': stackio.c:424: warning: 'eolchar' might be used uninitialized in this function stackio.c:440: warning: 'eolchar' might be used uninitialized in this function timefunc.c: In function `timespec_text': timefunc.c:147: warning: passing arg 2 of `getescapestring' from incompatible pointer type timefunc.c:126: warning: 'days' might be used uninitialized in this function timefunc.c:126: warning: 'starttime' might be used uninitialized in this function timefunc.c:126: warning: 'endtime' might be used uninitialized in this function timefunc.c:126: warning: 'columns' might be used uninitialized in this function Undefined first referenced symbol in file main /usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/crt1.o ld: fatal: Symbol referencing errors. No output written to setup-newfiles collect2: ld returned 1 exit status make[1]: *** [setup-newfiles] Error 1 make: *** [build-build] Error 2 Kevin H. King Engineer V Implementations AT&T XXX-XXX-XXXX "You can not please everyone everyday, But everyday please everyone you can" -me
list Tim McCloskey
Nope, you have the proper GNU make, named 'make' in this case. See Henrik's note in the following thread. Missed that on the first mail... http://comments.gmane.org/gmane.comp.monitoring.hobbit/26090 Please comment out the test for the GNU "ld" in the build/Makefile.SunOS file - you can just delete these lines: ifeq ($(LDTYPE),GNU) RPATH=-Wl,--rpath, else RPATH=-Wl,-R endif
▸
From: KING, KEVIN (ATTSI) [user-ca972c0c43a8@xymon.invalid] Sent: Tuesday, April 26, 2011 2:56 PM To: Tim McCloskey; xymon at xymon.com Subject: RE: [Xymon] errors compiling client on Solaris 8 xymon->which make /usr/local/bin/make xymon->make -v GNU Make 3.82 Built for sparc-sun-solaris2.8 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>; This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Are you saying I need to install gmake? Rather than use GNU Make?
-----Original Message----- From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Tim McCloskey Sent: Tuesday, April 26, 2011 4:07 PM To: xymon at xymon.com Subject: Re: [Xymon] errors compiling client on Solaris 8 What happens when you use GNU make, without the silent option?
Solaris
8 might not have gmake installed, I don't recall. You have two versions of make on newer Solaris installs. Example: [root at somehost:~]# which make gmake /usr/ccs/bin/make /usr/sfw/bin/gmake Try gmake after you run configure. From: xymon-bounces at xymon.com [xymon-bounces at xymon.com] On Behalf Of Josh Luthman [user-4c45a83f15cb@xymon.invalid] Sent: Tuesday, April 26, 2011 1:01 PM To: KING, KEVIN (ATTSI) Cc: xymon at xymon.com Subject: Re: [Xymon] errors compiling client on Solaris 8 The problem is certainly a Solaris vs Xymon code. Josh Luthman Office: XXX-XXX-XXXX Direct: XXX-XXX-XXXX XXXX Wayne St Suite XXXX Troy, OH XXXXX On Tue, Apr 26, 2011 at 3:58 PM, KING, KEVIN (ATTSI) <user-ca972c0c43a8@xymon.invalid<mailto:user-ca972c0c43a8@xymon.invalid>> wrote: And I followed this to the "T" Installation ============ Building the client package requires a working C compiler and GNU make on the target platform. None of the extra libraries needed for building Xymon are used by the client - so a plain C compiler installation with GNU make is all that is needed. To build the client: - create a "xymon" userid on the system (not required, but recommended). - extract the Xymon source archive - cd to the xymon-X.X directory - run "./configure --client; make" - as root, run "make install" The client installation is kept entirely within the "xymon" users' home-directory. All client-related files are in the ~xymon/client/ directory. If convenient, this directory can be copied directly to other systems of the same type, so you need not build the client from source on all systems.-----Original Message----- From: xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com>[mailto:xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com>] OnBehalf Of KING, KEVIN (ATTSI) Sent: Tuesday, April 26, 2011 3:49 PM To: xymon at xymon.com<mailto:xymon at xymon.com> Subject: [Xymon] errors compiling client on Solaris 8 And Ideas? Configuration complete - now run make -s (GNU make) to build the tools xymon->make -s Checking for socklen_t Checking for snprintf Checking for vsnprintf Checking for rpc/rpcent.h Checking for sys/select.h Checking for u_int32_t typedef Checking for PATH_MAX definition Checking for SHUT_RD/WR/RDWR definitions Checking for strtoll() config.h created loadhosts.c: In function `xmh_find_item': loadhosts.c:226: warning: return discards qualifiers from pointer target type loadhosts.c: In function `xmh_item_id': loadhosts.c:625: warning: return discards qualifiers from pointer target type msort.c: In function `msort': msort.c:119: warning: passing arg 4 of `qsort' from incompatible pointer type sendmsg.c: In function `sendtoxymond': sendmsg.c:138: warning: 'sockfd' might be used uninitialized in this function stackio.c: In function `stackfgets': stackio.c:424: warning: 'eolchar' might be used uninitialized in this function stackio.c:440: warning: 'eolchar' might be used uninitialized in this function timefunc.c: In function `timespec_text': timefunc.c:147: warning: passing arg 2 of `getescapestring' from incompatible pointer type timefunc.c:126: warning: 'days' might be used uninitialized in this function timefunc.c:126: warning: 'starttime' might be used uninitialized in this function timefunc.c:126: warning: 'endtime' might be used uninitialized in this function timefunc.c:126: warning: 'columns' might be used uninitialized in this function Undefined first referenced symbol in file main /usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/crt1.o ld: fatal: Symbol referencing errors. No output written to setup-newfiles collect2: ld returned 1 exit status make[1]: *** [setup-newfiles] Error 1 make: *** [build-build] Error 2 Kevin H. King Engineer V Implementations AT&T XXX-XXX-XXXX "You can not please everyone everyday, But everyday please everyone you can" -me
list Tim McCloskey
I've used it for a very long time, on SPARC, x86, winblows, UNIX, Linux. No real issues that are out of the norm for compiling software on non-linux platforms. Solaris 8, yeah, I found a couple of hosts still running on old v100's that hobbit built fine on, but that was long ago and a different version of hobbit. The note from my last mail should resolve the trouble you are seeing, Asif can probably attest to that. Regards, Tim
▸
From: xymon-bounces at xymon.com [xymon-bounces at xymon.com] On Behalf Of KING, KEVIN (ATTSI) [user-ca972c0c43a8@xymon.invalid]
Sent: Tuesday, April 26, 2011 3:01 PM
To: Josh Luthman
Cc: xymon at xymon.com
Subject: Re: [Xymon] errors compiling client on Solaris 8
And right now xymon is winning! I love the features of xymon, but in the many years I used BB I never had this much trouble compiling the product. Is xymon mainly used on the x86 nix boxes? How many folks are running on Solaris?
-Kevin
From: Josh Luthman [mailto:user-4c45a83f15cb@xymon.invalid]
Sent: Tuesday, April 26, 2011 4:01 PM
To: KING, KEVIN (ATTSI)
Cc: xymon at xymon.com
Subject: Re: [Xymon] errors compiling client on Solaris 8
The problem is certainly a Solaris vs Xymon code.
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX
On Tue, Apr 26, 2011 at 3:58 PM, KING, KEVIN (ATTSI) <user-ca972c0c43a8@xymon.invalid<mailto:user-ca972c0c43a8@xymon.invalid>> wrote:
And I followed this to the "T"
Installation
============
Building the client package requires a working C compiler
and GNU make on the target platform. None of the extra libraries
needed for building Xymon are used by the client - so a
plain C compiler installation with GNU make is all that is
needed.
To build the client:
- create a "xymon" userid on the system
(not required, but recommended).
- extract the Xymon source archive
- cd to the xymon-X.X directory
- run "./configure --client; make"
- as root, run "make install"
The client installation is kept entirely within
the "xymon" users' home-directory. All client-related
files are in the ~xymon/client/ directory. If convenient,
this directory can be copied directly to other systems
of the same type, so you need not build the client from
source on all systems.
-----Original Message----- From: xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com> [mailto:xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com>] On Behalf Of KING, KEVIN (ATTSI) Sent: Tuesday, April 26, 2011 3:49 PM To: xymon at xymon.com<mailto:xymon at xymon.com> Subject: [Xymon] errors compiling client on Solaris 8 And Ideas? Configuration complete - now run make -s (GNU make) to build the tools xymon->make -s Checking for socklen_t Checking for snprintf Checking for vsnprintf Checking for rpc/rpcent.h Checking for sys/select.h Checking for u_int32_t typedef Checking for PATH_MAX definition Checking for SHUT_RD/WR/RDWR definitions Checking for strtoll() config.h created loadhosts.c: In function `xmh_find_item': loadhosts.c:226: warning: return discards qualifiers from pointer target type loadhosts.c: In function `xmh_item_id': loadhosts.c:625: warning: return discards qualifiers from pointer target type msort.c: In function `msort': msort.c:119: warning: passing arg 4 of `qsort' from incompatible pointer type sendmsg.c: In function `sendtoxymond': sendmsg.c:138: warning: 'sockfd' might be used uninitialized in this function stackio.c: In function `stackfgets': stackio.c:424: warning: 'eolchar' might be used uninitialized in this function stackio.c:440: warning: 'eolchar' might be used uninitialized in this function timefunc.c: In function `timespec_text': timefunc.c:147: warning: passing arg 2 of `getescapestring' from incompatible pointer type timefunc.c:126: warning: 'days' might be used uninitialized in this function timefunc.c:126: warning: 'starttime' might be used uninitialized in this function timefunc.c:126: warning: 'endtime' might be used uninitialized in this function timefunc.c:126: warning: 'columns' might be used uninitialized in this function Undefined first referenced symbol in file main /usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/crt1.o ld: fatal: Symbol referencing errors. No output written to setup-newfiles collect2: ld returned 1 exit status make[1]: *** [setup-newfiles] Error 1 make: *** [build-build] Error 2 Kevin H. King Engineer V Implementations AT&T XXX-XXX-XXXX "You can not please everyone everyday, But everyday please everyone you can" -me
list Kevin Attsi King
Thanks Tim, That was the ticket. I am not able to search the archives from work. Internet mail sites are blocked. :( -Kevin
▸
-----Original Message----- From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Tim McCloskey
Sent: Tuesday, April 26, 2011 6:04 PM
▸
To: xymon at xymon.com Subject: Re: [Xymon] errors compiling client on Solaris 8 Nope, you have the proper GNU make, named 'make' in this case. See Henrik's note in the following thread. Missed that on the first mail... http://comments.gmane.org/gmane.comp.monitoring.hobbit/26090 Please comment out the test for the GNU "ld" in the build/Makefile.SunOS file - you can just delete these lines: ifeq ($(LDTYPE),GNU) RPATH=-Wl,--rpath, else RPATH=-Wl,-R endif From: KING, KEVIN (ATTSI) [user-ca972c0c43a8@xymon.invalid] Sent: Tuesday, April 26, 2011 2:56 PM To: Tim McCloskey; xymon at xymon.com Subject: RE: [Xymon] errors compiling client on Solaris 8 xymon->which make /usr/local/bin/make xymon->make -v GNU Make 3.82 Built for sparc-sun-solaris2.8 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>; This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Are you saying I need to install gmake? Rather than use GNU Make?-----Original Message----- From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Tim McCloskey Sent: Tuesday, April 26, 2011 4:07 PM To: xymon at xymon.com Subject: Re: [Xymon] errors compiling client on Solaris 8 What happens when you use GNU make, without the silent option?Solaris8 might not have gmake installed, I don't recall. You have two versions of make on newer Solaris installs. Example: [root at somehost:~]# which make gmake /usr/ccs/bin/make /usr/sfw/bin/gmake Try gmake after you run configure. From: xymon-bounces at xymon.com [xymon-bounces at xymon.com] On Behalf Of Josh Luthman [user-4c45a83f15cb@xymon.invalid] Sent: Tuesday, April 26, 2011 1:01 PM To: KING, KEVIN (ATTSI) Cc: xymon at xymon.com Subject: Re: [Xymon] errors compiling client on Solaris 8 The problem is certainly a Solaris vs Xymon code. Josh Luthman Office: XXX-XXX-XXXX Direct: XXX-XXX-XXXX XXXX Wayne St Suite XXXX Troy, OH XXXXX On Tue, Apr 26, 2011 at 3:58 PM, KING, KEVIN (ATTSI) <user-ca972c0c43a8@xymon.invalid<mailto:user-ca972c0c43a8@xymon.invalid>> wrote: And I followed this to the "T" Installation ============ Building the client package requires a working C compiler and GNU make on the target platform. None of the extra libraries needed for building Xymon are used by the client - so a plain C compiler installation with GNU make is all that is needed. To build the client: - create a "xymon" userid on the system (not required, but recommended). - extract the Xymon source archive - cd to the xymon-X.X directory - run "./configure --client; make" - as root, run "make install" The client installation is kept entirely within the "xymon" users' home-directory. All client-related files are in the ~xymon/client/ directory. If convenient, this directory can be copied directly to other systems of the same type, so you need not build the client from source on all systems.-----Original Message----- From: xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com>[mailto:xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com>] OnBehalf Of KING, KEVIN (ATTSI) Sent: Tuesday, April 26, 2011 3:49 PM To: xymon at xymon.com<mailto:xymon at xymon.com> Subject: [Xymon] errors compiling client on Solaris 8 And Ideas? Configuration complete - now run make -s (GNU make) to build the tools xymon->make -s Checking for socklen_t Checking for snprintf Checking for vsnprintf Checking for rpc/rpcent.h Checking for sys/select.h Checking for u_int32_t typedef Checking for PATH_MAX definition Checking for SHUT_RD/WR/RDWR definitions Checking for strtoll() config.h created loadhosts.c: In function `xmh_find_item': loadhosts.c:226: warning: return discards qualifiers from pointer target type loadhosts.c: In function `xmh_item_id': loadhosts.c:625: warning: return discards qualifiers from pointer target type msort.c: In function `msort': msort.c:119: warning: passing arg 4 of `qsort' from incompatible pointer type sendmsg.c: In function `sendtoxymond': sendmsg.c:138: warning: 'sockfd' might be used uninitialized in this function stackio.c: In function `stackfgets': stackio.c:424: warning: 'eolchar' might be used uninitialized in this function stackio.c:440: warning: 'eolchar' might be used uninitialized in this function timefunc.c: In function `timespec_text': timefunc.c:147: warning: passing arg 2 of `getescapestring' from incompatible pointer type timefunc.c:126: warning: 'days' might be used uninitialized in this function timefunc.c:126: warning: 'starttime' might be used uninitialized in this function timefunc.c:126: warning: 'endtime' might be used uninitialized in this function timefunc.c:126: warning: 'columns' might be used uninitialized in this function Undefined first referenced symbol in file main /usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/crt1.o ld: fatal: Symbol referencing errors. No output written to setup-newfiles collect2: ld returned 1 exit status make[1]: *** [setup-newfiles] Error 1 make: *** [build-build] Error 2 Kevin H. King Engineer V Implementations AT&T XXX-XXX-XXXX "You can not please everyone everyday, But everyday please everyone you can" -me