[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
/usr/include/stdio.h:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attr
From: |
Jeffrey Walton |
Subject: |
/usr/include/stdio.h:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘typedef’ |
Date: |
Mon, 14 Dec 2020 14:40:06 -0500 |
Hi Everyone,
I'm trying to build Git on CentOS 5 for some regression testing.
GetText 0.21 is a distant dependency.
GetText is having a compile issue:
libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -DEXEEXT=\"\"
-DEXEEXT=\"\" -DEXEEXT=\"\" -I. -I.. -I../intl -I../intl -I.. -I..
-DDEPENDS_ON_LIBICONV=1 -DDEPENDS_ON_LIBINTL=1 -DLIBXML_STATIC
-I/usr/local/include -DNDEBUG -g2 -O2 -fPIC -pthread -c fopen.c -fPIC
-DPIC -o .libs/fopen.o
In file included from ./stdio.h:33,
from fopen.c:26:
/usr/include/stdio.h:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘typedef’
fopen.c:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘static’
In file included from ./stdio.h:33,
from stdio.h:43,
from fopen.c:38:
/usr/include/stdio.h:171: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘*’ token
/usr/include/stdio.h:181: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘*’ token
/usr/include/stdio.h:213: error: expected ‘)’ before ‘*’ token
/usr/include/stdio.h:218: error: expected ‘)’ before ‘*’ token
/usr/include/stdio.h:228: error: expected ‘)’ before ‘*’ token
And:
$ cat -n /usr/include/stdio.h
...
24 #ifndef _STDIO_H
25
26 #if !defined __need_FILE && !defined __need___FILE
27 # define _STDIO_H 1
28 # include <features.h>
29
30 __BEGIN_DECLS
31
32 # define __need_size_t
33 # define __need_NULL
34 # include <stddef.h>
35
36 # include <bits/types.h>
37 # define __need_FILE
38 # define __need___FILE
39 #endif /* Don't need FILE. */
40
42 #if !defined __FILE_defined && defined __need_FILE
43
44 __BEGIN_NAMESPACE_STD
45 /* The opaque type of streams. This is the definition used
elsewhere. */
46 typedef struct _IO_FILE FILE;
47 __END_NAMESPACE_STD
48 #if defined __USE_LARGEFILE64 || defined __USE_SVID ||
defined __USE_POSIX \
49 || defined __USE_BSD || defined __USE_ISOC99 || defined
__USE_XOPEN \
50 || defined __USE_POSIX2
51 __USING_NAMESPACE_STD(FILE)
52 #endif
53
54 # define __FILE_defined 1
55 #endif /* FILE not defined. */
56 #undef __need_FILE
...
Attached are the relevant logs.
Jeff
config.log.zip
Description: Zip archive
- /usr/include/stdio.h:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘typedef’,
Jeffrey Walton <=