Bug#766631: FTBFS ppc64el: Remove deprecated SVID_SOURCE

Breno Leitao leitao at linux.vnet.ibm.com
Fri Oct 24 14:05:54 UTC 2014


Package: turnserver
Version: 0.7.3-2
Severity: critical
Tags: patch

At the moment, turnserver doesn't build on ppc64el platform with the following
error:

In file included from tls_peer.c:72:0:
/usr/include/netinet/tcp.h:89:11: error: duplicate member 'th_off'
  u_int8_t th_off:4;  /* data offset */
           ^
/usr/include/netinet/tcp.h:90:11: error: duplicate member 'th_x2'
  u_int8_t th_x2:4;  /* (unused) */

https://buildd.debian.org/status/fetch.php?pkg=turnserver&arch=ppc64el&ver=0.7.3-2&stamp=1410498176

That is because both path of the following are being executed:

 # if __BYTE_ORDER == __BIG_ENDIAN
         u_int8_t th_off:4;              /* data offset */
         u_int8_t th_x2:4;               /* (unused) */
 # endif
 # if __BYTE_ORDER == __LITTLE_ENDIAN
         u_int8_t th_x2:4;               /* (unused) */
         u_int8_t th_off:4;              /* data offset */
 # endif

This is because SVID_SOURCE is being used, and it is deprecated. The proper way
is to use _DEFAULT_SOURCE, which fixes the problem above.

Thanks
Breno
-------------- next part --------------
A non-text attachment was scrubbed...
Name: remove_deprecated_SVID_SOURCE.patch
Type: text/x-diff
Size: 990 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-voip-maintainers/attachments/20141024/0e7c2020/attachment.patch>


More information about the Pkg-voip-maintainers mailing list