https://sourceware.org/bugzilla/show_bug.cgi?id=32018
--- Comment #10 from bigmagicreadsun <bigmagicreadsun at gmail dot com> --- (In reply to Vladimir Mezentsev from comment #9) > If there is a similar problem on CentOS 7, > could you please attach this output: > % grep -n -s -w strchr /usr/include/*/* > > It looks like strchr is redefined as a macro. CentOS 7 grep -n -s -w strchr /usr/include/*/* /usr/include/bits/string.h:1048: : (*(char *)__mempcpy (strchr (__dest, '\0'), \ /usr/include/bits/string.h:1257:# define strchr(s, c) \ /usr/include/bits/string.h:1749: ? strchr ((s), (accept)[0]) \ /usr/include/bits/string.h:1856: ? strchr ((haystack), (needle)[0]) \ /usr/include/bits/string2.h:395:# define strchr(s, c) \ /usr/include/bits/string2.h:401:# define strchr(s, c) \ /usr/include/bits/string2.h:404: : strchr (s, c))) /usr/include/bits/string2.h:780: : (*((char *) __mempcpy (strchr (__dest, '\0'), \ /usr/include/bits/string2.h:1110: ? strchr (s, __a0) \ /usr/include/bits/string2.h:1153: ? strchr (haystack, \ /usr/include/bits/string2.h:1225: if (__retval != NULL && (*__s = strchr (__retval, __reject)) != NULL) cat -n /usr/include/bits/string2.h | sed -n "390,410 p" 390 391 /* Return pointer to C in S. */ 392 #ifndef _HAVE_STRING_ARCH_strchr 393 extern void *__rawmemchr (const void *__s, int __c); 394 # if __GNUC_PREREQ (3, 2) 395 # define strchr(s, c) \ 396 (__extension__ (__builtin_constant_p (c) && !__builtin_constant_p (s) \ 397 && (c) == '\0' \ 398 ? (char *) __rawmemchr (s, c) \ 399 : __builtin_strchr (s, c))) 400 # else 401 # define strchr(s, c) \ 402 (__extension__ (__builtin_constant_p (c) && (c) == '\0' \ 403 ? (char *) __rawmemchr (s, c) \ 404 : strchr (s, c))) 405 # endif 406 #endif 407 408 409 /* Copy SRC to DEST. */ 410 #if (!defined _HAVE_STRING_ARCH_strcpy && !__GNUC_PREREQ (3, 0)) \ cat -n /usr/include/bits/string.h | sed -n "1250,1270 p" 1250 return __res; 1251 } 1252 1253 1254 /* Find the first occurrence of C in S. */ 1255 # define _HAVE_STRING_ARCH_strchr 1 1256 # define _USE_STRING_ARCH_strchr 1 1257 # define strchr(s, c) \ 1258 (__extension__ (__builtin_constant_p (c) \ 1259 ? ((c) == '\0' \ 1260 ? (char *) __rawmemchr ((s), (c)) \ 1261 : __strchr_c ((s), ((c) & 0xff) << 8)) \ 1262 : __strchr_g ((s), (c)))) 1263 1264 __STRING_INLINE char *__strchr_c (const char *__s, int __c); 1265 1266 __STRING_INLINE char * 1267 __strchr_c (const char *__s, int __c) 1268 { 1269 register unsigned long int __d0; 1270 register char *__res; -- You are receiving this mail because: You are on the CC list for the bug.