NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/39603 postfix doesn't see all "active" network interfaces
The following reply was made to PR bin/39603; it has been noted by GNATS.
From: Rin Okuyama <okuyama%flex.phys.tohoku.ac.jp@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: bin/39603 postfix doesn't see all "active" network interfaces
Date: Mon, 22 Jun 2015 16:53:13 +0900
Dear All,
This problem occurs even in NetBSD 7.99.19, but I've found a solution.
You can repeat the problem to build postfix with MKINET6=no:
# cd /usr/src/external/ibm-public/postfix
# make MKINET6=no
# make MKINET6=no DESTDIR= install
# /etc/rc.d/postfix start
Then, it fails to start with following messages:
/usr/sbin/postconf: fatal: could not find any active network interfaces
postfix: fatal: could not find any active network interfaces
This is because postfix assumes that getifaddrs(3) is absent when IPv6
is not supported. Therefore, it fails to detect network interfaces.
To fix this, apply a patch below: define HAVE_GETIFADDRS regardless of
IPv6 support, which works fine for me. Note that this change has also
affects on other systems than NetBSD. It might be better to check
__NetBSD__ macro before defining HAVE_GETIFADDRS, though I guess that
getifaddrs(3) has nothing to do with IPv6 in other systems too.
All the best,
Rin Okuyama
--- external/ibm-public/postfix/dist/src/util/sys_defs.h.orig 2015-06-22
15:30:14.000000000 +0900
+++ external/ibm-public/postfix/dist/src/util/sys_defs.h 2015-06-22
15:36:21.000000000 +0900
@@ -181,9 +181,10 @@
|| (defined(OpenBSD) && OpenBSD >= 200003) \
|| defined(__DragonFly__) \
|| defined(USAGI_LIBINET6)
+#define HAVE_GETIFADDRS
+
#ifndef NO_IPV6
# define HAS_IPV6
-# define HAVE_GETIFADDRS
#endif
#if (defined(__FreeBSD_version) && __FreeBSD_version >= 300000) \
Home |
Main Index |
Thread Index |
Old Index