fam
[Top] [All Lists]

fam with DNotify and glibc 2.3.1 requires -lrt -lpthread

To: michael.wardle@xxxxxxxxxx
Subject: fam with DNotify and glibc 2.3.1 requires -lrt -lpthread
From: Wil Evers <Wil_Evers@xxxxxxxxxx>
Date: Wed, 08 Jan 2003 11:18:35 +0100
Cc: fam@xxxxxxxxxxx
Sender: fam-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20030105
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.

Regards,

- Wil
Wil Evers, DOOSYS R&D, Utrecht, Holland


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