Xymon Mailing List Archive search

problems building the latest snapshot (Solaris 10)

list Richard Wachter
Wed, 12 Sep 2007 09:18:14 -0500
Message-Id: <user-da768a0f238f@xymon.invalid>

Henrik,

Thanks for the help, unfortunately it did not resolve the problem.

I tried a clean install ( rm -r snapshot; tar xvf hobbit-snapshot.tar ) and
I received the same results.  I tried changing the bbnet/Makefile before the
configure and after, same results.

chmod 755 bbretest-net.sh
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I.
-I/users/hobbit/snapshot/include -I/usr/local/include -o contest
-I../include -Ic-ares -DSTANDALONE contest.c httptest.o dns.o
dns2.o./libcares.a ../lib/libbbgen.a
Undefined                       first referenced
 symbol                             in file
bind                                /var/tmp//ccIP3DG3.o
recv                                ./libcares.a(ares_process.o)
send                                ./libcares.a(ares_process.o)
getservbyname                       ../lib/libbbgen.a(url.o)
gethostbyname                       dns.o
socket                              /var/tmp//ccIP3DG3.o
getsockopt                          /var/tmp//ccIP3DG3.o
connect                             /var/tmp//ccIP3DG3.o
hstrerror                           dns.o
inet_addr                           ./libcares.a(ares_gethostbyname.o)
inet_aton                           /var/tmp//ccIP3DG3.o
inet_ntoa                           /var/tmp//ccIP3DG3.o
h_errno                             dns.o
shutdown                            /var/tmp//ccIP3DG3.o
ld: fatal: Symbol referencing errors. No output written to contest
collect2: ld returned 1 exit status
make[1]: *** [contest] Error 1
make[1]: Leaving directory `/users/hobbit/snapshot/bbnet'
make: *** [bbnet-build] Error 2


On 9/11/07, Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> wrote:
On Tue, Sep 11, 2007 at 11:09:42AM -0500, Richard Wachter wrote:
I downloaded the latest snapshot this morning and tried to build it.

Solaris 10 (current patches) and I received this error . . .
gcc  -o hobbit_snmpcollect hobbit_snmpcollect.o `net-snmp-config --libs`
../lib/libbbgen.a
gcc: language arch=v9 not recognized
Undefined                       first referenced
 symbol                             in file
inet_aton                           ../lib/libbbgen.a(sendmsg.o)
Makefile problem. Change bbnet/Makefile - there's

hobbit_snmpcollect: hobbit_snmpcollect.o
        $(CC) $(LDFLAGS) -o $@ hobbit_snmpcollect.o `net-snmp-config
--libs` ../lib/libbbgen.a

just add $(NETLIBS) after libbbgen.a, so it becomes

hobbit_snmpcollect: hobbit_snmpcollect.o
        $(CC) $(LDFLAGS) -o $@ hobbit_snmpcollect.o `net-snmp-config
--libs` ../lib/libbbgen.a $(NETLIBS)


Henrik

-- 
===================================
Richard Wachter
General Unix Geek
user-2fe3c77158da@xymon.invalid
<><   Precariously perched on the precipice of another day . . .