[Top][All Lists]

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

glob.c build failure on RH el6

From: Tom Tromey
Subject: glob.c build failure on RH el6
Date: Wed, 24 Feb 2021 10:38:40 -0700

On this system:

$ uname -r

... the gnulib in gdb failed to build:

  CC       glob.o
../../../binutils-gdb/gnulib/import/glob.c: In function ‘next_brace_sub’:
../../../binutils-gdb/gnulib/import/glob.c:89: error: expected declaration 
specifiers before ‘__THROWNL’

I thought maybe the glibc version might be useful info:

$ rpm -q glibc

gdb uses:


In the gcc -E output, I see that the gnulib cdefs.h replacement is not
being used -- I only see references like:

# 1 "/usr/include/sys/cdefs.h" 1 3 4

That defines __THROW:

#define __THROW __attribute__ ((__nothrow__))

... but not __THROWNL.

I've appended a patch (relative to the gdb import) that works.
I don't know the correct fix here.  I'd appreciate any advice.


diff --git a/gnulib/import/libc-config.h b/gnulib/import/libc-config.h
index e3571ee4c94..44c3d0f50fc 100644
--- a/gnulib/import/libc-config.h
+++ b/gnulib/import/libc-config.h
@@ -189,3 +189,7 @@
 #define SHLIB_COMPAT(lib, introduced, obsoleted) 0
 #define compat_symbol(lib, local, symbol, version) extern int dummy
 #define versioned_symbol(lib, local, symbol, version) extern int dummy
+#ifndef __THROWNL
+#define __THROWNL __THROW

reply via email to

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