garnome2.14编译时的问题..helpme!!
[===== NOW BUILDING: gamin-0.1.7 =====]complete for gamin.
complete for gamin.
complete for gamin.
complete for gamin.
complete for gamin.
complete for gamin.
==> Running make in work/main.d/gamin-0.1.7
make: Entering directory `/root/garnome-2.14.0/bootstrap/gamin/work/main.d/gamin-0.1.7'
makeall-recursive
make: Entering directory `/root/garnome-2.14.0/bootstrap/gamin/work/main.d/gamin-0.1.7'
Making all in lib
make: Entering directory `/root/garnome-2.14.0/bootstrap/gamin/work/main.d/gamin-0.1.7/lib'
make: Nothing to be done for `all'.
make: Leaving directory `/root/garnome-2.14.0/bootstrap/gamin/work/main.d/gamin-0.1.7/lib'
Making all in libgamin
make: Entering directory `/root/garnome-2.14.0/bootstrap/gamin/work/main.d/gamin-0.1.7/libgamin'
if /bin/sh ../libtool --mode=compile --tag=CC cc -DHAVE_CONFIG_H -I. -I. -I..-I.. -I../lib -DBINDIR=\""/opt/garnome/libexec"\" -DBUILDDIR=\"".."\" -I/opt/garnome/include-Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wsign-compare -Wno-sign-compare -O2 -MT gam_data.lo -MD -MP -MF ".deps/gam_data.Tpo" -c -o gam_data.lo gam_data.c; \
then mv -f ".deps/gam_data.Tpo" ".deps/gam_data.Plo"; else rm -f ".deps/gam_data.Tpo"; exit 1; fi
cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -DBINDIR=\"/opt/garnome/libexec\" -DBUILDDIR=\"..\" -I/opt/garnome/include -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wsign-compare -Wno-sign-compare -O2 -MT gam_data.lo -MD -MP -MF .deps/gam_data.Tpo -c gam_data.c-fPIC -DPIC -o .libs/gam_data.o
gam_data.c: In function `gamin_data_new':
gam_data.c:460: `pthread_mutexattr_settype' undeclared (first use in this function)
gam_data.c:460: (Each undeclared identifier is reported only once
gam_data.c:460: for each function it appears in.)
gam_data.c:475: `pthread_mutexattr_settype' used prior to declaration
gam_data.c:475: warning: implicit declaration of function `pthread_mutexattr_settype'
make: *** Error 1
make: Leaving directory `/root/garnome-2.14.0/bootstrap/gamin/work/main.d/gamin-0.1.7/libgamin'
make: *** Error 1
make: Leaving directory `/root/garnome-2.14.0/bootstrap/gamin/work/main.d/gamin-0.1.7'
make: *** Error 2
make: Leaving directory `/root/garnome-2.14.0/bootstrap/gamin/work/main.d/gamin-0.1.7'
make: *** Error 2
make: Leaving directory `/root/garnome-2.14.0/bootstrap/gamin'
make: *** [../../bootstrap/gamin/cookies/main.d/install] Error 2
make: Leaving directory `/root/garnome-2.14.0/platform/gnome-vfs'
make: *** [../../platform/gnome-vfs/cookies/main.d/install] Error 2
make: Leaving directory `/root/garnome-2.14.0/platform/libgnome'
make: *** [../../platform/libgnome/cookies/main.d/install] Error 2
make: Leaving directory `/root/garnome-2.14.0/platform/libbonoboui'
make: *** [../../platform/libbonoboui/cookies/main.d/install] Error 2
make: Leaving directory `/root/garnome-2.14.0/platform/libgnomeui'
make: *** [../../platform/libgnomeui/cookies/main.d/install] Error 2
make: Leaving directory `/root/garnome-2.14.0/desktop/bug-buddy'
make: *** Error 2
怎样解决这个问题....
随便问一下gamin这个东西是干吗的...
郁闷死了。。 gamin 是 fam 的替代工具。 http://www.gnome.org/~veillard/gamin/
pthread_mutexattr_settype 定义在 /usr/include/pthread.h 中,你检查一下代码看看 include 有没有问题。另外连接时需要 -lpthread 具体一点好伐...
-lpthread 是什么
新手...以前不用Xwindow的... extern int pthread_mutexattr_settype (pthread_mutexattr_t *_ _attr, int _ _kind)
_ _THROW;
不懂...要怎么改? pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
这样??
页:
[1]