LinuxSir.cn,穿越时空的Linuxsir!

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

util-linux 安装出错,help

[复制链接]
发表于 2004-2-6 01:03:54 | 显示全部楼层 |阅读模式
用linux2.6 内核进行安装的,在安装util-linux 时出现了错误具体内容如下:
请高手帮忙看看。
 楼主| 发表于 2004-2-6 01:05:56 | 显示全部楼层
make -C mount  mount umount
make: Entering directory `/mnt/hda2/sources/util-linux-2.12/mount'
cc -c -pipe -O2 -mcpu=i486 -fomit-frame-pointer -I../lib -Wall -Wmissing-prototypes -Wstrict-prototypes -DNCH=1   -D_FILE_OFFSET_BITS=64 -DSBINDIR=\"/sbin\" -DUSRSBINDIR=\"/usr/sbin\" -DLOGDIR=\"/var/log\" -DVARPATH=\"/var\" -DLOCALEDIR=\"/usr/share/locale\" -O2 -DHAVE_NFS mount.c
In file included from mount.c:65:
loop.h:20: error: parse error before "__kernel_dev_t"
loop.h:20: warning: no semicolon at end of struct or union
loop.h:22: error: parse error before "lo_rdevice"
loop.h:22: warning: type defaults to `int' in declaration of `lo_rdevice'
loop.h:22: warning: data definition has no type or storage class
loop.h:31: error: parse error before '}' token
make: *** [mount.o] Error 1
 楼主| 发表于 2004-2-6 01:11:19 | 显示全部楼层
是不是和内核有关?我用的是2.6的内核进行安装的,在chapter 5 的installing kernel 的时候使用make include/asm 代替了make symlinks ,其他的完全按照lfs 5 安装的。
 楼主| 发表于 2004-2-6 01:12:36 | 显示全部楼层
有办法解决么?
或者还是要用2.4的内核?
 楼主| 发表于 2004-2-6 11:43:04 | 显示全部楼层
no one can help me ??
发表于 2004-2-6 11:44:52 | 显示全部楼层
你是说用2.6的头文件?那就试试2.4的吧!
但是我注意到编译参数:-pipe -O2 -mcpu=i486 -fomit-frame-pointer
这个不会试你自己加上去的吧?这个包似乎要unset CFLAGS和CXXFLAGS。
不过我实在记不清楚了,只是提个参考建议。
 楼主| 发表于 2004-2-6 11:53:10 | 显示全部楼层
this is loop.h:
struct loop_info {
        int             lo_number;
        my_dev_t        lo_device;       //   (line 20)
        unsigned long   lo_inode;
        my_dev_t        lo_rdevice;      //   (line 22)
        int             lo_offset;
        int             lo_encrypt_type;
        int             lo_encrypt_key_size;
        int             lo_flags;
        char            lo_name[LO_NAME_SIZE];
        unsigned char   lo_encrypt_key[LO_KEY_SIZE];
        unsigned long   lo_init[2];
        char            reserved[4];
};           //  (line 31)
发表于 2004-2-6 13:09:08 | 显示全部楼层
呵呵,應該是內核頭文件不一致的問題
我與你的情況一樣現在改回2.4.22內核了
如果你貞想用2.6 kernel,看看這個
http://lfs.oregonstate.edu/hints ... rnel-2.6-how-to.txt
 楼主| 发表于 2004-2-6 13:28:27 | 显示全部楼层
那个我早就看过了,我就是按者那个做的啊,可是还是有这个问题哦
难道一定要用2.4的??
用2.6就不行 ??
 楼主| 发表于 2004-2-6 16:16:12 | 显示全部楼层
any body can help me ??
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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