bug-gnulib
[Top][All Lists]
Advanced

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

Re: Compilation error in glob.c with gcc 4.8


From: Reuben Thomas
Subject: Re: Compilation error in glob.c with gcc 4.8
Date: Sat, 18 Aug 2018 22:29:18 +0100

On 18 August 2018 at 22:22, Reuben Thomas <address@hidden> wrote:
On 18 August 2018 at 21:45, Bruno Haible <address@hidden> wrote:
Reuben Thomas wrote:
> This makes the build break again because of the problem I reported in
> glob_pattern_p.c (see my patch for it).

Ah, I see. The macro 'weak_alias' apparently needs libc-config.h as well.

Yes. I assumed that "config.h" was a typo here, because the #ifndef _LIBC block seems to be fairly common in gnulib.

I now get the same error, but with globfree.c. I am not sure why I didn't need this in my patches…

OK, globfree.c should already have seen libc-config.h via glob.h, so I don't see why it's *not* working.

The precise error I get:

../../lib/globfree.c:40:1: warning: return type defaults to ‘int’ [enabled by default]
libc_hidden_def (globfree)
^
../../lib/globfree.c: In function ‘libc_hidden_def’:
../../lib/globfree.c:40:1: warning: type of ‘globfree’ defaults to ‘int’ [enabled by default]
../../lib/globfree.c:40:1: error: expected ‘{’ at end of input
--

reply via email to

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