Compiling inavd server on FreeBSD

October 14, 2008

Just a short post, working through some of the modules I received, I ran into the inav module. Turns out that inavd doesn’t compile very nicely on FreeBSD, so I patched it. Previously when trying to compile you get:

c++ -ggdb -g3 -D INAV_VERSION= -c sniffer.cpp
In file included from sniffer.cpp:34:
/usr/include/netinet/ip.h:162: error: 'n_long' does not name a type
/usr/include/netinet/ip.h:165: error: 'n_long' does not name a type
*** Error code 1

So, download the inav-server-0.3.6-freebsd.patch into the directory where you untarred the server and issue the following commands:

cd <dir where you untarred INAV tarball>
patch -p1 < inav-server-0.3.6-freebsd.patch
cd server
make

Right now, the patch is very unclean and making the unitTests doesn’t work, but it does compile inavd and allow you to run the server on FreeBSD, enjoy!

tags: , , , ,
posted in Uncategorized by Lee

1 Comment to "Compiling inavd server on FreeBSD"

  1. chad wrote:

    Seems like an alternative to Tele Traffic Tapper (which doesn’t compile on Mac OS X, though).

    http://www.sonycsl.co.jp/person/kjc/kjc/software.html

    Thanks for sharing!

 
Powered by Wordpress and MySQL. Theme by Shlomi Noach, openark.org