[asterisk-bugs] [Asterisk 0014820]: inotify header file prevents Asterisk from compiling

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Apr 3 10:19:28 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:                     closed
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 186285 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-04-03 08:15 CDT
Last Modified:              2009-04-03 10:19 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]# 

====================================================================== 

---------------------------------------------------------------------- 
 (0102675) svnbot (reporter) - 2009-04-03 10:19
 http://bugs.digium.com/view.php?id=14820#c102675 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 186302

_U  branches/1.6.2/
U   branches/1.6.2/main/stdtime/localtime.c

------------------------------------------------------------------------
r186302 | tilghman | 2009-04-03 10:19:27 -0500 (Fri, 03 Apr 2009) | 11
lines

Merged revisions 186297 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r186297 | tilghman | 2009-04-03 10:18:28 -0500 (Fri, 03 Apr 2009) | 4
lines
  
  Compatibility fix for glibc 2.4
  (Closes issue http://bugs.digium.com/view.php?id=14820)
  Reported by: phsultan
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=186302 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-04-03 10:19 svnbot         Checkin                                      
2009-04-03 10:19 svnbot         Note Added: 0102675                          
======================================================================




More information about the asterisk-bugs mailing list