Bug 3883 - sigwait fails to compile without rt_sigtimedwait
Summary: sigwait fails to compile without rt_sigtimedwait
Status: NEW
Alias: None
Product: uClibc
Classification: Unclassified
Component: Other (show other bugs)
Version: 0.9.32
Hardware: PC Linux
: P5 minor
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-17 14:01 UTC by Michael Deutschmann
Modified: 2011-06-17 14:01 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
Patch to avoid sigwaitinfo use on old kernels (533 bytes, application/octet-stream)
2011-06-17 14:01 UTC, Michael Deutschmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Deutschmann 2011-06-17 14:01:24 UTC
Created attachment 3427 [details]
Patch to avoid sigwaitinfo use on old kernels

On my system, stock uClibc-0.9.32 fails to compile with:

libc/libc_so.a(sigwait.os): In function `sigwait':
sigwait.c:(.text.sigwait+0x13): undefined reference to `__GI_sigwaitinfo'

The problem is that sigwait() is defined in terms of sigwaitinfo() if __UCLIBC_HAS_REALTIME is defined, but sigwaitinfo is not generated because my kernel doesn't have the rt_sigtimedwait call.

Attached is a patch to steer uClibc down the non-realtime path if the syscall isn't available.