fam
[Top] [All Lists]

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

To: Wil Evers <Wil_Evers@xxxxxxxxxx>
Subject: Re: fam with DNotify and glibc 2.3.1 requires -lrt -lpthread
From: Alexander Larsson <alexl@xxxxxxxxxx>
Date: Tue, 14 Jan 2003 02:34:07 -0500 (EST)
Cc: michael.wardle@xxxxxxxxxx, <fam@xxxxxxxxxxx>
In-reply-to: <3E1BFAFB.1080603@xxxxxxxxxx>
Sender: fam-bounce@xxxxxxxxxxx
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@xxxxxxxxxx    alla@xxxxxxxxxxxxxx 
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! 


<Prev in Thread] Current Thread [Next in Thread>