Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Jan 2006 18:04:02 -0800
From:      "David O'Brien" <obrien@freebsd.org>
To:        soc-victor@freebsd.org
Cc:        freebsd-current@freebsd.org
Subject:   Re: [head tinderbox] failure on amd64/amd64
Message-ID:  <20060113020402.GA45246@dragon.NUXI.org>
In-Reply-To: <49402550601120436x1228e447o21e4bf13ecf12edc@mail.gmail.com>
References:  <49402550601120436x1228e447o21e4bf13ecf12edc@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jan 12, 2006 at 02:36:27PM +0200, victor cruceru wrote:
> Hi All,
> Please find below.
> 
> > Message: 16
> > Date: Wed, 11 Jan 2006 18:44:03 -0700
> > From: Scott Long <scottl@samsco.org>
> > Subject: Re: [head tinderbox] failure on amd64/amd64
> 
> > > As a safe measure, we can build and install a special PIC archive,
> > > similar to libc_pic.a and libgcc_pic.a, and use it here.  This is
> > > all in an assumption that it's still unsafe to produce the libdisk.so.
> > >
> > >
> > > Cheers,
> >
> > One way or another, please fix it.  Why is bsnmp linking to libdisk
> > anyways?  It's an absolutely horrible library.
> >
> > Scott
> >
> Because it was my decision to use libdisk I have to answer to this question.
> First, only one bsnmp module is linking to this libdisk (a module for
> HOST-RESOURCES-MIB).
...
> I can try to replace the usage of libdisk with something else which
> will do the job of detecting the disks and the partitions in a running

How does one use 'snmp_hostres'?  The AMD64 world builds fine with this patch:

diff -u -u -0 -r1.2 Makefile
--- usr.sbin/bsnmpd/modules/snmp_hostres/Makefile       9 Jan 2006 13:01:26 -0000       1.2
+++ usr.sbin/bsnmpd/modules/snmp_hostres/Makefile       12 Jan 2006 23:20:48 -0000
@@ -72,2 +72,2 @@
-DPADD= ${LIBKVM} ${LIBDEVINFO} ${LIBM} ${LIBDISK} ${LIBMEMSTAT}
-LDADD= -lkvm -ldevinfo -lm -ldisk -lmemstat
+DPADD= ${LIBKVM} ${LIBDEVINFO} ${LIBM} ${LIBMEMSTAT}
+LDADD= -lkvm -ldevinfo -lm -lmemstat

So what would I do with 'snmp_hostres' to show me unresolved symbol errors?

Can we commit this patch for now, until things are figured out?

diff -u -u -0 -r1.9 Makefile
--- usr.sbin/bsnmpd/modules/Makefile    9 Jan 2006 12:34:07 -0000       1.9
+++ usr.sbin/bsnmpd/modules/Makefile    13 Jan 2006 02:00:31 -0000
@@ -10 +10 @@
-       snmp_hostres \
+       ${_snmp_hostres} \
@@ -17,0 +18,4 @@
+.if ${MACHINE_ARCH} != "amd64"
+_snmp_hostres=         snmp_hostres
+.endif
+

-- 
-- David  (obrien@FreeBSD.org)
Q: Because it reverses the logical flow of conversation.
A: Why is top-posting (putting a reply at the top of the message) frowned upon?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060113020402.GA45246>