Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 338302 - sys-libs/libselinux with glibc 2.12.1 - label_file.c undefined reference to S_ISREG
Summary: sys-libs/libselinux with glibc 2.12.1 - label_file.c undefined reference to S...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: SE Linux Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: glibc-2.12
  Show dependency tree
 
Reported: 2010-09-21 20:44 UTC by Chris Richards
Modified: 2010-09-29 22:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Add <sys/stat.h> to includes (libselinux-glibc212.patch,287 bytes, patch)
2010-09-21 20:46 UTC, Chris Richards
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 ...