Package: arj
Version: 3.10.22-6
Severity: wishlist
Tags: patch
Hi,
thanks for maintaining arj.
During Ubuntu's rebuild tests, arj failed to build, see [1]. This is caused
by a local strnlen definition in far.c which collides with the one from
eglibc.
Unstable is not affected, hence marking as wishlist, but experimental also
has the newer eglibc with the colliding definition.
The attached patch should fix this.
Cheers,
Stefan.
[1]:
<https://edge.launchpad.net/ubuntu/+archive/test-rebuild-20090909/+build/1210616/+files/buildlog_ubuntu-karmic-amd64.arj_3.10.22-6_FAILEDTOBUILD.txt.gz>
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.30-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages arj depends on:
ii libc6 2.9-26 GNU C Library: Shared libraries
arj recommends no packages.
arj suggests no packages.
-- no debconf information
--- arj-3.10.22.orig/fardata.c
+++ arj-3.10.22/fardata.c
@@ -190,6 +190,7 @@
/* Length-limited strlen() */
+#if !defined _GNU_SOURCE && !defined __USE_XOPEN2K8
static int strnlen(const char FAR *s, int count)
{
const char FAR *sc;
@@ -198,6 +199,7 @@
;
return(sc-s);
}
+#endif /* _GNU_SOURCE and __USE_XOPEN2K8 not defined */
/* Hex representation of digits */