|
安装了zlib..mysql MySQL-devel-4.0.4-0.i386.rpm MySQL-client-4.0.4-0.i386.rpm
然后make bnbtmysql 几乎成功。..
可是最后出现一个
[root@LUJIA-LINUX bnbt81b-src]# make bnbtmysql
g++ -o ./bnbtmysql atom.o base64.o bencode.o client.o config.o md5.o server.o sha1.o sort.o tracker_admin.o tracker_comments.o tracker_file.o tracker_index.o tracker_info.o tracker_login.o tracker_signup.o tracker_stats.o tracker_torrent.o tracker_upload.o tracker_users.o util.o bnbt.mysql.o bnbt_mysql.mysql.o tracker.mysql.o tracker_announce.mysql.o tracker_scrape.mysql.o -L. -lz -L/usr/lib/mysql -lmysqlclient
/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_malloc.o)(.text+0x25f): In function `my_strdup_with_length':
: 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: *** [bnbtmysql] Error 1
实在不知道什么错误 请高手帮忙... |
|