Xymon Mailing List Archive search

4.3.0 beta3 compile problem on solaris 10 sparc

list Henrik Størner
Wed, 17 Nov 2010 20:40:13 +0000 (UTC)
Message-Id: <ic1ejd$8tt$user-7fe75da36485@xymon.invalid>

In <user-d6679e54e744@xymon.invalid> Roland Soderstrom <user-0cec9512a49f@xymon.invalid> 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