Wednesday, February 15, 2012

Patch for TAHI's v6eval on FreeBSD after the switch to utmpx

After FreeBSD made the switch to utmpx, which you can read about here:

 http://thread.gmane.org/gmane.os.freebsd.current/122932

Certain programs, like the TAHI organizations v6eval package will fail to compile.   This means the recent 9.0-RELEASE of FreeBSD will no longer work out of the box.  This really only required a minor change to get it working.  I've published a patch here.

v6eval-3.3.1-utmpx.patch

Enjoy!

EDIT: ed@ kindly worked up a functional patch that works with utmpx's binary format, this might explain why sometimes your child processes are left hanging after a run:
http://80386.nl/pub/v6eval.txt

Thanks Ed!

2 comments:

  1. Hi Mark,

    Though that patch does fix the build, it doesn't make v6eval do the right thing. The utx.* files cannot be parsed by hand, as the entries stored inside are not of the same form as struct utmpx. A simple 's/utmp/utmpx/g' is not sufficient.

    Earlier today I wrote this patch: http://80386.nl/pub/v6eval.txt

    I'll see if I can get it committed one of these days.

    ReplyDelete