Bug 882137 - <rpc/svc.h> is broken in the latest Rawhide
Summary: <rpc/svc.h> is broken in the latest Rawhide
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jeff Law
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-30 08:53 UTC by Richard W.M. Jones
Modified: 2016-11-24 16:08 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-11-30 21:02:57 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Richard W.M. Jones 2012-11-30 08:53:56 UTC
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.

Comment 1 Richard W.M. Jones 2012-11-30 08:56:37 UTC
I mean this patch:
http://sourceware.org/ml/libc-alpha/2012-11/txt00010.txt

Comment 2 Siddhesh Poyarekar 2012-11-30 15:21:24 UTC
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.

Comment 3 Jeff Law 2012-11-30 21:02:57 UTC
Patch committed upstream and fedora glibc resync'd with upstream.  Builds in progress.


Note You need to log in before you can comment on or make changes to this bug.