[asterisk-bugs] [Asterisk 0014820]: inotify header file prevents Asterisk from compiling
Asterisk Bug Tracker
noreply at bugs.digium.com
Fri Apr 3 08:54:47 CDT 2009
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=14820
======================================================================
Reported By: phsultan
Assigned To: tilghman
======================================================================
Project: Asterisk
Issue ID: 14820
Category: Core/BuildSystem
Reproducibility: always
Severity: tweak
Priority: low
Status: assigned
Asterisk Version: SVN
Regression: No
SVN Branch (only for SVN checkouts, not tarball releases): trunk
SVN Revision (number only!): 186285
Request Review:
======================================================================
Date Submitted: 2009-04-03 08:15 CDT
Last Modified: 2009-04-03 08:54 CDT
======================================================================
Summary: inotify header file prevents Asterisk from compiling
Description:
Here is the error I get :
[CC] stdtime/localtime.c -> stdtime/localtime.o
stdtime/localtime.c: In function âadd_notifyâ:
stdtime/localtime.c:313: error: âIN_DONT_FOLLOWâ undeclared (first use
in this function)
stdtime/localtime.c:313: error: (Each undeclared identifier is reported
only once
stdtime/localtime.c:313: error: for each function it appears in.)
make[1]: *** [stdtime/localtime.o] Error 1
make: *** [main] Error 2
My /usr/include/sys/inotify.h file (included in stdtime/localtime.c and
checked by the configure script) doesn't mention IN_DONT_FOLLOW. However,
/usr/include/linux/inotify.h mentions it, and Asterisk compiles properly if
I include the latter instead.
I suspected I had some packages improperly installed, but both files come
from my glibc-devel package :
[root at media trunk-commit]# rpmquery -f /usr/include/sys/inotify.h
glibc-devel-2.4-7mdv2007.0
[root at media trunk-commit]# rpmquery -f /usr/include/linux/inotify.h
glibc-devel-2.4-7mdv2007.0
[root at media trunk-commit]#
======================================================================
----------------------------------------------------------------------
(0102664) mmichelson (administrator) - 2009-04-03 08:54
http://bugs.digium.com/view.php?id=14820#c102664
----------------------------------------------------------------------
Interesting. You're using glibc 2.4, but the man page for inotify claims
that IN_DONT_FOLLOW was added in glibc 2.5. This is probably why simply
including sys/inotify.h is not working properly.
I'm assigning this to tilghman since he has the most experience working
with inotify.
Issue History
Date Modified Username Field Change
======================================================================
2009-04-03 08:54 mmichelson Note Added: 0102664
======================================================================
More information about the asterisk-bugs
mailing list