[xymon] 4.3.0 beta3 compile problem on solaris 10 sparc
Henrik Størner
henrik at hswn.dk
Wed Nov 17 21:40:13 CET 2010
In <4CE4376C.909 at logicaltech.com.au> Roland Soderstrom <rolands at logicaltech.com.au> writes:
>make[1]: Entering directory `/var/tmp/xymon-4.3.0.beta3/xymonnet'
>gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
>-I/var/tmp/xymon-4.3.0.beta3/include -I/usr/local/include -o xymonnet
>-Wl,--rpath,/opt/csw/lib -Wl,--rpath,/usr/local/lib xymonnet.o contest.o
>httptest.o httpresult.o ldaptest.o dns.o dns2.o httpcookies.o
>../lib/libxymon.a libcares.a -L/usr/local/lib -lpcre -lresolv -lsocket
>-lnsl -lrt
>/usr/ccs/bin/ld: illegal option -- rpath
I just now noticed that the problem probably isn't with C-ARES, but
with the "--rpath" options that Xymon uses for the linker command.
If you look at the build/Makefile.SunOS file, you'll find the linker
setup there. Xymon tries to figure out if you are using the GNU ld
program:
LDTYPE := $(shell ld -V 2>&1|head -1|cut -d' ' -f1)
ifeq ($(LDTYPE),GNU)
RPATH=-Wl,--rpath,
else
RPATH=-Wl,-R
endif
Try deleting those lines, and see if it helps.
Regards,
Henrik
More information about the Xymon
mailing list