QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2106|回复: 4

garnome2.14编译时的问题..helpme!!

[复制链接]
发表于 2006-3-24 04:39:40 | 显示全部楼层 |阅读模式
[===== 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这个东西是干吗的...
郁闷死了。。
发表于 2006-3-24 10:18:30 | 显示全部楼层
gamin 是 fam 的替代工具。 http://www.gnome.org/~veillard/gamin/

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

使用道具 举报

 楼主| 发表于 2006-3-24 11:07:27 | 显示全部楼层
具体一点好伐...
-lpthread 是什么
新手...以前不用Xwindow的...
回复

使用道具 举报

 楼主| 发表于 2006-3-24 11:16:27 | 显示全部楼层
extern int pthread_mutexattr_settype (pthread_mutexattr_t *_ _attr, int _ _kind)
_ _THROW;

不懂...要怎么改?
回复

使用道具 举报

 楼主| 发表于 2006-3-24 12:11:27 | 显示全部楼层
pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);

这样??
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-4-27 05:41 , Processed in 0.063881 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表