...c -DHAVE_CONFIG_H -I. -I.. -Wall -O2 -I/usr/local/xunsearch/include -MT flock.o -MD -MP -MF .deps/flock.Tpo -c -o flock.o flock.c mv -f .deps/flock.Tpo .deps/flock.Po g++ -DHAVE_CONFIG_H -I. -I.. -O2 -I/usr/local/xunsearch/include -MT import.o -MD -MP -MF .deps/import.Tpo -c -o import.o impor...
你检查一下 /usr/include/pthread.h 是否存在? 检查 src/flock.h 的第 55 行是不是像下面这样子: 53 54 #include 55 #define __USE_UNIX98 1 56
在第28行后,加上以下三句试试: #ifdef HAVE_FLOCK # include #endif
...++ b/libscws/xdb.c @@ -25,6 +25,10 @@ #include #include +#ifdef HAVE_FLOCK +# include +#endif + #ifdef HAVE_MMAP # include #endif
...hecking for strtok_r... yes checking for mmap... yes checking for struct flock... yes configure: creating ./config.status config.status: creating Makefile config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting config.status: creating libscws/Makefile config.status: W...
..., 12, SEEK_SET); ! write(x->fd, &x->fsize, sizeof(x->fsize)); ! _xdb_flock(x->fd, LOCK_UN); close(x->fd); x->fd = -1; } --- 240,262 ---- { if (x == NULL) return; ! ! #ifdef HAVE_MMAP if (x->fmap != NULL) { munmap(x->fmap, x->fsize); x->fmap = N...
...checking for strndup... yes checking for mmap... yes checking for struct flock... yes configure: creating ./config.status config.status: creating Makefile config.status: creating libscws/Makefile config.status: creating etc/Makefile config.status: creating cli/Makefile config.status: creatin...