尝试在Suse 10上编译Gearman,我得到以下信息:

#:~/src/gearmand-0.14> sudo make
make  all-am
make[1]: Entering directory `/src/gearmand-0.14'
  CC     libgearman/libgearman_libgearman_la-client.lo
libgearman/client.c: In function '_client_add_task':
libgearman/client.c:986: error: storage size of 'uuid' isn't known
libgearman/client.c:1002: warning: implicit declaration of function 'uuid_generate'
libgearman/client.c:1003: warning: implicit declaration of function 'uuid_unparse'
libgearman/client.c:986: warning: unused variable 'uuid' [-Wunused-variable]
make[1]: *** [libgearman/libgearman_libgearman_la-client.lo] Error 1
make[1]: Leaving directory `/src/gearmand-0.14'
make: *** [all] Error 2


这是有问题的源文件:

http://bazaar.launchpad.net/~gearman-developers/gearmand/trunk/annotate/head:/libgearman/client.c

最佳答案

uuid的存储大小未知


我想您在client.c中缺少了#include

09-28 11:18