Bug 199881

Summary: glibc-2.3.4-2.19.src.rpm and glibc-2.3.4-2.22.src.rpm fail to build on sparc64
Product: Red Hat Enterprise Linux 4 Reporter: Johnny Hughes <johnny>
Component: glibcAssignee: Jakub Jelinek <jakub>
Status: CLOSED NOTABUG QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0   
Target Milestone: ---   
Target Release: ---   
Hardware: sparc64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-08-29 09:15:33 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:
Attachments:
Description Flags
adds include socket.h to several glibc .c files none

Description Johnny Hughes 2006-07-23 21:59:27 UTC
Description of problem:
glibc-2.3.4-2.19.src.rpm and glibc-2.3.4-2.22.src.rpm fail to build on sparc64

Version-Release number of selected component (if applicable):
glibc-2.3.4-2.19.src.rpm, glibc-2.3.4-2.22.src.rpm

How reproducible:
Always

The problem is that patch glibc-nscd-EINTR.patch uses "MSG_NOSIGNAL" and "send"
but they are not previously defined.

Using:

#include <sys/socket.h>

in several .c files fixes this problem and allows both glibc SRPMS to build on
sparc64.

The attached patch corrects the problem.

Comment 1 Johnny Hughes 2006-07-23 21:59:27 UTC
Created attachment 132890 [details]
adds include socket.h to several glibc .c files

Comment 2 Jakub Jelinek 2006-08-29 09:15:33 UTC
This is unnecessary.  sys/socket.h is included in all those files, via
<errno.h> including <tls.h>, which includes either LinuxThreads or NPTL
<descr.h>.  <descr.h> includes <resolv.h>, which includes <netinet/in.h>
and that includes <sys/socket.h>.