Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 338302

Summary: sys-libs/libselinux with glibc 2.12.1 - label_file.c undefined reference to S_ISREG
Product: Gentoo Linux Reporter: Chris Richards <gizmo>
Component: HardenedAssignee: SE Linux Bugs <selinux>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 331665    
Attachments: Add <sys/stat.h> to includes

Description Chris Richards 2010-09-21 20:44:38 UTC
When compiling sys-libs/libselinux with glibc 2.12.1, compile fails with a message indicating that S_IS_REG is undefined.

Reproducible: Always

Steps to Reproduce:
1.Merge glibc 2.12.1
2.Merge libselinux from ~AMD64 tree (2.0.85)
3.Observe compile error

Actual Results:  
libselinux fails to compile

Expected Results:  
libselinux should compile properly

This appears to be a manifestation of bug 331665.
Comment 1 Chris Richards 2010-09-21 20:46:38 UTC
Created attachment 248295 [details, diff]
Add <sys/stat.h> to includes

This patch allows libselinux to compile properly with glibc 2.12.1
Comment 2 SpanKY gentoo-dev 2010-09-21 23:05:02 UTC
dont know why you cc-ed toolchain ... we dont deal with fixes for packages
Comment 3 SpanKY gentoo-dev 2010-09-29 22:58:38 UTC
i dont use selinux, but i cant see a problem with the patch, so ive applied it

someone else will have to take care of making sure upstream has the issue fixed, but i wouldnt be surprised if upstream is already fixed ...