fln / addrwatch

A tool similar to arpwatch for IPv4/IPv6 and ethernet address pairing monitoring.
GNU General Public License v3.0
184 stars 30 forks source link

portability (non-glibc systems) #6

Closed gretel closed 7 years ago

gretel commented 7 years ago
$ uname
OpenBSD

...

checking for library containing argp_parse... no
configure: error: Your libc is missing argp_parse funcion. If you are not using GNU libc you can use argp-standalone package.

https://www.gnu.org/software/gnulib/manual/html_node/argp_005fparse.html

Portability problems not fixed by Gnulib:

This function is missing on all non-glibc platforms: Mac OS X 10.5, FreeBSD 6.0, NetBSD 5.0, OpenBSD 3.8, Minix 3.1.8, AIX 5.1, HP-UX 11, IRIX 6.5, OSF/1 5.1, Solaris 11 2011-11, Cygwin, mingw, MSVC 9, Interix 3.5, BeOS.
fln commented 7 years ago

Hi, thanks for reporting.

For OpenBSD systems you could use a stand alone argp library from argp-standalone package. Experimenting with OpenBSD I have discovered that v1.0.0 release does not build because of some linux specific includes. Issues are fixed in new v1.0.1 release.

Example for compiling on OpenBSD:

wget https://github.com/fln/addrwatch/releases/download/v1.0.1/addrwatch-1.0.1.tar.gz
tar xzf addrwatch-1.0.1.tar.gz
cd addrwatch-1.0.1
pkg_add argp-standalone
./configure LDFLAGS="-L/usr/local/lib" CPPFLAGS="-I/usr/local/include"
make
./src/addrwatch        # start the application