[Bug 874418] Re: linking against librt doesn't provide sem_post

2011-10-17 Thread Gary Duzan
True, but it does say that -lrt will work for semaphores, but now it doesn't. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/874418 Title: linking against librt doesn't provide sem_post To manage no

[Bug 874418] Re: linking against librt doesn't provide sem_post

2011-10-17 Thread Gary Duzan
Note that while the example I gave had the -lrt before the object, the same problem occurs if it is included at the end. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/874418 Title: linking against l

[Bug 874418] Re: linking against librt doesn't provide sem_post

2011-10-14 Thread Gary Duzan
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/874418 Title: linking against librt doesn't provide sem_post To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/egl

[Bug 874418] [NEW] linking against librt doesn't provide sem_post

2011-10-14 Thread Gary Duzan
Public bug reported: We have software that uses semaphores but not pthreads. Therefore, our code links against librt, as documented in the sem_post man page. This worked fine in 10.04 and 11.04, but not in 11.10. > cat a.c #include int main() { sem_t *mysem; int ret; ret = sem_post

[Bug 874418] Re: linking against librt doesn't provide sem_post

2011-10-14 Thread Gary Duzan
If this is going to be the case going forward, then the sem_* man pages should be updated to indicate that -lrt is no longer sufficient to use semaphores. I don't have a problem with the change since LSB says to use libpthread, anyway, but if the behavior is going to change then the documentation t

[Bug 874418] Re: linking against librt doesn't provide sem_post

2011-10-14 Thread Gary Duzan
The sem_* man pages need to be updated to reflect a "blessed" way of linking in semaphore code now that -lrt doesn't work. ** Package changed: eglibc (Ubuntu) => manpages (Ubuntu) ** Changed in: manpages (Ubuntu) Status: Invalid => New -- You received this bug notification because you ar