bug-gnulib
[Top][All Lists]
Advanced

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

Re: [PATCH] Merge glibc ieee128 ldbl redirect support into cdefs.h


From: Bruno Haible
Subject: Re: [PATCH] Merge glibc ieee128 ldbl redirect support into cdefs.h
Date: Mon, 04 Jan 2021 19:27:33 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-197-generic; KDE/5.18.0; x86_64; ; )

Paul E Murphy wrote:
> We ran into the following:
> 
> In file included from 
> /home/tuliom/opt/at-next-15.0-0-alpha/include/stdio.h:871,
>                   from ./stdio.h:43,
>                   from 
> /home/tuliom/tmp/at-build-tray/at15.0-0-alpha.redhat-8_ppc64le_ppc64le/sources
> /gdb/gnulib/import/tempname.h:23,
>                   from 
> /home/tuliom/tmp/at-build-tray/at15.0-0-alpha.redhat-8_ppc64le_ppc64le/sources
> /gdb/gnulib/import/tempname.c:20:
> /home/tuliom/opt/at-next-15.0-0-alpha/include/bits/stdio-ldbl.h: In 
> function ‘__LDBL_REDIR1_DECL’:
> /home/tuliom/opt/at-next-15.0-0-alpha/include/bits/stdio-ldbl.h:36:1: 
> error: expected declaration specifiers before ‘__LDBL_REDIR1_DECL’
>     36 | __LDBL_REDIR1_DECL (scanf, __isoc99_scanfieee128)
>        | ^~~~~~~~~~~~~~~~~~
> 
> 
> The missing macro is provided by glibc's cdefs.h.  Thus, the wrong 
> cdefs.h was picked up.

The one from glibc is meant to be included when someone writes
  #include <sys/cdefs.h>

The one from Gnulib is meant to be included when someone writes
  #include <cdefs.h>
via
  #include <libc-config.h>

If the wrong one was picked up, it sounds you have too many -I options
in your compilation commands.

Bruno




reply via email to

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