problems building the latest snapshot (Solaris 10)
Hello all, I downloaded the latest snapshot this morning and tried to build it.
Solaris 10 (current patches) and I received this error . . .
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/users/hobbit/snapshot/include -I/usr/local/include -DINET6
-DNETSNMP_USE_INLINE -Wall -Dlinux -I. -c -o hobbit_snmpcollect.o
hobbit_snmpcollect.c
hobbit_snmpcollect.c: In function starthosts': hobbit_snmpcollect.c:295: warning: 'req' might be used uninitialized in this function hobbit_snmpcollect.c: In function readconfig':
hobbit_snmpcollect.c:530: warning: 'devname' might be used uninitialized in
this function
hobbit_snmpcollect.c: In function resolveifnames': hobbit_snmpcollect.c:641: warning: 'ifwalk' might be used uninitialized in this function hobbit_snmpcollect.c: At top level: hobbit_snmpcollect.c:15: warning: 'rcsid' defined but not used 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) ld: fatal: Symbol referencing errors. No output written to hobbit_snmpcollect collect2: ld returned 1 exit status make[1]: *** [hobbit_snmpcollect] Error 1 make[1]: Leaving directory/users/hobbit/snapshot/bbnet'
make: *** [bbnet-build] Error 2
I have built Hobbit on this server before and really am not sure where to start to resolve this issue.
I am not looking for someone to " fix it " but for some ideas on what I might be missing.
--
Richard Wachter hobbit at richwachter.com <>< Precariously perched on the precipice of another day . . .
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
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 <henrik at hswn.dk> 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.ajust 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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
--
Richard Wachter General Unix Geek rich at richwachter.com <>< Precariously perched on the precipice of another day . . .
On Wed, Sep 12, 2007 at 09:18:14AM -0500, Richard Wachter wrote:
Henrik,
Thanks for the help, unfortunately it did not resolve the problem.
Same problem, but for a different program. Make the same change to the line that builds the "contest" program (it's right above the line you changed when hobbit_snmpcollect wouldn't compile).
Both fixed in the current snapshot.
Henrik
WOOT !! Downloaded the latest snabshot and it built without problem.
Thank you sir.
On 9/12/07, Henrik Stoerner <henrik at hswn.dk> wrote:
On Wed, Sep 12, 2007 at 09:18:14AM -0500, Richard Wachter wrote:
Henrik,
Thanks for the help, unfortunately it did not resolve the problem.
Same problem, but for a different program. Make the same change to the line that builds the "contest" program (it's right above the line you changed when hobbit_snmpcollect wouldn't compile).
Both fixed in the current snapshot.
Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
--
Richard Wachter General Unix Geek rich at richwachter.com <>< Precariously perched on the precipice of another day . . .
participants (3)
-
henrik@hswn.dk
-
hobbit@richwachter.com
-
rich@richwachter.com