当前时区 GMT+8, 现在时间是 2008-7-6 07:25 游客: 注册 登录 仅登录论坛 | 搜索 帮助


标题: garnome2.14编译时的问题..helpme!!
anywherecall
新手上路
Rank: 1



UID 214013
精华 0
积分 10
帖子 4
阅读权限 10
注册 2006-3-24
状态 离线
发表于 2006-3-24 04:39  资料  短消息  加为好友  添加 anywherecall 为MSN好友 通过MSN和 anywherecall 交谈
garnome2.14编译时的问题..helpme!!

[===== NOW BUILDING:    gamin-0.1.7     =====]
        [fetch] complete for gamin.
        [checksum] complete for gamin.
        [extract] complete for gamin.
        [patch] complete for gamin.
        [fixup] complete for gamin.
        [configure] complete for gamin.
==> Running make in work/main.d/gamin-0.1.7
make[7]: Entering directory `/root/garnome-2.14.0/bootstrap/gamin/work/main.d/gamin-0.1.7'
make  all-recursive
make[8]: Entering directory `/root/garnome-2.14.0/bootstrap/gamin/work/main.d/gamin-0.1.7'
Making all in lib
make[9]: Entering directory `/root/garnome-2.14.0/bootstrap/gamin/work/main.d/gamin-0.1.7/lib'
make[9]: Nothing to be done for `all'.
make[9]: Leaving directory `/root/garnome-2.14.0/bootstrap/gamin/work/main.d/gamin-0.1.7/lib'
Making all in libgamin
make[9]: 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[9]: *** [gam_data.lo] Error 1
make[9]: Leaving directory `/root/garnome-2.14.0/bootstrap/gamin/work/main.d/gamin-0.1.7/libgamin'
make[8]: *** [all-recursive] Error 1
make[8]: Leaving directory `/root/garnome-2.14.0/bootstrap/gamin/work/main.d/gamin-0.1.7'
make[7]: *** [all] Error 2
make[7]: Leaving directory `/root/garnome-2.14.0/bootstrap/gamin/work/main.d/gamin-0.1.7'
make[6]: *** [build-work/main.d/gamin-0.1.7/Makefile] Error 2
make[6]: Leaving directory `/root/garnome-2.14.0/bootstrap/gamin'
make[5]: *** [../../bootstrap/gamin/cookies/main.d/install] Error 2
make[5]: Leaving directory `/root/garnome-2.14.0/platform/gnome-vfs'
make[4]: *** [../../platform/gnome-vfs/cookies/main.d/install] Error 2
make[4]: Leaving directory `/root/garnome-2.14.0/platform/libgnome'
make[3]: *** [../../platform/libgnome/cookies/main.d/install] Error 2
make[3]: Leaving directory `/root/garnome-2.14.0/platform/libbonoboui'
make[2]: *** [../../platform/libbonoboui/cookies/main.d/install] Error 2
make[2]: Leaving directory `/root/garnome-2.14.0/platform/libgnomeui'
make[1]: *** [../../platform/libgnomeui/cookies/main.d/install] Error 2
make[1]: Leaving directory `/root/garnome-2.14.0/desktop/bug-buddy'
make: *** [paranoid-install] Error 2


怎样解决这个问题....
随便问一下gamin这个东西是干吗的...
郁闷死了。。

顶部
yangh
版主
Rank: 7Rank: 7Rank: 7


UID 40061
精华 3
积分 3192
帖子 1625
阅读权限 255
注册 2003-5-26
来自 China
状态 离线
发表于 2006-3-24 10:18  资料  主页 短消息  加为好友 
gamin 是 fam 的替代工具。 http://www.gnome.org/~veillard/gamin/

pthread_mutexattr_settype 定义在 /usr/include/pthread.h 中,你检查一下代码看看 include 有没有问题。另外连接时需要 -lpthread





顶部
anywherecall
新手上路
Rank: 1



UID 214013
精华 0
积分 10
帖子 4
阅读权限 10
注册 2006-3-24
状态 离线
发表于 2006-3-24 11:07  资料  短消息  加为好友  添加 anywherecall 为MSN好友 通过MSN和 anywherecall 交谈
具体一点好伐...
-lpthread 是什么
新手...以前不用Xwindow的...

顶部
anywherecall
新手上路
Rank: 1



UID 214013
精华 0
积分 10
帖子 4
阅读权限 10
注册 2006-3-24
状态 离线
发表于 2006-3-24 11:16  资料  短消息  加为好友  添加 anywherecall 为MSN好友 通过MSN和 anywherecall 交谈
extern int pthread_mutexattr_settype (pthread_mutexattr_t *_ _attr, int _ _kind)
_ _THROW;

不懂...要怎么改?

顶部
anywherecall
新手上路
Rank: 1



UID 214013
精华 0
积分 10
帖子 4
阅读权限 10
注册 2006-3-24
状态 离线
发表于 2006-3-24 12:11  资料  短消息  加为好友  添加 anywherecall 为MSN好友 通过MSN和 anywherecall 交谈
pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);

这样??

顶部
 


Powered by Discuz! 5.5.0  © 2001-2007 Comsenz Inc.
清除 Cookies - 联系我们 - 中国Linux公社 - WAP