免费注册 查看新帖 |

Chinaunix

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

新手 mysql 安装问题--libmysql.lo 求详解 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-10-16 20:34 |只看该作者 |倒序浏览
make 执行后报libmysql.lo错误,忘大虾指点一二,mysql学习如何开始?

[root@redhat-lab mysql]# make
make  all-recursive
make[1]: Entering directory `/usr/local/mysql'
Making all in .
make[2]: Entering directory `/usr/local/mysql'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/usr/local/mysql'
Making all in include
make[2]: Entering directory `/usr/local/mysql/include'
make  all-am
make[3]: Entering directory `/usr/local/mysql/include'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/usr/local/mysql/include'
make[2]: Leaving directory `/usr/local/mysql/include'
Making all in Docs
make[2]: Entering directory `/usr/local/mysql/Docs'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/mysql/Docs'
Making all in readline
make[2]: Entering directory `/usr/local/mysql/readline'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/mysql/readline'
Making all in pstack
make[2]: Entering directory `/usr/local/mysql/pstack'
Making all in aout
make[3]: Entering directory `/usr/local/mysql/pstack/aout'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/local/mysql/pstack/aout'
make[3]: Entering directory `/usr/local/mysql/pstack'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/usr/local/mysql/pstack'
make[2]: Leaving directory `/usr/local/mysql/pstack'
Making all in libmysql
make[2]: Entering directory `/usr/local/mysql/libmysql'
if /bin/sh ../libtool --preserve-dup-deps --mode=compile gcc -DDEFAULT_CHARSET_HOME="\"/usr/local\"" -DDATADIR="\"/usr/local/var\"" -DSHAREDIR="\"/usr/local/share/mysql\"" -DUNDEF_THREADS_HACK -DDONT_USE_RAID  -DMYSQL_CLIENT -I. -I. -I.. -I./../include -I../include -I./.. -I.. -I..     -O3 -DDBUG_OFF    -MT libmysql.lo -MD -MP -MF ".deps/libmysql.Tpo" -c -o libmysql.lo libmysql.c; \
        then mv -f ".deps/libmysql.Tpo" ".deps/libmysql.Plo"; else rm -f ".deps/libmysql.Tpo"; exit 1; fi
gcc -DDEFAULT_CHARSET_HOME=\"/usr/local\" -DDATADIR=\"/usr/local/var\" -DSHAREDIR=\"/usr/local/share/mysql\" -DUNDEF_THREADS_HACK -DDONT_USE_RAID -DMYSQL_CLIENT -I. -I. -I.. -I./../include -I../include -I./.. -I.. -I.. -O3 -DDBUG_OFF -MT libmysql.lo -MD -MP -MF .deps/libmysql.Tpo -c libmysql.c  -fPIC -DPIC -o .libs/libmysql.o
libmysql.c: In function 'mysql_real_connect':
libmysql.c:1862: warning: passing argument 5 of 'gethostbyname_r' from incompatible pointer type
libmysql.c:1862: error: too few arguments to function 'gethostbyname_r'
make[2]: *** [libmysql.lo] Error 1
make[2]: Leaving directory `/usr/local/mysql/libmysql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/mysql'
make: *** [all] Error 2
[root@redhat-lab mysql]# uname -a
Linux redhat-lab 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:12 EDT 2008 i686 i686 i386 GNU/Linux
[root@redhat-lab mysql]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.2 (Tikanga)

[ 本帖最后由 vincent.shan 于 2008-10-16 21:05 编辑 ]

论坛徽章:
1
双子座
日期:2013-08-19 14:56:16
2 [报告]
发表于 2008-10-16 23:11 |只看该作者
configure的参数贴出来
似乎是 'gethostbyname_r'  函数的问题

论坛徽章:
0
3 [报告]
发表于 2008-10-30 14:05 |只看该作者

回复 #2 猪知猪之道 的帖子

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

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP