Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 414047 - sys-fs/udev-182: build fails on uClibc due to missing -lrt for mq_getattr
Summary: sys-fs/udev-182: build fails on uClibc due to missing -lrt for mq_getattr
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: udev maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-30 04:14 UTC by SpanKY
Modified: 2012-07-24 15:04 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2012-04-30 04:14:12 UTC
# emerge udev
...
  CCLD   udevd
src/udevd-sd-daemon.o: In function `sd_is_mq':
sd-daemon.c:(.text+0x248): undefined reference to `mq_getattr'
collect2: ld returned 1 exit status
make[2]: *** [udevd] Error 1

this is because it looks for clock_gettime like so:
configure.ac:
AC_SEARCH_LIBS([clock_gettime], [rt], [], [AC_MSG_ERROR([POSIX RT library not found])])

uClibc puts clock_gettime() into libc, so there is no implicit rt for mq_getattr.  this is acceptable behavior according to POSIX, so udev should have similar code:
AC_SEARCH_LIBS([mq_getattr], [rt], [], [AC_MSG_ERROR([POSIX RT library not found])])
Comment 1 James Le Cuirot gentoo-dev 2012-07-23 21:06:02 UTC
This doesn't seem to be a problem any more, at least as of 186, but it does have other problems.
Comment 2 William Hubbs gentoo-dev 2012-07-24 15:04:02 UTC
Closing since this is fixed in 186.