GNU bug report logs - #13495
Compilation fails on Mac OS X 10.8.0

Previous Next

Package: coreutils;

Reported by: Assaf Gordon <assafgordon <at> gmail.com>

Date: Fri, 18 Jan 2013 22:34:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Assaf Gordon <assafgordon <at> gmail.com>
To: Paul Eggert <eggert <at> cs.ucla.edu>, 13495 <at> debbugs.gnu.org
Subject: bug#13495: Compilation fails on Mac OS X 10.8.0
Date: Mon, 21 Jan 2013 14:39:40 -0500
On 01/20/13 00:15, Paul Eggert wrote:
> On 01/19/2013 08:07 PM, Assaf Gordon wrote:
>> Which looks like some macro expansion, but I couldn't find the declaration of this macro.
>
> Does something like the following patch fix things for you?
>
> diff --git a/lib/stpncpy.c b/lib/stpncpy.c
> index 466cd5f..8b14fb9 100644
> --- a/lib/stpncpy.c
> +++ b/lib/stpncpy.c
> @@ -31,7 +31,7 @@
>   /* Copy no more than N bytes of SRC to DST, returning a pointer past the
>      last non-NUL byte written into DST.  */
>   char *
> -__stpncpy (char *dest, const char *src, size_t n)
> +(__stpncpy) (char *dest, const char *src, size_t n)
>   {
>     char c;
>     char *s = dest;
>

Yes.
This fixes the problem. Compilation succeeds with both gcc and clang.

Thank you!
 -gordon





This bug report was last modified 12 years and 113 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.