Installing the ReadyLogo Tahi Scripts to FreeBSD 9.0 utmp.h bug

Hello all. Last week I was upgrading one of our vmware templates to FreeBSD 9.0 to conduct ReadyLogo testing via the Tahi scripts and stumbled across a bug where I could make v6eval compile correctly. Basically it looks like this->

freebsd-9-USGv6# cd v6eval-3.3.2
freebsd-9-USGv6# make
===> lib (depend)
===> lib/Cm (depend)
rm -f .depend GPATH GRTAGS GSYMS GTAGS
rm -f .depend
mkdep -f .depend -a -DYYDEBUG -I. -I/usr/local/include CmTypes.cc BtObject.cc BtArray.cc BtList.cc BtSet.cc CmQueue.cc CmAgent.cc CmMain.cc CmSocket.cc CmFdSet.cc CmFdMasks.cc CmString.cc PerfCollect.cc Timer.cc CmDispatch.cc CmReceiver.cc timeval.cc CmToken.cc CmMatch.cc CmLexer.cc
CmMain.cc:51:18: error: utmp.h: No such file or directory
mkdep: compile failed
*** Error code 1
Stop in /v6eval-3.3.2/lib/Cm.
*** Error code 1
Stop in /v6eval-3.3.2/lib.
*** Error code 1
Stop in /v6eval-3.3.2.
freebsd-9-USGv6#

I sent out an email to Ed Schouten of the FreeBSD project (who is in charge of integrating the new utmpx.h now that utmc.h has been deprecated) and he was able to help me in less than an hour (wow!). You can tell that Ed Schouten is the person if charge of this by doing this command head /usr/include/utmpx.h. I also asked him why he was being so helpful and besides being a great guy he has this to say->

Though utmpx is quite an improvement over the utmp stuff we had in 8, it
broke quite a lot of ports (about a hundred or so). I fixed quite a lot
of them, but at some point I decided to stop fixing them until people
contacted me about them. That way I know which ports are used and which
are not. Many of the broken tools are (or should be) used so little in
practice, that we’d better just sit back and watch them die. 😉

.

Installation / Fix
Go to the directory of the v6eval port (/usr/ports/net/v6eval) . You then do:

fetch -o files/patch-utmpx http://80386.nl/pub/v6eval.txt
make clean
make install clean

I have attached the patch here:v6eval.diff in case it is not on his website anymore.

Also for me it still would not compile so I had to do->
make TRYBROKEN= clean
make TRYBROKEN= install clean

Comment below if you have any problems!

6 Replies to “Installing the ReadyLogo Tahi Scripts to FreeBSD 9.0 utmp.h bug”

  1. Note that if you install from the port “/usr/ports/net/v6eval” that it is using the v6eval 3.0.1 which is out of date. Just use the patch functionality to patch your CmMain.cc with the patch file provided above. It worked great for me! Remember to email the tahi mailing list with any problems.

  2. Hi sean,
    First of all tanks for the useful post. In your comment you have mentioned that inorder to use freebsd ports collection to install the latest v6eval3.3.2, “just use the patch functionality to patch your CmMain.cc with the patch file provided above.” Could you please point me from where I can get that patch. Because when i tried with the utmpx patch, it is still downloading the 3.0.1

  3. Hey Jerin, I would suggest downloading the newest code from Tahi (http://tahi.org/release/) and then patching the code the with the patch provided instead of pathing via the ports (using the old 3.0.1). So your steps would be

    1) Uninstall v6eval port (make deinstall in the port folder)
    2) Download the latest v6eval from the link provided in this comment from tahi.org
    3) Patch with the patch provided in the blog
    4) make clean & make install
    5) you are ready to go!

  4. I see you don’t monetize cavanaugh.pro, don’t waste your traffic, you can earn additional bucks every month with new monetization method.
    This is the best adsense alternative for any type of website (they approve all websites), for more details
    simply search in gooogle: murgrabia’s tools

Leave a Reply to jerinjoseph Cancel reply

Your email address will not be published. Required fields are marked *

*