kernel-build 和 kernel-header 的差異

如果您覺得您的問題不屬於 debian desktop 或是 debian server 版的範圍內,請在這裡發問。

版主: mufa

kernel-build 和 kernel-header 的差異

文章descent » 週四 11月 13, 2003 10:23 am

需要 kernel header compiler kernel module
或是需要 kernel header file 的軟體時,
是要安裝 kernel-build, 還是 kernel-header
又有什麼差異呢?
descent
可愛的小學生
可愛的小學生
 
文章: 48
註冊時間: 週五 11月 22, 2002 2:09 pm

re:kernel-build 和 kernel-header 的差異

文章阿信 » 週四 11月 13, 2003 10:36 am

may you give some example of the programs that need the "kernel-build"?

Kernel Header or Kernel Source may be needed indeed while compiling the kernel module

I know that there is a kernel-build in the port tree. However...there is no need to install with vmware or nvidia kernel modules...
頭像
阿信
版面大總管
版面大總管
 
文章: 4756
註冊時間: 週二 9月 03, 2002 11:58 pm
來自: 台灣 - 嘉義

re:kernel-build 和 kernel-header 的差異

文章訪客 » 週四 11月 13, 2003 1:23 pm

我試著編譯 e2fsprogs

apt-get -b source e2fsprogs


In file included from /root/e2fsprogs-1.34+1.35-WIP-2003.08.21/misc/util.c:30:
/root/e2fsprogs-1.34+1.35-WIP-2003.08.21/lib/ext2fs/ext2fs.h:435:3: warning: #warning "Compression support is experimental"
/root/e2fsprogs-1.34+1.35-WIP-2003.08.21/misc/util.c: In function `check_plausibility':
/root/e2fsprogs-1.34+1.35-WIP-2003.08.21/misc/util.c:116: error: `SCSI_DISK_MAJOR' undeclared (first use in this function)
/root/e2fsprogs-1.34+1.35-WIP-2003.08.21/misc/util.c:116: error: (Each undeclared identifier is reported only once
/root/e2fsprogs-1.34+1.35-WIP-2003.08.21/misc/util.c:116: error: for each function it appears in.)
make[3]: *** [util.o] Error 1

我猜測可能是 kernel header 有問題。

我是用 unstable 版本。
訪客
 

re:kernel-build 和 kernel-header 的差異

文章阿信 » 週四 11月 13, 2003 3:19 pm

hi...

I built the e2fsprogs and did sucessfully...

I did't install the kernel-build but kernel-headers
頭像
阿信
版面大總管
版面大總管
 
文章: 4756
註冊時間: 週二 9月 03, 2002 11:58 pm
來自: 台灣 - 嘉義

re:kernel-build 和 kernel-header 的差異

文章訪客 » 週五 11月 14, 2003 10:22 am

我將 /usr/include/asm 換成 kernel header 的 include/asm
/usr/include/linux 換成 kernel header 的 include/linux
就可以了, 我想是安裝 kernel header 時, apt 沒有更換這部份吧。
不是用 apt-get -b source e2fsprogs
而是直接用 tar ball 的 e2fsprogs,
可以正確 compiler。
我的 kernel 2.4.22-1-686。
訪客
 

re:kernel-build 和 kernel-header 的差異

文章阿信 » 週五 11月 14, 2003 10:49 am

Anonymous 寫:我將 /usr/include/asm 換成 kernel header 的 include/asm
/usr/include/linux 換成 kernel header 的 include/linux
就可以了, 我想是安裝 kernel header 時, apt 沒有更換這部份吧。
不是用 apt-get -b source e2fsprogs
而是直接用 tar ball 的 e2fsprogs,
可以正確 compiler。
我的 kernel 2.4.22-1-686。


hmmm....I think there is something strange... :-)

the /usr/include/asm is provided by the libc6-dev.

Did you install the libc6-dev?

My system have kernel-headers.deb libc6-dev. The /usr/include/asm is provided by the libc6-dev.

I compiled the e2fsprogs with unstable and succeeded.
頭像
阿信
版面大總管
版面大總管
 
文章: 4756
註冊時間: 週二 9月 03, 2002 11:58 pm
來自: 台灣 - 嘉義

re:kernel-build 和 kernel-header 的差異

文章訪客 » 週五 11月 14, 2003 12:04 pm

ii libc5 5.4.46-15 The Linux C library version 5
ii libc5-altdev 5.4.46-15 The Linux C library version 5
ii libc6 2.3.2.ds1-10 GNU C Library: Shared libraries
ii libc6-dev 2.3.2.ds1-10 GNU C Library: Development

我也搞不清楚, 上面是我安裝的套件。

更正 /usr/include/asm 換成 kernel header 的 include/asm-i386
才對。
訪客
 

re:kernel-build 和 kernel-header 的差異

文章訪客 » 週五 11月 14, 2003 12:09 pm

$ dpkg -L libc6-dev
/.

/usr/include
/usr/include/_G_config.h
/usr/include/a.out.h
/usr/include/aio.h
/usr/include/aliases.h
/usr/include/alloca.h
/usr/include/ar.h
/usr/include/argp.h
/usr/include/argz.h
/usr/include/arpa
/usr/include/arpa/nameser.h
/usr/include/arpa/nameser_compat.h
/usr/include/arpa/ftp.h
/usr/include/arpa/inet.h
/usr/include/arpa/telnet.h
/usr/include/arpa/tftp.h
/usr/include/assert.h
/usr/include/bits
/usr/include/bits/libc-lock.h
/usr/include/bits/xopen_lim.h
/usr/include/bits/locale.h
/usr/include/bits/mathcalls.h
/usr/include/bits/mathinline.h
/usr/include/bits/huge_val.h
/usr/include/bits/nan.h
/usr/include/bits/cmathcalls.h
/usr/include/bits/fenv.h
/usr/include/bits/fenvinline.h
/usr/include/bits/mathdef.h
/usr/include/bits/setjmp.h
/usr/include/bits/signum.h
/usr/include/bits/sigcontext.h
/usr/include/bits/sigaction.h
/usr/include/bits/sigset.h
/usr/include/bits/siginfo.h
/usr/include/bits/sigstack.h
/usr/include/bits/sigthread.h
/usr/include/bits/wordsize.h
/usr/include/bits/wchar.h
/usr/include/bits/errno.h
/usr/include/bits/stdio_lim.h
/usr/include/bits/stdio.h
/usr/include/bits/stdio-lock.h
/usr/include/bits/sys_errlist.h
/usr/include/bits/dlfcn.h
/usr/include/bits/endian.h
/usr/include/bits/byteswap.h
/usr/include/bits/string.h
/usr/include/bits/string2.h
/usr/include/bits/time.h
/usr/include/bits/dirent.h
/usr/include/bits/types.h
/usr/include/bits/typesizes.h
/usr/include/bits/pthreadtypes.h
/usr/include/bits/posix1_lim.h
/usr/include/bits/posix2_lim.h
/usr/include/bits/posix_opt.h
/usr/include/bits/local_lim.h
/usr/include/bits/utsname.h
/usr/include/bits/confname.h
/usr/include/bits/waitflags.h
/usr/include/bits/waitstatus.h
/usr/include/bits/sched.h
/usr/include/bits/environments.h
/usr/include/bits/initspin.h
/usr/include/bits/stat.h
/usr/include/bits/statfs.h
/usr/include/bits/statvfs.h
/usr/include/bits/fcntl.h
/usr/include/bits/poll.h
/usr/include/bits/termios.h
/usr/include/bits/resource.h
/usr/include/bits/uio.h
/usr/include/bits/ioctls.h
/usr/include/bits/ioctl-types.h
/usr/include/bits/stab.def
/usr/include/bits/ustat.h
/usr/include/bits/select.h
/usr/include/bits/mman.h
/usr/include/bits/a.out.h
/usr/include/bits/syscall.h
/usr/include/bits/sockaddr.h
/usr/include/bits/socket.h
/usr/include/bits/ipctypes.h
/usr/include/bits/ipc.h
/usr/include/bits/msq.h
/usr/include/bits/sem.h
/usr/include/bits/shm.h
/usr/include/bits/netdb.h
/usr/include/bits/in.h
/usr/include/bits/stropts.h
/usr/include/bits/xtitypes.h
/usr/include/bits/utmp.h
/usr/include/bits/utmpx.h
/usr/include/bits/elfclass.h
/usr/include/byteswap.h
/usr/include/complex.h
/usr/include/cpio.h
/usr/include/crypt.h
/usr/include/ctype.h
/usr/include/dirent.h
/usr/include/dlfcn.h
/usr/include/elf.h
/usr/include/endian.h
/usr/include/envz.h
/usr/include/err.h
/usr/include/errno.h
/usr/include/error.h
/usr/include/execinfo.h
/usr/include/fcntl.h
/usr/include/features.h
/usr/include/fenv.h
/usr/include/fmtmsg.h
/usr/include/fnmatch.h
/usr/include/fpu_control.h
/usr/include/fstab.h
/usr/include/fts.h
/usr/include/ftw.h
/usr/include/gconv.h
/usr/include/getopt.h
/usr/include/glob.h
/usr/include/gnu
/usr/include/gnu/libc-version.h
/usr/include/gnu/lib-names.h
/usr/include/gnu/stubs.h
/usr/include/gnu-versions.h
/usr/include/grp.h
/usr/include/iconv.h
/usr/include/ieee754.h
/usr/include/ifaddrs.h
/usr/include/inttypes.h
/usr/include/langinfo.h
/usr/include/lastlog.h
/usr/include/libgen.h
/usr/include/libintl.h
/usr/include/libio.h
/usr/include/limits.h
/usr/include/link.h
/usr/include/locale.h
/usr/include/malloc.h
/usr/include/math.h
/usr/include/mcheck.h
/usr/include/memory.h
/usr/include/mntent.h
/usr/include/monetary.h
/usr/include/net
/usr/include/net/if.h
/usr/include/net/if_ppp.h
/usr/include/net/ppp-comp.h
/usr/include/net/ppp_defs.h
/usr/include/net/if_arp.h
/usr/include/net/route.h
/usr/include/net/ethernet.h
/usr/include/net/if_slip.h
/usr/include/net/if_shaper.h
/usr/include/net/if_packet.h
/usr/include/netash
/usr/include/netash/ash.h
/usr/include/netatalk
/usr/include/netatalk/at.h
/usr/include/netax25
/usr/include/netax25/ax25.h
/usr/include/netdb.h
/usr/include/neteconet
/usr/include/neteconet/ec.h
/usr/include/netinet
/usr/include/netinet/ether.h
/usr/include/netinet/in.h
/usr/include/netinet/in_systm.h
/usr/include/netinet/if_ether.h
/usr/include/netinet/igmp.h
/usr/include/netinet/tcp.h
/usr/include/netinet/ip.h
/usr/include/netinet/ip6.h
/usr/include/netinet/icmp6.h
/usr/include/netinet/if_fddi.h
/usr/include/netinet/if_tr.h
/usr/include/netinet/ip_icmp.h
/usr/include/netinet/udp.h
/usr/include/netipx
/usr/include/netipx/ipx.h
/usr/include/netpacket
/usr/include/netpacket/packet.h
/usr/include/netrom
/usr/include/netrom/netrom.h
/usr/include/netrose
/usr/include/netrose/rose.h
/usr/include/nfs
/usr/include/nfs/nfs.h
/usr/include/nl_types.h
/usr/include/nss.h
/usr/include/obstack.h
/usr/include/paths.h
/usr/include/poll.h
/usr/include/printf.h
/usr/include/protocols
/usr/include/protocols/routed.h
/usr/include/protocols/rwhod.h
/usr/include/protocols/talkd.h
/usr/include/protocols/timed.h
/usr/include/pthread.h
/usr/include/pty.h
/usr/include/pwd.h
/usr/include/re_comp.h
/usr/include/regex.h
/usr/include/regexp.h
/usr/include/resolv.h
/usr/include/rpc
/usr/include/rpc/auth_unix.h
/usr/include/rpc/auth.h
/usr/include/rpc/clnt.h
/usr/include/rpc/netdb.h
/usr/include/rpc/pmap_clnt.h
/usr/include/rpc/pmap_prot.h
/usr/include/rpc/pmap_rmt.h
/usr/include/rpc/rpc.h
/usr/include/rpc/rpc_msg.h
/usr/include/rpc/svc.h
/usr/include/rpc/svc_auth.h
/usr/include/rpc/types.h
/usr/include/rpc/xdr.h
/usr/include/rpc/auth_des.h
/usr/include/rpc/des_crypt.h
/usr/include/rpc/key_prot.h
/usr/include/rpc/rpc_des.h
/usr/include/rpcsvc
/usr/include/rpcsvc/bootparam_prot.x
/usr/include/rpcsvc/nlm_prot.x
/usr/include/rpcsvc/rstat.x
/usr/include/rpcsvc/yppasswd.x
/usr/include/rpcsvc/klm_prot.x
/usr/include/rpcsvc/rex.x
/usr/include/rpcsvc/sm_inter.x
/usr/include/rpcsvc/mount.x
/usr/include/rpcsvc/rusers.x
/usr/include/rpcsvc/spray.x
/usr/include/rpcsvc/nfs_prot.x
/usr/include/rpcsvc/rquota.x
/usr/include/rpcsvc/key_prot.x
/usr/include/rpcsvc/bootparam.h
/usr/include/rpcsvc/bootparam_prot.h
/usr/include/rpcsvc/nlm_prot.h
/usr/include/rpcsvc/rstat.h
/usr/include/rpcsvc/yppasswd.h
/usr/include/rpcsvc/klm_prot.h
/usr/include/rpcsvc/rex.h
/usr/include/rpcsvc/sm_inter.h
/usr/include/rpcsvc/mount.h
/usr/include/rpcsvc/rusers.h
/usr/include/rpcsvc/spray.h
/usr/include/rpcsvc/nfs_prot.h
/usr/include/rpcsvc/rquota.h
/usr/include/rpcsvc/key_prot.h
/usr/include/rpcsvc/nis.h
/usr/include/rpcsvc/nis.x
/usr/include/rpcsvc/nis_callback.h
/usr/include/rpcsvc/nis_callback.x
/usr/include/rpcsvc/nis_object.x
/usr/include/rpcsvc/nis_tags.h
/usr/include/rpcsvc/nislib.h
/usr/include/rpcsvc/yp.h
/usr/include/rpcsvc/yp.x
/usr/include/rpcsvc/yp_prot.h
/usr/include/rpcsvc/ypclnt.h
/usr/include/rpcsvc/ypupd.h
/usr/include/sched.h
/usr/include/scsi
/usr/include/scsi/sg.h
/usr/include/scsi/scsi.h
/usr/include/scsi/scsi_ioctl.h
/usr/include/search.h
/usr/include/semaphore.h
/usr/include/setjmp.h
/usr/include/sgtty.h
/usr/include/shadow.h
/usr/include/signal.h
/usr/include/spawn.h
/usr/include/stab.h
/usr/include/stdint.h
/usr/include/stdio.h
/usr/include/stdio_ext.h
/usr/include/stdlib.h
/usr/include/string.h
/usr/include/strings.h
/usr/include/stropts.h
/usr/include/sys
/usr/include/sys/signal.h
/usr/include/sys/ucontext.h
/usr/include/sys/errno.h
/usr/include/sys/time.h
/usr/include/sys/timeb.h
/usr/include/sys/timex.h
/usr/include/sys/utsname.h
/usr/include/sys/times.h
/usr/include/sys/wait.h
/usr/include/sys/types.h
/usr/include/sys/unistd.h
/usr/include/sys/sysmacros.h
/usr/include/sys/stat.h
/usr/include/sys/statfs.h
/usr/include/sys/vfs.h
/usr/include/sys/statvfs.h
/usr/include/sys/fcntl.h
/usr/include/sys/poll.h
/usr/include/sys/sendfile.h
/usr/include/sys/ttydefaults.h
/usr/include/sys/termios.h
/usr/include/sys/ttychars.h
/usr/include/sys/resource.h
/usr/include/sys/vlimit.h
/usr/include/sys/vtimes.h
/usr/include/sys/uio.h
/usr/include/sys/ioctl.h
/usr/include/sys/ptrace.h
/usr/include/sys/file.h
/usr/include/sys/dir.h
/usr/include/sys/cdefs.h
/usr/include/sys/syslog.h
/usr/include/sys/reboot.h
/usr/include/sys/mman.h
/usr/include/sys/param.h
/usr/include/sys/queue.h
/usr/include/sys/syscall.h
/usr/include/sys/swap.h
/usr/include/sys/select.h
/usr/include/sys/ustat.h
/usr/include/sys/sysinfo.h
/usr/include/sys/xattr.h
/usr/include/sys/elf.h
/usr/include/sys/perm.h
/usr/include/sys/reg.h
/usr/include/sys/vm86.h
/usr/include/sys/debugreg.h
/usr/include/sys/io.h
/usr/include/sys/mount.h
/usr/include/sys/acct.h
/usr/include/sys/sysctl.h
/usr/include/sys/klog.h
/usr/include/sys/kdaemon.h
/usr/include/sys/user.h
/usr/include/sys/procfs.h
/usr/include/sys/prctl.h
/usr/include/sys/kd.h
/usr/include/sys/soundcard.h
/usr/include/sys/vt.h
/usr/include/sys/quota.h
/usr/include/sys/fsuid.h
/usr/include/sys/pci.h
/usr/include/sys/ultrasound.h
/usr/include/sys/raw.h
/usr/include/sys/personality.h
/usr/include/sys/epoll.h
/usr/include/sys/mtio.h
/usr/include/sys/socket.h
/usr/include/sys/un.h
/usr/include/sys/socketvar.h
/usr/include/sys/ipc.h
/usr/include/sys/msg.h
/usr/include/sys/sem.h
/usr/include/sys/shm.h
/usr/include/sys/gmon.h
/usr/include/sys/gmon_out.h
/usr/include/sys/profil.h
/usr/include/sys/bitypes.h
/usr/include/sys/stropts.h
/usr/include/syscall.h
/usr/include/sysexits.h
/usr/include/syslog.h
/usr/include/tar.h
/usr/include/termio.h
/usr/include/termios.h
/usr/include/tgmath.h
/usr/include/thread_db.h
/usr/include/time.h
/usr/include/ttyent.h
/usr/include/ucontext.h
/usr/include/ulimit.h
/usr/include/unistd.h
/usr/include/ustat.h
/usr/include/utime.h
/usr/include/utmp.h
/usr/include/utmpx.h
/usr/include/values.h
/usr/include/wait.h
/usr/include/wchar.h
/usr/include/wctype.h
/usr/include/wordexp.h
/usr/include/xlocale.h

好像沒有 asm 耶?
訪客
 

re:kernel-build 和 kernel-header 的差異

文章阿信 » 週五 11月 14, 2003 12:16 pm

#dpkg -L libc6-dev

/usr/include/asm
/usr/include/asm/apicdef.h
/usr/include/asm/a.out.h
....
....
....

:-?
頭像
阿信
版面大總管
版面大總管
 
文章: 4756
註冊時間: 週二 9月 03, 2002 11:58 pm
來自: 台灣 - 嘉義


回到 debian misc

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 1 位訪客

cron