reassign 807349 publib-dev 0.40-1
thanks
Chris Lamb writes:
> Source: dwww
> Version: 1.12.1
>
> Dear Maintainer,
>
> dwww fails to build from source in unstable/amd64:
>
> [..]
> /usr/include/publib/strutil.h:67:7: error: expected identifier or '('
> before '__extension__'
> char *strndup(const char *, size_t);
Hi,
I think the problem lies in publib-dev that declares strndup, which now
is a macro, see the following clang diagnostics:
In file included from /usr/include/publib.h:51:
/usr/include/publib/strutil.h:67:7: error: expected identifier or '('
char *strndup(const char *, size_t);
^
/usr/include/i386-linux-gnu/bits/string2.h:1319:26: note: expanded from
macro 'strndup'
# define strndup(s, n) __strndup (s, n)
^
/usr/include/i386-linux-gnu/bits/string2.h:1300:4: note: expanded from
macro '__strndup'
(__extension__ (__builtin_constant_p (s) && __string2_1bptr_p (s) \
^
The more general issue in publib is that it uses names reserved by the
GNU C library, let me quote
http://www.gnu.org/software/libc/manual/html_node/Reserved-Names.html"
"Names beginning with ‘str’, ‘mem’, or ‘wcs’ followed by a lowercase
letter are reserved for additional string and array functions. See
String and Array Utilities."
Regards,
robert