LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 774|回复: 3

build openQ-0.3.1 failled on FreeBSD CURRENT

[复制链接]
发表于 2004-12-30 12:23:06 | 显示全部楼层 |阅读模式
大家帮偶看看
make  all-recursive
Making all in intl
Making all in po
Making all in src
if /bin/sh ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H  -I. -I. -I.. -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include  -DXTHREADS -DXUSE_MTSAFE_API -I/usr/local/include/atk-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/X11R6/include/gtk-2.0 -I/usr/X11R6/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/X11R6/include/pango-1.0 -I/usr/local/include/freetype2 -I/usr/local/include  -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/X11R6/include/gaim -DXTHREADS -DXUSE_MTSAFE_API -I/usr/local/include/atk-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/X11R6/include/gtk-2.0 -I/usr/X11R6/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/X11R6/include/pango-1.0 -I/usr/local/include/freetype2 -I/usr/local/include  -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include  -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/X11R6/include/gaim     -DDATADIR=\"/usr/X11R6/share\"  -DLIBDIR=\"/usr/X11R6/lib/gaim/\"  -DLOCALEDIR=\"/usr/X11R6/share/locale\"  -DSYSCONFDIR=\"/usr/X11R6/etc\"  -DGAIM_PLUGINS  -Wall -g -O2 -Wall -g3 -MT send_file.lo -MD -MP -MF ".deps/send_file.Tpo" -c -o send_file.lo send_file.c;  then mv -f ".deps/send_file.Tpo" ".deps/send_file.Plo"; else rm -f ".deps/send_file.Tpo"; exit 1; fi
In file included from send_file.h:4,
                 from send_file.c:25:
/usr/X11R6/include/gaim/ft.h:118: error: syntax error before "ssize_t"
/usr/X11R6/include/gaim/ft.h:384: error: syntax error before "ssize_t"
/usr/X11R6/include/gaim/ft.h:384: error: syntax error before ')' token
/usr/X11R6/include/gaim/ft.h:393: error: syntax error before "ssize_t"
/usr/X11R6/include/gaim/ft.h:393: error: syntax error before ')' token
/usr/X11R6/include/gaim/ft.h:464: error: syntax error before "gaim_xfer_read"
/usr/X11R6/include/gaim/ft.h:464: warning: type defaults to `int' in declaration of `gaim_xfer_read'
/usr/X11R6/include/gaim/ft.h:464: warning: data definition has no type or storage class
/usr/X11R6/include/gaim/ft.h:475: error: syntax error before "gaim_xfer_write"
/usr/X11R6/include/gaim/ft.h:475: warning: type defaults to `int' in declaration of `gaim_xfer_write'
/usr/X11R6/include/gaim/ft.h:475: warning: data definition has no type or storage class
send_file.c: In function `qq_process_recv_file_request':
send_file.c:839: warning: implicit declaration of function `gaim_xfer_set_write_fnc'
*** Error code 1
发表于 2004-12-30 14:04:38 | 显示全部楼层
你的gcc版本可能太旧,gaim里面有个ssize_t类型没有定义
你可以自己在ft.h里面加一句

  1. #typedef size_t ssize_t;
复制代码

应该可以解决
 楼主| 发表于 2004-12-30 19:41:48 | 显示全部楼层
偶的gcc是3.4.2的了,偶看是不BSD更新了include所致?
-DGAIM_PLUGINS  -Wall -g -O2 -Wall -g3 -MT buddy_info.lo -MD -MP -MF ".deps/buddy_info.Tpo" -c -o buddy_info.lo buddy_info.c;  then mv -f ".deps/buddy_info.Tpo" ".deps/buddy_info.Plo"; else rm -f ".deps/buddy_info.Tpo"; exit 1; fi
In file included from qq.h:32,
                 from buddy_opt.h:31,
                 from buddy_info.h:30,
                 from buddy_info.c:31:
/usr/X11R6/include/gaim/ft.h:32: error: conflicting types for 'size_t'
/usr/include/sys/types.h:216: error: previous declaration of 'size_t' was here
*** Error code 1

Stop in /usr/home/wsk/downloads/OpenQ/src.

/usr/include/sys/types.h:216内容:
...
#ifndef _SIZE_T_DECLARED
typedef __size_t        size_t;
#define _SIZE_T_DECLARED
#endif
...
发表于 2004-12-31 00:03:30 | 显示全部楼层
oh sorry..我原先写倒了。。。

刚刚想了一下,size_t和ssize_t还是有个符号区别的
安全起见,还是这样定义好了

  1. #typedef int ssize_t;
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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