[Debian-iot-maintainers] Bug#829623: libcoap: FTBFS on non-Linux: unsupported operating system
Carsten Schoenert
c.schoenert at t-online.de
Tue Jul 5 15:01:06 UTC 2016
Control: tags 829623 help
Control: severity 829623 normal
Hello Aron,
On Mon, Jul 04, 2016 at 03:11:21PM -0400, Aaron M. Ucko wrote:
> Source: libcoap
> Version: 4.1.2~rc+git20160626-1
> Severity: important
> Justification: fails to build from source
>
> Builds of libcoap for kFreeBSD and the Hurd have been failing with
> errors along the lines of
>
> checking operating system... configure: WARNING: ==> Currently unsupported operating system x86_64-pc-kfreebsd-gnu!
> configure: error: ==> If you can provide patches to support your operating system please write to 'libcoap-developers at lists.sourceforge.net'.
>
> Please either implement support for these architectures (bearing in
> mind that they still use GNU libc) or adjust the package's overall
> Architecture setting to linux-any.
as kfreebsd* is not a RC platform I won't implement any support in a near
time. If you can came up the patches that would be fine.
It's probably easy to add a needed instruction into libcoap configure.ac
script.
I normaly don't have any kfreebsd machines so it's up to the users to
help maintaining such packages. Maybe you simply can check the following
changes to the configure.ac script? Also the additional flags must adopted.
git diff configure.ac
diff --git a/configure.ac b/configure.ac
index 6354fcf..a76c130 100644
--- a/configure.ac
+++ b/configure.ac
@@ -301,6 +301,11 @@ case $host in
#AC_SUBST(OS_LINUX)
;;
+ *kfreebsd*)
+ AC_MSG_RESULT([kfreeBSD])
+ ADDITIONAL_CFLAGS="-D_GNU_SOURCE -DWITH_POSIX"
+ ;;
+
*-solaris*)
AC_MSG_RESULT([Solaris])
# set _XOPEN_SOURCE and _XOPEN_SOURCE_EXTENDED to enable XPG4v2 (POSIX 2004)
Regards
Carsten
More information about the Debian-iot-maintainers
mailing list