LinuxSir.cn,穿越时空的Linuxsir!

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

欲哭无泪,高手请进

[复制链接]
发表于 2003-7-7 18:32:43 | 显示全部楼层 |阅读模式
各位高手,我气疯了,问题老存在:我用的是RH9我在编译VPOPMAIL时出现错误:
# make
make  all-recursive
make[1]: Entering directory `/soft/qmail/vpopmail-5.2.1'
Making all in cdb
make[2]: Entering directory `/soft/qmail/vpopmail-5.2.1/cdb'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/soft/qmail/vpopmail-5.2.1/cdb'
make[2]: Entering directory `/soft/qmail/vpopmail-5.2.1'
gcc  -g -O2 -Wall  -o vchkpw  vchkpw.o libvpopmail.a -L/usr/lib/mysql  -lmysqlclient -lz -lnsl -lcrypt -lz -lm
/usr/lib/mysql/libmysqlclient.a(my_malloc.o)(.text+0x28): In function `my_malloc':
: undefined reference to `errno'
/usr/lib/mysql/libmysqlclient.a(my_malloc.o)(.text+0xcc): In function `my_memdup':
: undefined reference to `errno'
/usr/lib/mysql/libmysqlclient.a(my_malloc.o)(.text+0x1ba): In function `my_strdup':
: undefined reference to `errno'
/usr/lib/mysql/libmysqlclient.a(my_realloc.o)(.text+0x65): In function `my_realloc':
: undefined reference to `errno'
/usr/lib/mysql/libmysqlclient.a(my_lib.o)(.text+0x2e1): In function `my_dir':
: undefined reference to `errno'
/usr/lib/mysql/libmysqlclient.a(my_lib.o)(.text+0x3d1): more undefined references to `errno' follow
collect2: ld returned 1 exit status
make[2]: *** [vchkpw] Error 1
make[2]: Leaving directory `/soft/qmail/vpopmail-5.2.1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/soft/qmail/vpopmail-5.2.1'
make: *** [all-recursive-am] Error 2
[root@xiaokang vpopmail-5.2.1]#

谢帮我看一下
发表于 2003-7-8 09:34:24 | 显示全部楼层
usr/lib/mysql/libmysqlclient.a(my_malloc.o)(.text+0x28): In function `my_malloc':
: undefined reference to `errno'
你这个是不是在连接mysql的库?是不是路径错了?
发表于 2003-7-22 15:10:55 | 显示全部楼层

我的Vpopmail安装步骤。

./configure --prefix=/home/vpopmail --enable-mysql=y --enable-incdir=/usr/include/mysql --enable-libdir=/usr/lib/mysql --enable-default-domain=maglacky.com --enable-passwd=n --enable-defaultquota=52428800s --enable-tcprules-prog=/usr/local/qmail/bin/tcprules --enable-tcpserver-file=/home/vpopmail/etc/tcp.smtp --enable-vpopuser=vpopmail --enable-vpopgroup=vchkpw --enable-ip-alias-domains=n --enable-qmail-newu=/usr/local/qmail/bin/qmail-newu --enable-qmail-inject=/usr/local/qmail/bin/qmail-inject --enable-qmail-newmrh=/usr/local/qmail/bin/qmail-newmrh
# make
# make install-strip
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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