Your message dated Sun, 29 May 2016 11:27:02 +0000
with message-id <[email protected]>
and subject line Bug#820155: fixed in kannel 1.4.4-3
has caused the Debian Bug report #820155,
regarding kannel: FTBFS[!linux]: FTW_PHYS undeclared, etc.
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.)


-- 
820155: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=820155
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: kannel
Version: 1.4.4-2
Severity: important
Tags: patch
User: [email protected]
Usertags: kfreebsd

Hi,

kannel stopped building on kfreebsd, and one of the problems is:

utils/start-stop-daemon.c:94:2: error: #error Unknown architecture - cannot 
build start-stop-daemon

The attached 35_kfreebsd.patch uses the __FreeBSD_kernel__ macro to
detect platforms based on the FreeBSD kernel, besides FreeBSD itself.


The next problem is the same as seen on hurd-i386:

| gcc -D_REENTRANT=1 -I. -Igw -g -O2 -fstack-protector-strong -Wformat 
-Werror=format-security -Wall -D_LARGE_FILES= -I/usr/include/libxml2  -Wall 
-Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wformat 
-Wformat-security -Wmissing-format-attribute -I/usr/include 
-I/usr/include/mysql -I/usr/include/postgresql -I/usr/include/hiredis 
-I/usr/include -o gw/dlr_spool.o -c gw/dlr_spool.c
| ...
| gw/dlr_spool.c:254:86: error: ‘FTW_PHYS’ undeclared (first use in this 
function)

To get that definition (from ftw.h) requires _XOPEN_SOURCE>=500 and
_XOPEN_SOURCE_EXTENDED.  Later, to get pthread_rwlock_t requires
_POSIX_C_SOURCE >= 200112L...

test/test_file_traversal.c has the same bug and requires
_XOPEN_SOURCE>=500 and __USE_MISC...

A nice shorthand might be to define _GNU_SOURCE which includes all of
those and its presence shouldn't break any non-GNU platforms.

Finally there is this warning in gw/smsc/http/clickatell.c:

| gcc -D_REENTRANT=1 -I. -Igw -g -O2 -fstack-protector-strong -Wformat 
-Werror=format-security -Wall -D_LARGE_FILES= -I/usr/include/libxml2  -Wall 
-Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wformat 
-Wformat-security -Wmissing-format-attribute -I/usr/include 
-I/usr/include/mysql -I/usr/include/postgresql -I/usr/include/hiredis 
-I/usr/include -o gw/smsc/smsc_http.o -c gw/smsc/smsc_http.c
| In file included from gw/smsc/smsc_http.c:864:0:
| gw/smsc/http/clickatell.c: In function ‘clickatell_receive_sms’:
| gw/smsc/http/clickatell.c:235:9: warning: implicit declaration of function 
‘strptime’ [-Wimplicit-function-declaration]

which can also be fixed by defining _GNU_SOURCE.

The attached 36_nonlinux.patch has all of that.  I tested only that it
builds on kfreebsd-amd64 sid, but hopefully it fixes hurd builds too.

Thanks!

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 10.1-0-amd64
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Date: Tue, 05 Apr 2016 22:00:19 +0100
From: Steven Chamberlain <[email protected]>
Subject: support GNU/kFreeBSD using FreeBSD code

--- a/utils/start-stop-daemon.c
+++ b/utils/start-stop-daemon.c
@@ -88,7 +88,7 @@
 #define OSHURD
 #elif defined(SunOS)
 #elif defined(__CYGWIN__)
-#elif defined(__FreeBSD__) || defined(__APPLE__)
+#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__APPLE__)
 #define FreeBSD
 #else
 #error Unknown architecture - cannot build start-stop-daemon
--- a/gw/smsc/http/clickatell.c
+++ b/gw/smsc/http/clickatell.c
@@ -61,6 +61,8 @@
  * Stipe Tolj <[email protected]>, <[email protected]>
  */
 
+#define _GNU_SOURCE
+
 #include "gwlib/gwlib.h"
 
 
Date: Tue, 05 Apr 2016 23:08:31 +0100
From: Steven Chamberlain <[email protected]>
Subject: Define _GNU_SOURCE to use X/Open features

Define _GNU_SOURCE to get nftw() macros (XOPEN_SOURCE_EXTENDED)
strptime() (XOPEN_SOURCE), pthread_lock_t (POSIX.1-2001) and others.

--- a/gw/dlr_spool.c
+++ b/gw/dlr_spool.c
@@ -64,6 +64,8 @@
  * Stipe Tolj <stolj at kannel dot org>
  */
 
+#define _GNU_SOURCE
+
 #include <unistd.h>
 #include <sys/types.h>
 #include <sys/stat.h>
--- a/gw/smsc/smsc_http.c
+++ b/gw/smsc/smsc_http.c
@@ -111,6 +111,8 @@
  * Tobias Weber <[email protected]>
  */
 
+#define _GNU_SOURCE
+
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <unistd.h>
--- a/test/test_file_traversal.c
+++ b/test/test_file_traversal.c
@@ -58,6 +58,8 @@
  * test_file_traversal.c - simple file traversal testing
  */
 
+#define _GNU_SOURCE
+
 #include <unistd.h>
 #include <sys/types.h>
 #include <sys/stat.h>

--- End Message ---
--- Begin Message ---
Source: kannel
Source-Version: 1.4.4-3

We believe that the bug you reported is fixed in the latest version of
kannel, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jonas Smedegaard <[email protected]> (supplier of updated kannel package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sun, 29 May 2016 12:43:33 +0200
Source: kannel
Binary: kannel kannel-extras kannel-docs kannel-dev
Architecture: source amd64 all
Version: 1.4.4-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Kannel maintainers <[email protected]>
Changed-By: Jonas Smedegaard <[email protected]>
Description:
 kannel     - WAP and SMS gateway
 kannel-dev - WAP and SMS gateway headers and development files
 kannel-docs - WAP and SMS gateway documentation
 kannel-extras - WAP and SMS gateway extras
Closes: 820155
Changes:
 kannel (1.4.4-3) unstable; urgency=medium
 .
   * Add patches 35-36 to fix FTBFS on GNU/kFreeBSD.
     Closes: Bug#820155. Thanks to Steven Chamberlain.
   * Add patch 37 to define _DEFAULT_SOURCE (not _VSD_SOURCE or
     _SVID_SOURCE).
   * Fix build-depend on gnulib: Needed for CDBS modernizing config.rpath
     during build.
   * Recreate autotools during build. Build-depend on dh-autoreconf.
   * Add patch 38 to remove soap/Makefile in distclean target.
Checksums-Sha1:
 601a80139961b4316538c8638ee952e4b523ae8b 2402 kannel_1.4.4-3.dsc
 6ebebf7902e6776e537fba639fb716c4f14aba8a 13132 kannel_1.4.4-3.debian.tar.xz
 d46225fdf20b2d7b1ce12896349a3774df122d97 3046694 
kannel-dbgsym_1.4.4-3_amd64.deb
 231d97e87e0eb59ee750fe13096fb9fa59566f3d 760682 kannel-dev_1.4.4-3_amd64.deb
 2f599084c18c0b06f1416a1b41dfe146c3422948 4029812 kannel-docs_1.4.4-3_all.deb
 1675bad69a5f3e22c5d9030b250a588e9f0ddf4b 13230114 
kannel-extras-dbgsym_1.4.4-3_amd64.deb
 85e7d196294138cf84a8456864a89ccdc102f2c0 1640424 
kannel-extras_1.4.4-3_amd64.deb
 7ec30b27ee8e0033d76e8a6f33cbc3d9652da901 779772 kannel_1.4.4-3_amd64.deb
Checksums-Sha256:
 41523fe876e117019eabb4623f923cce0c90ccb4833cae5b35d2eb5b63ca68f1 2402 
kannel_1.4.4-3.dsc
 b8238a257d6f17f5976f9ecb9f5a1e1eef36e6776e67ee9e9cad34f82cd7eabf 13132 
kannel_1.4.4-3.debian.tar.xz
 f543d0f3e2578874bb2ee9ca081b1ac901499b8ddd8b9f5b6f64455fd3439d63 3046694 
kannel-dbgsym_1.4.4-3_amd64.deb
 a3681ee0425c41e7a79ba4bf3b7392c4b9c0978565a325fcfb29ae33d8a0d2a7 760682 
kannel-dev_1.4.4-3_amd64.deb
 a79dc2e7c9082648cc53f65873079b4ef0cc21cb6cf3a84a930a59a3c9b73d93 4029812 
kannel-docs_1.4.4-3_all.deb
 a657f50ae022b6fdee94feaa253d1339a3d499357ebdb87970dc638c386b911b 13230114 
kannel-extras-dbgsym_1.4.4-3_amd64.deb
 808ce56c176a5280fe50b26cce161f56d43ee9be3caf6c2c6f67e61dfdc18116 1640424 
kannel-extras_1.4.4-3_amd64.deb
 2e5f9a662d01b918ec2745cdcaea9d41fb3fceb170aefe49a97efea1743ec27a 779772 
kannel_1.4.4-3_amd64.deb
Files:
 c2ce57d3ab1abbd42515ba855d8c5b54 2402 net optional kannel_1.4.4-3.dsc
 c14078220151a66ddd76fac98b0074b2 13132 net optional 
kannel_1.4.4-3.debian.tar.xz
 4fdddccf0f0cdf506ac5a0c6f825f73b 3046694 debug extra 
kannel-dbgsym_1.4.4-3_amd64.deb
 d4162f2747f9537dcee8ab1048c5a0ec 760682 devel optional 
kannel-dev_1.4.4-3_amd64.deb
 10f3c59488f6be4dbd13249f4d62a348 4029812 doc optional 
kannel-docs_1.4.4-3_all.deb
 49abe82cea7401e851ef360afc0f5410 13230114 debug extra 
kannel-extras-dbgsym_1.4.4-3_amd64.deb
 cc01be2ef736589ec7476f97c28a940b 1640424 net optional 
kannel-extras_1.4.4-3_amd64.deb
 913e8686e78a4c7bec02ba90d2d548d9 779772 net optional kannel_1.4.4-3_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJXSs+zAAoJECx8MUbBoAEhnsMP/04iWQeHBzAV00Ayp+RoiIJC
Cm9kVCQXDNsH13P5Es+Oc8QlWlTlTI0JnIpZksDY7UW538Cw9MhGzX06d5ZBteuz
6EC54UXK/yOdacau5nTnxlmf4N6/k7eLZlxf3WzHw8SZ8oC7ZYS07BEkb+cZylF0
bWPQNJMD5wwV/yqf8ySp/830h0meWB6bo4jm3X2chm9jLSAjZ2uQFlI/QsDZp9de
ddx2kPEIBdhzemwa7LfNEdoH/vTrp9pl2ERuGJ8oCt5WBz1laIbSD5Ytjdp2Zqs2
uNwrXZ5G8YSBoFjHXAH0T5YdwV5kljGYv0zOnXKoqAf0ba+MFHPCkk3WYEUJUVEZ
BRhrzFqCGnttgZVgT5AVRxyTpXsMsInT3QkWZXu9menuHHF+ItrPKOcpE9dlJ2+s
I5mqsKOHjz5OPWvsfv81Zu88oCEgYbfB/onhJ9rxTpDKS3tUFyzNcR0Z3ImITzKq
M7pNh5WJw2reeB0QL0blmDgDq0W+zmhQqZ704vYrfPFov2MPdTuK2OYeCHy4SDcm
c8vLOPYzNiD1/8/dYRDY0d4KF8XXizVqp1LzfvNE+anXOkF2XZhlup8Vzp8OCrJ2
J8FlIlvB51f1V3rbJj+XJp36qULsdJrosE6sQojVvuGgWgrBWflvsaL1fY964PfD
7ZHaxFR8q0E6fCBoCPk0
=RZUu
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to