bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Build errors on IRIX 5.3 - ffsl


From: Bruno Haible
Subject: Re: Build errors on IRIX 5.3 - ffsl
Date: Mon, 31 Oct 2011 02:09:06 +0100
User-agent: KMail/1.13.6 (Linux/2.6.37.6-0.5-desktop; KDE/4.6.0; x86_64; ; )

Hello,

Tom G. Christensen wrote:
>          gcc -DHAVE_CONFIG_H -DEXEEXT=\"\" -DEXEEXT=\"\" -DNO_XMALLOC 
> -DEXEEXT=\"\" -I. -I..  -DGNULIB_STRICT_CHECKING=1 -I../intl -I/usr/
> tgcware/include  -g -O2 -MT ffsl.o -MD -MP -MF $depbase.Tpo -c -o ffsl.o 
> ffsl.c &&\
>          mv -f $depbase.Tpo $depbase.Po
> In file included from ffsl.h:22,
>                   from ffsl.c:4:
> ./string.h:482: error: syntax error before "__dest"
> ./string.h:560: error: syntax error before "__dst"
> ./string.h:592: error: syntax error before "__dst"
> ./string.h:854: error: syntax error before "__stringp"
> make[4]: *** [ffsl.o] Error 1
> depbase=`echo ffsll.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
>          gcc -DHAVE_CONFIG_H -DEXEEXT=\"\" -DEXEEXT=\"\" -DNO_XMALLOC 
> -DEXEEXT=\"\" -I. -I..  -DGNULIB_STRICT_CHECKING=1 -I../intl -I/usr/
> tgcware/include  -g -O2 -MT ffsll.o -MD -MP -MF $depbase.Tpo -c -o 
> ffsll.o ffsll.c &&\
>          mv -f $depbase.Tpo $depbase.Po
> In file included from ffsl.h:22,
>                   from ffsll.c:4:
> ./string.h:482: error: syntax error before "__dest"
> ./string.h:560: error: syntax error before "__dst"
> ./string.h:592: error: syntax error before "__dst"
> ./string.h:854: error: syntax error before "__stringp"
> make[4]: *** [ffsll.o] Error 1
> 
> Those two errors are fixed by adding #include <config.h> to ffsl.h.

Yes. The cause was a missing definition for 'restrict'. Applied as follows.
Thanks.


2011-10-30  Bruno Haible  <address@hidden>

        ffsl, ffsll: Avoid compilation error due to 'restrict'.
        * lib/ffsl.h: Include <config.h>.
        Suggested by Tom G. Christensen <address@hidden>.

--- lib/ffsl.h.orig     Mon Oct 31 02:06:02 2011
+++ lib/ffsl.h  Mon Oct 31 02:03:11 2011
@@ -19,6 +19,9 @@
 /* This file is meant to be included by ffsl.c and ffsll.c, after
    they have defined FUNC and TYPE.  */
 
+#include <config.h>
+
+/* Specification.  */
 #include <string.h>
 
 #include <limits.h>
-- 
In memoriam Bernhard Schwentner 
<http://en.wikipedia.org/wiki/Bernhard_Schwentner>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]