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