[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] xymon 4.2.3 client compile error on solaris 10
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] xymon 4.2.3 client compile error on solaris 10
- From: Ralph Mitchell <ralphmitchell (at) gmail.com>
- Date: Fri, 7 Aug 2009 16:42:51 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=ME6PvLWJ5pO3wN3hTdbWP3H0hLBjYDzUoM2QY9Eopjo=; b=i7/IUHEqRbJ2po+DpFXSEY+yXBmQKmn9LvIvmopnCGyklaYHTBwZ5WMM41yxB4bRnc T7uqZGDJHLaGiizjegAlqzDbr8GZ3NJ2sRlqN0BxKW1B0U3NkvpmwPPwnj/btUJtlpfc MJl2bYEK0mr08h7k3uMlfj8P1PvXf38DMV9ho=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=kapZ1CBtOH5IP9o4GfvE6UCTEqTeBKrJPxTDlF9kOe7TUcQdukltdayLttlnyLsaMC KgluNeA8NWjgzNLWiIqeemx5tzqpxPl1A+hNCt/Ylg1sX58Y98b78P5xa2AAvseGAh0r qSfqs3bsWGiWNByzl4Ai652iLcJnWemdLYztY=
- References: <4A7C8830.4010607 (at) ipacc.com>
Are you building for Solaris10, or an earlier version?? When you ran
./configure did you see this:
Checking for clock_gettime() requiring librt ...
clock_gettime() requires librt
It seems like librt may be missing, because that's where clock_gettime() is,
at least in Solaris10. I've got librt in both /lib and /usr/lib:
bash-3.00# ls /lib/librt* /usr/lib/librt*
/lib/librt.so /lib/librtld_db.so.1
/usr/lib/librtld_db.so
/lib/librt.so.1 /usr/lib/librt.so
/usr/lib/librtld_db.so.1
/lib/librtld.so.1 /usr/lib/librt.so.1
/lib/librtld_db.so /usr/lib/librtld.so.1
Ralph Mitchell
On Fri, Aug 7, 2009 at 3:01 PM, Bill Wagner <william.wagner (at) ipacc.com>wrote:
> Can anyone explain the following client compile error?
> thanks,
> Bill
>
> # gmake
> MAKE="gmake" CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT
> -DSunOS -I. -I`pwd`/include -DCLIENTONLY=1" LDFLAGS=""
> `pwd`/build/ge nconfig.sh
> 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
> config.h created
> CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
> -I`pwd`/include -DCLIENTONLY=1" LDFLAGS="" OSDEF="-DSunOS"
> RPATHOPT="" PCREINCDIR="" SSLFLAGS=""
> SSLINCDIR="" SSLLIBS="" NETLIBS="-lresolv -lsocket -lnsl" LIBRTDEF=""
> BBTOPDIR="/export/home/xymon" BBLOGDIR=""
> BBHOSTNAME="" BBHOSTIP="10.90.2.100" BBHOSTOS="" LOCALCLIENT="no" gmake -C
> lib client
> gmake[1]: Entering directory `/opt/xymon-4.2.3/lib'
> gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
> -I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -I. -I../include -o
> test-endianness test -endianness.c
> gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
> -I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -I. -I../include -c -o osdefs.o
> osdefs .c
> gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
> -I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -I. -I../include -c -o
> cgiurls.o cgiur ls.c
> gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
> -I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -I. -I../include -DCLIENTONLY -c
> -o colo r-client.o color.c
> gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
> -I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -I. -I../include -c -o digest.o
> digest .c
> gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
> -I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -I. -I../include -c -o
> encoding.o enco ding.c
> gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
> -I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -I. -I../include
> -DBBTOPDIR=\"/export/ho me/xymon\"
> -DBBLOGDIR=\"\" -DBBHOSTNAME=\"\" -DBBHOSTIP=\"10.90.2.100\" -DBBHOSTOS=\"\"
> -DBUILD_HOME=\"/export/home/xymon/client\" -c -o
> e nviron-client.o environ.c
> gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
> -I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -I. -I../include -c -o
> errormsg.o erro rmsg.c
> gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
> -I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -I. -I../include -c -o
> ipaccess.o ipac cess.c
> gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
> -I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -I. -I../include -c -o
> loadhosts.o loadh osts.c
> loadhosts.c: In function `bbh_item_id':
> loadhosts.c:523: warning: return discards qualifiers from pointer target
> type
> gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
> -I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -I. -I../include -c -o md5.o
> md5.c
> gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
> -I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -I. -I../include -c -o memory.o
> memory .c
> gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
> -I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -I. -I../include -c -o misc.o
> misc.c
> gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
> -I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -I. -I../include -c -o rbtr.o
> rbtr.c
> gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
> -I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -I. -I../include
> `./test-endianness` -c -o rmd160c.o rmd160c.c
> gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
> -I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -I. -I../include -c -o
> sendmsg.o sendm sg.c
> gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
> -I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -I. -I../include
> `./test-endianness` -c -o sha1.o sha1.c
> gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
> -I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -I. -I../include -c -o sig.o
> sig.c
> gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
> -I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -I. -I../include -c -o
> stackio.o stack io.c
> gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
> -I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -I. -I../include -c -o
> strfunc.o strfu nc.c
> gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
> -I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -I. -I../include -c -o suid.o
> suid.c
> gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
> -I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -I. -I../include -DCLIENTONLY -c
> -o time func-client.o timefunc.c
> ar cr hobbitclient.a osdefs.o cgiurls.o color-client.o digest.o encoding.o
> environ-client.o errormsg.o ipaccess.o loadhosts.o md5.o
> memory .o misc.o rbtr.o rmd160c.o sendmsg.o
> sha1.o sig.o stackio.o strfunc.o suid.o timefunc-client.o
> ranlib hobbitclient.a || echo ""
> gmake[1]: Leaving directory `/opt/xymon-4.2.3/lib'
> CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
> -I`pwd`/include -DCLIENTONLY=1" LDFLAGS="" RPATHOPT="" SSLFLAGS=""
> SSL INCDIR="" SSLLIBS="" NETLIBS="-lresolv
> -lsocket -lnsl" LIBRTDEF="" BBHOME="/export/home/xymon/client" gmake -C
> common client
> gmake[1]: Entering directory `/opt/xymon-4.2.3/common'
> gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
> -I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -c -o bb.o bb.c
> gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
> -I/opt/xymon-4.2.3/include -DCLIENTONLY=1 -o ../client/bb bb.o
> ../lib/hobbitclient. a -lresolv -lsocket -lnsl
> Undefined first referenced
> symbol in file
> clock_gettime
> ../lib/hobbitclient.a(timefunc-client.o)
> ld: fatal: Symbol referencing errors. No output written to ../client/bb
> collect2: ld returned 1 exit status
> gmake[1]: *** [../client/bb] Error 1
> gmake[1]: Leaving directory `/opt/xymon-4.2.3/common'
> gmake: *** [common-client] Error 2
> #
>