solotimes / lsyncd

Automatically exported from code.google.com/p/lsyncd
GNU General Public License v2.0
0 stars 0 forks source link

does FreeBSD can install lsyncd ? #27

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I try to install with lsyncd in FreeBSD 8, but faild.
I had installed: xinetd build libxml2.
any ideas?

the configure had ok, and make info is:
# make
make  all-am
if gcc -DHAVE_CONFIG_H -DXML_CONFIG -I. -I. -I.     -Wall  `xml2-config 
--cflags` -g -O2 -MT lsyncd.o -MD -MP -MF ".deps/lsyncd.Tpo"  -c -o lsyncd.o 
`test -f 'lsyncd.c' || echo './'`lsyncd.c;  then mv -f ".deps/lsyncd.Tpo" 
".deps/lsyncd.Po";  else rm -f ".deps/lsyncd.Tpo"; exit 1;  fi
In file included from lsyncd.c:20:
inotify-nosys.h:15:24: error: asm/unistd.h: No such file or directory
In file included from lsyncd.c:20:
inotify-nosys.h:28: error: expected ':', ',', ';', '}' or '__attribute__' 
before '__flexarr'
inotify-nosys.h:155:3: error: #error "Unsupported architecture!"
inotify-nosys.h:158:3: error: #error "Unsupported architecture!"
inotify-nosys.h:161:3: error: #error "Unsupported architecture!"
inotify-nosys.h: In function 'inotify_init':
inotify-nosys.h:167: error: '__NR_inotify_init' undeclared (first use in this 
function)
inotify-nosys.h:167: error: (Each undeclared identifier is reported only once
inotify-nosys.h:167: error: for each function it appears in.)
inotify-nosys.h: In function 'inotify_add_watch':
inotify-nosys.h:172: error: '__NR_inotify_add_watch' undeclared (first use in 
this function)
inotify-nosys.h: In function 'inotify_rm_watch':
inotify-nosys.h:177: error: '__NR_inotify_rm_watch' undeclared (first use in 
this function)
lsyncd.c: At top level:
……

Original issue reported on code.google.com by yuan.w...@gmail.com on 5 Sep 2010 at 7:31

GoogleCodeExporter commented 9 years ago
FreeBSD is not currently supported. lsyncd uses inotify to monitor files and 
inotify is only part of modern Linux kernels.

Original comment by d...@dans.im on 5 Sep 2010 at 10:09

GoogleCodeExporter commented 9 years ago
As dansimau correctly noted, lsyncd is coded with inotify which is a linux only 
feature.

freebsd has a similar feature called "kqueue". I suppose lsyncd could be 
changed with compiletime switches to handle kqueue as well. Thus getting lsyncd 
to run on freebsd requires some code changes. Gladly would like to see if you 
have patches to lsyncd for this.

Original comment by axk...@gmail.com on 7 Sep 2010 at 7:24

GoogleCodeExporter commented 9 years ago

Original comment by axk...@gmail.com on 25 Sep 2010 at 8:09