LinuxSir.cn,穿越时空的Linuxsir!

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

为什么我没有/var/utmp呢

[复制链接]
发表于 2003-11-28 21:20:35 | 显示全部楼层 |阅读模式
还是创建启动盘,没有/var/utmp,老大帮忙。
发表于 2003-11-28 23:02:14 | 显示全部楼层
我连软驱也没有……
http://lfs.linuxsir.cn/htdocs/lfscvs/chapter06/shadow.html
这里创建了/var/run/utmp。
 楼主| 发表于 2003-11-29 10:02:09 | 显示全部楼层

我知道有/var/run/utmp啊,但是没有/var/utmp啊。它们是一样的吗

  1. 然后我们要在映像上安装busybox Busybox 是一个将很多*nix操作集于一身的一个很小的可执行文件。
  2. make &&
  3. make PREFIX=/mnt/loop1 install &&
  4. cp -ax /var/utmp /mnt/loop1/var &&
  5. mkdir /mnt/loop1/var/log
复制代码
 楼主| 发表于 2003-11-29 10:17:29 | 显示全部楼层

老大,顺便指点一下关于devfsd的问题

究竟devfsd需要内核对devfs的支持吗?好像devfsd就是启动devfs的吧。
ftyh说过,它应该不需要内核编译了devfs,而且在没有支持devfs的redhat里也编译devfsd成功。
但是,我的情况却相反。
我的redhat8.0的内核没有选上devfs:
  1. # CONFIG_DEVFS_FS is not set
  2. # CONFIG_DEVFS_MOUNT is not set
  3. # CONFIG_DEVFS_DEBUG is not set
复制代码
而且,我在redhat里编译devfsd时,也遇到了在lfs里编译devfsd同样的错误:
  1. [root@homestudio alfs]# cd devfsd
  2. [root@homestudio devfsd]# ls
  3. compat_name.c  devfsd.c     devfsd.h      GNUmakefile  version.h
  4. devfsd.8       devfsd.conf  expression.c  karma.h
  5. [root@homestudio devfsd]# mv GNUmakefile Makefile
  6. [root@homestudio devfsd]# make
  7. cc -O2 -I. -Wall    -c -o devfsd.o devfsd.c
  8. devfsd.c: In function `free_config':
  9. devfsd.c:1386: `RTLD_NEXT' undeclared (first use in this function)
  10. devfsd.c:1386: (Each undeclared identifier is reported only once
  11. devfsd.c:1386: for each function it appears in.)
  12. devfsd.c: In function `get_shared_object':
  13. devfsd.c:1702: `RTLD_NEXT' undeclared (first use in this function)
  14. make: *** [devfsd.o] Error 1
复制代码

究竟为什么呢?我需要devfs吗?
 楼主| 发表于 2003-11-29 13:51:11 | 显示全部楼层

有哪位能指点一下devfs,devfsd以及devpts三者的关系呢,烦ing...

devfsd老是编译不成功,即使重新编译内核使支持devfs。烦的很。

在lfs文档创建设备节点时,可以用devfsd来代替吗?既然devfs是新式设备文件系统,根据置顶帖子,又知道它能提供pseudo 终端(PTYs)的实现,还能自动加载模块,管理设备节点又比旧式管理更先进,那为什么不干脆用它呢。
发表于 2003-11-29 15:41:36 | 显示全部楼层
devfsd没有readme什么的?
 楼主| 发表于 2003-11-29 17:54:31 | 显示全部楼层

没有

我是在kernel.org下载的。
  1. [root@homestudio tmp]# tar jvxf /home/king/alfs/devfsd-v1.3.9.tar.bz2
  2. devfsd/
  3. devfsd/devfsd.c
  4. devfsd/devfsd.8
  5. devfsd/expression.c
  6. devfsd/karma.h
  7. devfsd/compat_name.c
  8. devfsd/devfsd.conf
  9. devfsd/devfsd.h
  10. devfsd/GNUmakefile
  11. devfsd/version.h
复制代码

请老大指点。
发表于 2003-11-29 18:03:56 | 显示全部楼层

回复: 有哪位能指点一下devfs,devfsd以及devpts三者的关系呢,烦ing...

最初由 home_king 发表
devfsd老是编译不成功,即使重新编译内核使支持devfs。烦的很。

在lfs文档创建设备节点时,可以用devfsd来代替吗?既然devfs是新式设备文件系统,根据置顶帖子,又知道它能提供pseudo 终端(PTYs)的实现,还能自动加载模块,管理设备节点又比旧式管理更先进,那为什么不干脆用它呢。


如果你用2.6

Please note that ptyfs support has been removed from devfs
* and you have to compile it in now, or else you will get
* errors when trying to open a pty. The option is:
* File systems -> Pseudo filesystems -> /dev/pts filesystem.
 楼主| 发表于 2003-11-29 18:57:18 | 显示全部楼层

no,kernel 2.4.22

I have disabled the "devpts" option in kernel configuration taking the compitablity into accout.

No README in devfsd package, right? Unless I downloads another relevant package not "devfsd" on kernel.org site.
However, /usr/src/linux-2.4.22/Documentation/filesystem/devfs/README provides the detail about devfs(devfsd). I couldn't download devfsd on the url "ftp://ftp.atnf.csiro.au/pub/people/rgooch/linux/daemons/devfsd/devfsd-v1.3.25.tar.gz" referred in that README because I surfs on web through College net.
It's glad to provide me an available url to download devfsd, thanks.

In a word, I'm confused with my compile failure. HELP!
 楼主| 发表于 2003-11-29 19:39:04 | 显示全部楼层

原来我的源码包下载错了,现在可以装上devfsd啦

我在主系统里编译devfsd(正确的源码包)时:
[root@homestudio tmp]# cd devfsd
[root@homestudio devfsd]# ls
compat_name.c  devfsd.c       examples      karma.h
COPYING        devfsd.conf    expression.c  modules.devfs
COPYING-2.0    devfsd.conf.5  GNUmakefile   rpm.spec
devfsd.8       devfsd.h       INSTALL       version.h
[root@homestudio devfsd]# vi INSTALL
[root@homestudio devfsd]# mv GNUmakefile Makefile
[root@homestudio devfsd]# make
cc -O2 -I. -I/usr/src/linux/include -Wall   -DLIBNSL="\"/lib/libnsl.so.1\""   -c -o devfsd.o devfsd.c
devfsd.c:506: `DEVFSD_NOTIFY_DELETE' undeclared here (not in a function)
devfsd.c:506: initializer element is not constant
devfsd.c:506: (near initialization for `event_types[7].type')
devfsd.c:506: initializer element is not constant
devfsd.c:506: (near initialization for `event_types[7]')
devfsd.c:507: initializer element is not constant
devfsd.c:507: (near initialization for `event_types[8]')
make: *** [devfsd.o] Error 1

没有支持devfs的redhat8.0不能成功编译devfsd。但在lfs里却成功啦。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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