免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1406 | 回复: 1

【讨论中】急求帮助:Ubuntu10.04 编译安装mysql-6.0.0-alpha [复制链接]

论坛徽章:
0
发表于 2013-03-13 16:05 |显示全部楼层
本帖最后由 cenalulu 于 2013-03-13 16:52 编辑

本人在Ubuntu10.04 编译安装mysql-6.0.0-alpha遇到了如下问题:

执行
sudo make

最后结果如下:

6.1.jpg


请教高手,以上错误该如何解决?
万分感谢!!!!

论坛徽章:
0
发表于 2013-03-14 11:29 |显示全部楼层
我在include/my_global.h 文件中添加了,如下代码:
/* Define some useful general macros */
-#if !defined(max)
-#define max(a, b)        ((a) > (b) ? (a) : (b))
-#define min(a, b)        ((a) < (b) ? (a) : (b))
+#if !defined(mysql_max)
+#define mysql_max(a, b)      ((a) > (b) ? (a) : (b))
+#define mysql_min(a, b)      ((a) < (b) ? (a) : (b))
+static __inline long min( long a, long b ) { return ( ( a < b ) ? a : b ); }
+static __inline long max( long a, long b ) { return ( ( a > b ) ? a : b ); }
#endif


再次编译, sudo make, 出现了如下错误:
In file included from strxmov.c:33:
../include/my_global.h:1528: error: expected identifier or ‘(’ before ‘long’
../include/my_global.h:1528: error: expected ‘)’ before ‘<’ token
../include/my_global.h:1529: error: expected identifier or ‘(’ before ‘long’
../include/my_global.h:1529: error: expected ‘)’ before ‘>’ token


请问如何解决???
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP