ports/78416: [NEW PORT] sysutils/symon: Performance and information monitoring tool

Pav Lucistnik pav at FreeBSD.org
Mon Mar 7 09:47:29 UTC 2005


Ulrich Spörlein píše v po 07. 03. 2005 v 10:37 +0100:
> On Mon, 07.03.2005 at 10:13:40 +0100, Pav Lucistnik wrote:
> > > This could only happen, if you have the vm.nswapdev sysctl, which I
> > > don't have on this 4.9 system
> > > % sysctl vm.nswapdev
> > > sysctl: unknown oid 'vm.nswapdev'
> > 
> > Could this be caused by building in 4.X jail on 5.X kernel?
> > Are you actually doing any checks against live kernel, instead against
> > header files?
> 
> Yes, this might be a problem, as the configure script is calling sysctl
> to guess if vm.nswapdev is available, and then goes on to use the struct
> xswdev.
> 
> Could you please take a quick look at
> work/symon/platform/FreeBSD/conf.sh and tell me of other problems you
> see with this approach?

To allow crossbuilding, you should never ever run sysctl or uname
directly. If you need to check a FreeBSD version for presence of any
structure in headers, check when the structure was implemented, locate
nearest OSVERSION according
tohttp://www.freebsd.org/doc/en/books/porters-handbook/freebsd-versions.html  and use sys/param.h header to check. That is also required to get packages built on package cluster.

Or you can of course grep headers, or, better, try to compile a sample C
snippet, like ./configure scripts do.

> PS: I totally forgot to mention UID 115 in the PR. I'd like to get that
> UID reserved for symon. Thanks.

That's already arranged, don't worry.

-- 
Pav Lucistnik <pav at oook.cz>
              <pav at FreeBSD.org>

A)bort, R)etry, H)it with big hammer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: Toto je digit?ln? podepsan? ??st zpr?vy
URL: <http://lists.freebsd.org/pipermail/freebsd-ports-bugs/attachments/20050307/b40837e2/attachment.sig>


More information about the freebsd-ports-bugs mailing list