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

Re: inotify-problems / sys/inotify.h not there.



Jørgen P. Tjernø a écrit :
> Hi!
> In advance; Please CC all mails about this to me, as I'm not a list 
> subscriber.
> 
> I'm running Debian Testing,
> daxxar@mental:~$ dpkg -l libc6*|grep ^ii
> ii  libc6           2.3.6.ds1-10   GNU C Library: Shared libraries
> ii  libc6-dev       2.3.6.ds1-10   GNU C Library: Development Libraries
> 
> I'm trying to write a program using inotify, and I've had some problems. 
> I can't find <sys/linux.h> which a few examples use, and according to 
> packages.debian.org, no package contains it (except klibc and dietlibc). 
> OTOH, I've got linux/inotify.h, but when I compile a simple program that 
> only calls inotify_init(), I get this:
> 
> /tmp/ccIj8hhd.o: In function `main':
> inotify.c:(.text+0x12): undefined reference to `inotify_init'
> 
> After a quick googling, this seems to be caused by using 
> linux/inotify.h, instead of the (supposedly) glibc-provided 
> sys/inotify.h. Now, I can't find this, so is this a problem with libc6-dev?
> 
> If not, can someone give me a working snippet for this libc-version that 
> invokes inotify_init?
> 

You need to use libc6 2.5 (from experimental) to be able to use inotify
functions.

Bye,
Aurelien

-- 
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   aurel32@debian.org         | aurelien@aurel32.net
   `-    people.debian.org/~aurel32 | www.aurel32.net



Reply to: