免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1081 | 回复: 0
打印 上一主题 下一主题

[求助]sql 3.23.58编译时出错,怎么处理?? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-03-23 10:56 |只看该作者 |倒序浏览
Mysql网站上处理方式:
If you get a compilation error on Linux (e.g. SuSE Linux 8.1 or Red Hat Linux
7.3) similar to the following one:

libmysql.c:1329: warning: passing arg 5 of `gethostbyname_r' from incompatible
pointer type
libmysql.c:1329: too few arguments to function `gethostbyname_r'
libmysql.c:1329: warning: assignment makes pointer from integer without a cast
make[2]: *** [libmysql.lo] Error 1

By default, the configure script attempts to determine the correct number of
arguments by using g++ the GNU C++ compiler. This test yields wrong results, if
g++ is not installed. There are two ways to work around this problem:

* Make sure that the GNU C++ g++ is installed. On some Linux distributions,
the
   required package is called gpp, on others it is named gcc-c++.
* Use gcc as your C++ compiler by setting the CXX environment variable to gcc:

     export CXX="gcc"

Please note that you need to run configure again afterwards.

mysql.jpg (32.34 KB, 下载次数: 7)

mysql

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

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP