Your message dated Mon, 8 Dec 2025 12:15:32 +0000
with message-id <[email protected]>
and subject line libtorrent/Hurd seems to have been fixed for a while?
has caused the Debian Bug report #988076,
regarding libtorrent: FTBFS on hurd-i386: error: 'IPV6_TCLASS' was not declared 
in this scope.
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
988076: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=988076
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libtorrent
Severity: important
Version: 0.13.8-2
Tags: patch
User:hahwang
Usertags: hurd


I decide to fix a broken package found at the recommended page https://people.debian.org/~sthibault/out_of_date2.txt named `libtorrent`.

      After I download the package source and try to build without any modifications under the debian hurd running in qemu (debian-hurd-20210219.img),  I got the following error.

      ```
   socket_fd.cc: In member function 'bool torrent::SocketFd::set_priority(torrent::SocketFd::priority_type)':    socket_fd.cc:78:43: error: 'IPV6_TCLASS' was not declared in this scope; did you mean 'IPOPT_CLASS'?
    ```

   and it matches with what that page said.

To fix this bug, thanks to the help of people at debian-hurd & bug-hurd mailing list,  I decide to block the usage of the `IPV6_TCLASS` when it is not defined.

Hope for reviews! The patch is attached at the end of this mail.

Thank you!

---
hahawang

--- a/src/net/socket_fd.cc
+++ b/src/net/socket_fd.cc
@@ -71,7 +71,11 @@
   int opt = p;

   if (m_ipv6_socket)
+#ifdef IPV6_TCLASS
     return setsockopt(m_fd, IPPROTO_IPV6, IPV6_TCLASS, &opt, sizeof(opt)) == 0;
+#else
+    return false;
+#endif
   else
     return setsockopt(m_fd, IPPROTO_IP, IP_TOS, &opt, sizeof(opt)) == 0;
 }

--- End Message ---
--- Begin Message ---
Version: 0.13.8-2.1

AFAICT from:

https://buildd.debian.org/status/logs.php?pkg=libtorrent&arch=hurd-amd64

libtorrent built just fine on hurd for 0.13.8-2.1 last year? It also doesn't appear in:

https://people.debian.org/~sthibault/out_of_date2.txt

any more. So closing this out as seemingly fixed.

J.

--
Know Thy User.

--- End Message ---

Reply via email to