Fedora Account System
Red Hat Associate
Red Hat Customer
Description of problem: Try compiling the following minimal program: #include <stdio.h> #include <rpc/svc.h> int main () { exit (0); } It gives the following errors: In file included from test.c:2:0: /usr/include/rpc/svc.h: In function ‘__svc_accept_failed’: /usr/include/rpc/svc.h:336:40: error: expected declaration specifiers before ‘attribute_hidden’ test.c:4:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token test.c:4:13: error: expected ‘{’ at end of input This seems to be caused by the following glibc patch: http://sourceware.org/ml/libc-alpha/2012-11/msg00599.html and specifically the following line in <rpc/svc.h>: extern void __svc_accept_failed (void) attribute_hidden; Note also that any program which uses 'rpcgen' will make a header file which includes <rpc/svc.h>, which is where I found the original bug. Version-Release number of selected component (if applicable): glibc-2.16.90-32.fc19.i686 How reproducible: 100% Steps to Reproduce: 1. See above.
I mean this patch: http://sourceware.org/ml/libc-alpha/2012-11/txt00010.txt
Thanks for isolating this. I've posted a trivial patch to fix it: http://sourceware.org/ml/libc-alpha/2012-11/msg00880.html so it'll trickle down to rawhide once it gets approved and pushed upstream.
Patch committed upstream and fedora glibc resync'd with upstream. Builds in progress.