[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fam with DNotify and glibc 2.3.1 requires -lrt -lpthread



On Wed, 8 Jan 2003, Wil Evers wrote:

> Hi,
> 
> FYI: after having problems trying to run the fam daemon on our 
> glibc-2.3.1-based Linux system, I found that the fam daemon (with 
> DNotify patch) must be linked against librt and libpthread.  Failure to 
> do so results in lots of *** overflow sigqueue *** messages when fam is 
> run in debug mode.
> 
> This is because the DNotify patch uses SIGRTMIN, which is #defined in 
> glibc-2.3.1's <bits/signum.h> as __libc_current_sigrtmin(); 
> __libc_current_sigrtmin() returns -1 unless linked against librt and 
> libpthread.
> 
> The fix is to add '-lrt -lpthread' to the fam_LDADD line in the 
> (DNotify-patched) fam-2.6.9/fam/Makefile.am, and re-run automake.
> 
> Perhaps a note on one the fam web pages would be appropriate.

I talked to the Red Hat glibc maintainer (Jakub Jelinek), and he said that 
recent glibc SIGRTMIN is not returning -1.

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl@redhat.com    alla@lysator.liu.se 
He's a superhumanly strong arachnophobic dog-catcher haunted by memories of 
'Nam. She's a wealthy antique-collecting Hell's Angel on her way to prison for 
a murder she didn't commit. They fight crime!