+ -
当前位置:首页 → 问答吧 → LFS6.3在安装Inetutils-1.5编译时出错!

LFS6.3在安装Inetutils-1.5编译时出错!

时间:2008-10-25

来源:互联网

求助!
LFS6.3
第6.40章 Inetutils-1.5
在执行 make 时,执行到telnet就退出了,提示如下:

Making all in telnet
make[2]: Entering directory `/sources/inetutils-1.5/telnet'
gcc -g -O2 -o telnet authenc.o commands.o main.o network.o ring.o sys_bsd.o telnet.o terminal.o tn3270.o utilities.o -L../libinetutils -L../libtelnet -linetutils -ltelnet -L../lib -lgnu -lcrypt -lresolv -lnsl
telnet.o: In function `init_term':
/sources/inetutils-1.5/telnet/telnet.c:746: undefined reference to `tgetent'
collect2: ld returned 1 exit status
make[2]: *** [telnet] Error 1
make[2]: Leaving directory `/sources/inetutils-1.5/telnet'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/sources/inetutils-1.5'
make: *** [all] Error 2

查了有人说是bug,是这样吗?可以解决吗?成功安装6.3的朋友,你们怎么做得?

作者: tonyoung   发布时间: 2008-10-25

刚刚重新解压安装等到了下面的输出:

Making all in telnet
make[2]: Entering directory `/sources/inetutils-1.5/telnet'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../lib -I../libinetutils -DTERMCAP -DLINEMODE -DKLUDGELINEMODE -DENV_HACK -g -O2 -MT authenc.o -MD -MP -MF ".deps/authenc.Tpo" -c -o authenc.o authenc.c; \
then mv -f ".deps/authenc.Tpo" ".deps/authenc.Po"; else rm -f ".deps/authenc.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../lib -I../libinetutils -DTERMCAP -DLINEMODE -DKLUDGELINEMODE -DENV_HACK -g -O2 -MT commands.o -MD -MP -MF ".deps/commands.Tpo" -c -o commands.o commands.c; \
then mv -f ".deps/commands.Tpo" ".deps/commands.Po"; else rm -f ".deps/commands.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../lib -I../libinetutils -DTERMCAP -DLINEMODE -DKLUDGELINEMODE -DENV_HACK -g -O2 -MT main.o -MD -MP -MF ".deps/main.Tpo" -c -o main.o main.c; \
then mv -f ".deps/main.Tpo" ".deps/main.Po"; else rm -f ".deps/main.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../lib -I../libinetutils -DTERMCAP -DLINEMODE -DKLUDGELINEMODE -DENV_HACK -g -O2 -MT network.o -MD -MP -MF ".deps/network.Tpo" -c -o network.o network.c; \
then mv -f ".deps/network.Tpo" ".deps/network.Po"; else rm -f ".deps/network.Tpo"; exit 1; fi
network.c: In function 'init_network':
network.c:75: warning: incompatible implicit declaration of built-in function 'exit'
network.c:78: warning: incompatible implicit declaration of built-in function 'exit'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../lib -I../libinetutils -DTERMCAP -DLINEMODE -DKLUDGELINEMODE -DENV_HACK -g -O2 -MT ring.o -MD -MP -MF ".deps/ring.Tpo" -c -o ring.o ring.c; \
then mv -f ".deps/ring.Tpo" ".deps/ring.Po"; else rm -f ".deps/ring.Tpo"; exit 1; fi
ring.c: In function 'ring_init':
ring.c:105: warning: incompatible implicit declaration of built-in function 'memset'
ring.c: In function 'ring_supply_data':
ring.c:282: warning: incompatible implicit declaration of built-in function 'memmove'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../lib -I../libinetutils -DTERMCAP -DLINEMODE -DKLUDGELINEMODE -DENV_HACK -g -O2 -MT sys_bsd.o -MD -MP -MF ".deps/sys_bsd.Tpo" -c -o sys_bsd.o sys_bsd.c; \
then mv -f ".deps/sys_bsd.Tpo" ".deps/sys_bsd.Po"; else rm -f ".deps/sys_bsd.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../lib -I../libinetutils -DTERMCAP -DLINEMODE -DKLUDGELINEMODE -DENV_HACK -g -O2 -MT telnet.o -MD -MP -MF ".deps/telnet.Tpo" -c -o telnet.o telnet.c; \
then mv -f ".deps/telnet.Tpo" ".deps/telnet.Po"; else rm -f ".deps/telnet.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../lib -I../libinetutils -DTERMCAP -DLINEMODE -DKLUDGELINEMODE -DENV_HACK -g -O2 -MT terminal.o -MD -MP -MF ".deps/terminal.Tpo" -c -o terminal.o terminal.c; \
then mv -f ".deps/terminal.Tpo" ".deps/terminal.Po"; else rm -f ".deps/terminal.Tpo"; exit 1; fi
terminal.c: In function 'init_terminal':
terminal.c:95: warning: incompatible implicit declaration of built-in function 'exit'
terminal.c:98: warning: incompatible implicit declaration of built-in function 'exit'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../lib -I../libinetutils -DTERMCAP -DLINEMODE -DKLUDGELINEMODE -DENV_HACK -g -O2 -MT tn3270.o -MD -MP -MF ".deps/tn3270.Tpo" -c -o tn3270.o tn3270.c; \
then mv -f ".deps/tn3270.Tpo" ".deps/tn3270.Po"; else rm -f ".deps/tn3270.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../lib -I../libinetutils -DTERMCAP -DLINEMODE -DKLUDGELINEMODE -DENV_HACK -g -O2 -MT utilities.o -MD -MP -MF ".deps/utilities.Tpo" -c -o utilities.o utilities.c; \
then mv -f ".deps/utilities.Tpo" ".deps/utilities.Po"; else rm -f ".deps/utilities.Tpo"; exit 1; fi
utilities.c: In function 'Exit':
utilities.c:928: warning: incompatible implicit declaration of built-in function 'exit'
utilities.c: In function 'ExitString':
utilities.c:936: warning: incompatible implicit declaration of built-in function 'exit'
gcc -g -O2 -o telnet authenc.o commands.o main.o network.o ring.o sys_bsd.o telnet.o terminal.o tn3270.o utilities.o -L../libinetutils -L../libtelnet -linetutils -ltelnet -L../lib -lgnu -lcrypt -lresolv -lnsl
telnet.o: In function `init_term':
/sources/inetutils-1.5/telnet/telnet.c:746: undefined reference to `tgetent'
collect2: ld returned 1 exit status
make[2]: *** [telnet] Error 1
make[2]: Leaving directory `/sources/inetutils-1.5/telnet'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/sources/inetutils-1.5'
make: *** [all] Error 2

作者: tonyoung   发布时间: 2008-10-25

CLFS 手册指出有些头文件缺少了,SVN 版手册也更新了
引用:
inetutils has a minor issue with GCC-4.3.2. Fix it by issuing the following command:

代码:
sed -i 's@<sys/types.h>@<sys/types.h>\n#include <stdlib.h>@' \
 libicmp/icmp_timestamp.c
看看 SVN 里的方式行不?

http://www.linuxfromscratch.org/lfs/...inetutils.html

作者: d00m3d   发布时间: 2008-10-25

谢谢,等回家试试

作者: tonyoung   发布时间: 2008-10-25

不行,错误依旧,还是提示在746行

作者: tonyoung   发布时间: 2008-10-26

我的也是在这里出现的问题,不过我用Alt+F2下面,修改了Makefile,将telnet都删除了,然后chown给lfs 1000,一直到最后都没有错误了。

作者: 淡淡风轻   发布时间: 2009-02-04

热门下载

更多