portmap: Fails to find local interfaces on GNU/kFreeBSD
Hi!
It might be due to (snippet from Makefile):
# When the portmapper cannot find any local interfaces (it will complain
# to the syslog daemon) your system probably has variable-length socket
# address structures (struct sockaddr has a sa_len component; examples:
# AIX 4.1 and 4.4BSD). Uncomment next macro definition in that case.
#
# CPPFLAGS += -DHAS_SA_LEN # AIX 4.x, BSD 4.4, FreeBSD, NetBSD
Under GNU/kFreeBSD "struct sockaddr" definitely has a "sa_len" component.
The patch bellow might fix it.
I am unable to test it during this weekend,
Andrea, please, could you test proposed patch.
Petr
--- debian/rules
+++ debian/rules
@@ -9,10 +9,16 @@
# This is the debhelper compatability version to use.
export DH_COMPAT=5
+DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
+
build: build-stamp
build-stamp:
dh_testdir
+ifeq (kfreeebsd,$(DEB_HOST_ARCH_OS))
+ CPPFLAGS=-DHAS_SA_LEN $(MAKE)
+else
$(MAKE)
+endif
touch build-stamp
clean:
Reply to: