zwlww 发表于 2003-3-18 10:48:44

NC TOOLS 没办法安装!!! 环境 Magic lin

# make linux
make -e cryptcat XFLAGS='-DLINUX' STATIC=-static
make: Entering directory `/root/tools/nc'
make: `cryptcat' is up to date.
make: Leaving directory `/root/tools/nc'
# gcc -o nc netcat.c
/tmp/ccFbaKA4.o: In function `readwrite':
/tmp/ccFbaKA4.o(.text+0x17b0): undefined reference to `farm9crypt_read'
/tmp/ccFbaKA4.o(.text+0x1972): undefined reference to `farm9crypt_write'
/tmp/ccFbaKA4.o: In function `main':
/tmp/ccFbaKA4.o(.text+0x1a76): undefined reference to `farm9crypt_init'
/tmp/ccFbaKA4.o(.text+0x1a7e): undefined reference to `res_init'
collect2: ld returned 1 exit status

兄弟们帮帮我!!!

樱家冢 发表于 2003-3-18 12:52:58

Re: NC TOOLS 没办法安装!!! 环境 Magic

# make linux
make -e cryptcat XFLAGS='-DLINUX' STATIC=-static
make: Entering directory `/root/tools/nc'
make: `cryptcat' is up to date.
make: Leaving directory `/root/tools/nc'
# gcc -o nc netcat.c
/tmp/ccFbaKA4.o: In function `readwrite':
/tmp/ccFbaKA4.o(.text+0x17b0): undefined reference to `farm9crypt_read'
/tmp/ccFbaKA4.o(.text+0x1972): undefined reference to `farm9crypt_write'
/tmp/ccFbaKA4.o: In function `main':
/tmp/ccFbaKA4.o(.text+0x1a76): undefined reference to `farm9crypt_init'
/tmp/ccFbaKA4.o(.text+0x1a7e): undefined reference to `res_init'
collect2: ld returned 1 exit status

兄弟们帮帮我!!!

以上信息是不是由于缺少head文件?装上kernel-source试试看。

PS:个人建议Magic Linux的下一版本默认安装上kernel source,毕竟N多软件的编译都需要kernel source。

cjacker 发表于 2003-3-18 13:38:24

这个信息是提示缺少缺少lib.
也就是编译器 -L -l的地方出现问题。
页: [1]
查看完整版本: NC TOOLS 没办法安装!!! 环境 Magic lin