|
编译环境:debian 5.0.3干净环境下,MYSQL 5.0.88 ,编译参数如下,出现的问题貌似是几乎所有人都遇到的,请高手帮忙看一下
./configure --prefix=/usr/local/mysql \
--localstatedir=/usr/local/mysql \
--with-comment=Source \
--with-server-suffix=Datou \
--without-debug \
--with-big-tables \
--with-charset=gbk \
--with-collation=gbk_chinese_ci \
--with-extra-charsets=all \
--with-pthread \
--enable-static \
--enable-thread-safe-client" \
--with-client-ldflags=-all-static \
--with-mysqld-ldflags=-all-static \
--with-mysqld-libs=-all-static \
--enable-assembler" \
--without-innodb"
• fatal error: can't find macro file m
原因分析:通过察看makefile文件,应该是 nroff -mm user.r > user.t groff -mm user.r > user.ps 导致的。
另外,这个在centos 5.4下面没有出现,看来 debian 下 nroff 是否不支持mm宏?
• mf_pack.c.text+0x95:waring: Using ‘endpwent’ in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
类似这样的waring 非常多,可以跟踪这个时候的make 文件。
经过研究发现,这个其实只是警告,说明并没有完全静态链接,通过glibc的部分还是动态实现的。
经过大量学习,这个说明glibc库并没有被静态编译进来,其它的已经静态编译进来。
mysql 自己的某些二进制版本(statically linked)可能是已经将glibc静态编译进来了。
以上两个问题难道不可以解决吗?我的意思是期望完美。 |
|