[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

portmap: Fails to find local interfaces on GNU/kFreeBSD


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.


--- 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
+ifeq (kfreeebsd,$(DEB_HOST_ARCH_OS))
        touch build-stamp


Reply to: