Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安装失败 #6

Open
ixqbar opened this issue May 13, 2015 · 4 comments
Open

安装失败 #6

ixqbar opened this issue May 13, 2015 · 4 comments

Comments

@ixqbar
Copy link
Contributor

ixqbar commented May 13, 2015

git clone https://github.com/msgpack/msgpack-c.git
cd msgpack-c
./bootstrap
./configure
make
make install

libevent为 libevent-2.0.22-stable

安装yar-c时失败
yar_pack.c: In function 'yar_unpack_data_type':
yar_pack.c:211: error: 'MSGPACK_OBJECT_DOUBLE' undeclared (first use in this function)
yar_pack.c:211: error: (Each undeclared identifier is reported only once
yar_pack.c:211: error: for each function it appears in.)
yar_pack.c:213: error: 'MSGPACK_OBJECT_RAW' undeclared (first use in this function)
yar_pack.c:214: error: 'msgpack_object_union' has no member named 'raw'
yar_pack.c: In function 'yar_unpack_data_value':
yar_pack.c:243: error: 'MSGPACK_OBJECT_DOUBLE' undeclared (first use in this function)
yar_pack.c:244: error: 'msgpack_object_union' has no member named 'dec'
yar_pack.c:246: error: 'MSGPACK_OBJECT_RAW' undeclared (first use in this function)
yar_pack.c:247: error: 'msgpack_object_union' has no member named 'raw'
make[1]: *** [yar_pack.lo] Error 1
make[1]: Leaving directory `/data/soft/yar-c'
make: *** [all] Error 2

求助

@zhanglei
Copy link

msgpack版本太高,用0.5.x版本就可以了

@ixqbar
Copy link
Contributor Author

ixqbar commented May 13, 2015

是哦,安装了0.5.9解决了

mac下安装照旧失败,提示ulong没定义,找了半天也没找到哪里定义了ulong

@zhanglei
Copy link

自己在yar_pack.h头文件中添加typedef unsigned long ulong;

@ixqbar
Copy link
Contributor Author

ixqbar commented May 14, 2015

谢谢,已经解决
我用的

#ifndef ulong
#define ulong unsigned long
#endif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants