Package: openbsd-inetd
Version: 0.20050402-3
Severity: important
Tags: patch

Hi,

your package failed to autobuild:

Automatic build of openbsd-inetd_0.20050402-3 on beethoven by sbuild/hurd-i386 
85
Build started at 20061017-2307
******************************************************************************
Checking available source versions...
Fetching source files...
Reading package lists...
Building dependency tree...
Need to get 40.6kB of source archives.
Get:1 http://ftp2.de.debian.org unstable/main openbsd-inetd 0.20050402-3 (dsc) 
[607B]
Get:2 http://ftp2.de.debian.org unstable/main openbsd-inetd 0.20050402-3 (tar) 
[26.7kB]
Get:3 http://ftp2.de.debian.org unstable/main openbsd-inetd 0.20050402-3 (diff) 
[13.3kB]
[...]
Checking correctness of source dependencies...
Toolchain package versions: libc0.3-dev_2.3.6.ds1-5 gcc-4.1_4.1.1-13 
g++-4.1_4.1.1-13 binutils_2.17-2 libstdc++6-4.1-dev_4.1.1-13 libstdc++6_4.1.1-13
------------------------------------------------------------------------------
gpg: Signature made Sun Oct  1 23:15:45 2006 CEST using DSA key ID E1EE3FB1
gpg: Can't check signature: public key not found
dpkg-source: extracting openbsd-inetd in openbsd-inetd-0.20050402
dpkg-source: unpacking openbsd-inetd_0.20050402.orig.tar.gz
dpkg-source: applying /org/buildd/build/openbsd-inetd_0.20050402-3.diff.gz
dpkg-buildpackage: source package is openbsd-inetd
dpkg-buildpackage: source version is 0.20050402-3
dpkg-buildpackage: host architecture hurd-i386
dpkg-buildpackage: source version without epoch 0.20050402-3
 /usr/bin/fakeroot-tcp debian/rules clean
dh_testdir
rm -f build
/usr/bin/make -f Makefile.debian clean
make[1]: Entering directory `/build/buildd/openbsd-inetd-0.20050402'
rm -f inetd inetd.o setproctitle.o strlcpy.o
make[1]: Leaving directory `/build/buildd/openbsd-inetd-0.20050402'
dh_clean
 debian/rules build
dh_testdir
/usr/bin/make -f Makefile.debian
make[1]: Entering directory `/build/buildd/openbsd-inetd-0.20050402'
gcc -O2 -g -DLIBWRAP -c inetd.c
inetd.c: In function 'setup':
inetd.c:1047: error: 'IPV6_V6ONLY' undeclared (first use in this function)
inetd.c:1047: error: (Each undeclared identifier is reported only once
inetd.c:1047: error: for each function it appears in.)
make[1]: *** [inetd.o] Error 1
make[1]: Leaving directory `/build/buildd/openbsd-inetd-0.20050402'
make: *** [build] Error 2

The attached patch by Barry deFreese and Olaf Buddenhagen fixes this.


cheers,

Michael
diff -Nru /tmp/SOGLoaSDQy/openbsd-inetd-0.20050402/inetd.c 
/tmp/uwUZL6kCt1/openbsd-inetd-0.20050402/inetd.c
--- /tmp/SOGLoaSDQy/openbsd-inetd-0.20050402/inetd.c    2006-09-15 
10:25:56.000000000 +0000
+++ /tmp/uwUZL6kCt1/openbsd-inetd-0.20050402/inetd.c    2006-09-15 
10:25:57.000000000 +0000
@@ -1043,6 +1043,7 @@
        if (strncmp(sep->se_proto, "tcp", 3) == 0 && (options & SO_DEBUG) &&
            turnon(sep->se_fd, SO_DEBUG) < 0)
                syslog(LOG_ERR, "setsockopt (SO_DEBUG): %m");
+#if defined(IPPROTO_IPV6) && defined(IPV6_V6ONLY)
        else if (strncmp(sep->se_proto, "tcp6", 4) == 0) {
                if (setsockopt(sep->se_fd, IPPROTO_IPV6, IPV6_V6ONLY, &on,
                            sizeof (on)) < 0)
@@ -1053,6 +1054,7 @@
                            sizeof (off)) < 0)
                        syslog(LOG_ERR, "setsockopt (IPV6_V6ONLY): %m");
        }
+#endif
        if (turnon(sep->se_fd, SO_REUSEADDR) < 0)
                syslog(LOG_ERR, "setsockopt (SO_REUSEADDR): %m");
 #undef turnon

Reply via email to