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

FreeBSD compatibility #19

Closed mimugmail closed 4 years ago

mimugmail commented 4 years ago

Hi,

I'm trying to compile this software on FreeBSD and it seems to work fine with some workaround:

./configure LDFLAGS="-L/usr/local/lib" CPPFLAGS="-I/usr/local/include"

But after make && make install and executing addrwatch I get:

root@build:/usr/ports/net/addrwatch/work/addrwatch-86e9ec5 # /usr/local/test/bin/addrwatch -v em0 addrwatch: DEBUG: Duplicate entries ratelimiting disabled addrwatch: DEBUG: PROMISC mode enabled addrwatch: DEBUG: Opened interface em0 (Ethernet) addrwatch: ERR: Error creating shared memory

Is there a known limitation for FreeBSD?

fln commented 4 years ago

Hi,

This package was not tested for compatibility with FreeBSD. It seems the issue is caused by the FreeBSD restriction on shared memory segment names. FreeBSD requires it to start with / symbol.

A quick fix for this issue pushed to the master. Please check if release 59a075e works for you.

mimugmail commented 4 years ago

Thanks! I added a PR for adding it to FreeBSD ports: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244359