[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gftp: FTBFS on hurd-i386: fatal error: stropts.h: No such file or direct
From: |
hahawang |
Subject: |
gftp: FTBFS on hurd-i386: fatal error: stropts.h: No such file or directory |
Date: |
Sun, 9 May 2021 21:56:58 +0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 |
Package: gftp
Severity: important
Version: 2.7.0b-1
Tags: ftbfs,patch
User:hahawang
Usertags: hurd,hurd-i386
X-Debbugs-CC:debian-hurd@lists.debian.org,bug-hurd@gnu.org
I decide to fix a broken package found at the recommended
page(https://people.debian.org/~sthibault/out_of_date.txt)named `gftp`.
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.
```
pty.c:64:10: fatal error: stropts.h: No such file or directory
64 | #include <stropts.h>
| ^~~~~~~~~~~
compilation terminated.
```
So that I decide to check the source code and find the following line:
```
#if !(defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__)
|| defined(__linux__))
#include <stropts.h>
#endif
```
Obviously, the GNU Hurd also haven't the `stropt.h`, so It is better to
add a check of GNU-hurd at this line. By following the document
available at https://sourceforge.net/p/predef/wiki/OperatingSystems/,
I have fixed the build failure, patches avaiable at the end of this email.
Although, IMHO it's trivial, so I decide to report this bug along with a
patch directly to the debian bug tracking system, but also hopes for
your advises and reviews!
Thank you!
---
hahawang
--- a/lib/pty.c
+++ b/lib/pty.c
@@ -60,7 +60,7 @@
#elif HAVE_GRANTPT
-#if !(defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__)
|| defined(__linux__))
+#if !(defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__)
|| defined(__linux__) || defined(__gnu_hurd__))
#include <stropts.h>
#endif
- gftp: FTBFS on hurd-i386: fatal error: stropts.h: No such file or directory,
hahawang <=