Bug 702368

Summary: include <nspr4/nspr.h> errors out: "rpc/netdb.h: No such file or directory"
Product: [Fedora] Fedora Reporter: Denys Vlasenko <dvlasenk>
Component: glibcAssignee: Andreas Schwab <schwab>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: emaldona, fweimer, jakub, kengert, schwab
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-05 14:04:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Denys Vlasenko 2011-05-05 13:20:13 UTC
$ cat z.c

#include <nspr4/nspr.h>
int main() { return 0; }

$ gcc z.c

In file included from /usr/include/nspr4/prinet.h:87:0,
                 from /usr/include/nspr4/nspr.h:49,
                 from z.c:1:
/usr/include/netdb.h:33:24: fatal error: rpc/netdb.h: No such file or directory
compilation terminated.

Comment 1 Denys Vlasenko 2011-05-05 13:27:14 UTC
Possibly a glibc packaging problem.

Looks like /usr/include/rpc/netdb.h has to be provided by glibc-headers, and system thinks that it should be already installed, since glibc-headers is installed.

# yum install /usr/include/rpc/netdb.h
Loaded plugins: langpacks, presto, refresh-packagekit
Setting up Install Process
Package matching glibc-headers-2.13.90-9.i686 already installed. Checking for update.
Nothing to do

But file doesn't exist.

I tried reinstalling glibc-headers, file is still missing.

Comment 2 Denys Vlasenko 2011-05-05 13:53:00 UTC
Simpler reproducer:

#include <netdb.h>
int main() { return 0; }

Since /usr/include/netdb.h is a glibc file, reassigning to glibc.

Comment 3 Andreas Schwab 2011-05-05 14:04:45 UTC

*** This bug has been marked as a duplicate of bug 702354 ***