LinuxSir.cn,穿越时空的Linuxsir!

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

freebsd5.1 (stable-supfile)用RELENG_5_2标志更新源码,编译内核过不去!?

[复制链接]
发表于 2004-2-22 14:00:25 | 显示全部楼层 |阅读模式
执行 cvsup -g L 2 stable-supfile
cvsup站点用的 cvsup.freebsdchina.org
ports树也更新了!

内核配置文件:
machine i386
cpu I686_CPU
ident MYBSD
#masusers 0

#To statically compile in device wiring instead of /boot/device.hints
#hints "GENERIC.hints" #Default places to look for devices.

#makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols

#options SCHED_4BSD #4BSD scheduler
options SCHED_ULE
options INET #InterNETworking
#options INET6 #IPv6 communications protocols
options FFS #Berkeley Fast Filesystem
options SOFTUPDATES #Enable FFS soft updates support

options UFS_ACL #Support for access control lists
options UFS_DIRHASH #Improve performance on big directories
options CD9660
#ISO 9660 Filesystem
options PROCFS #Process filesystem (requires PSEUDOFS)
options PSEUDOFS #Pseudo-filesystem framework
options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!]
options COMPAT_FREEBSD4 #Compatible with FreeBSD4
options KTRACE #ktrace(1) support
options SYSVSHM #SYSV-style shared memory
options SYSVMSG #SYSV-style message queues
options SYSVSEM #SYSV-style semaphores
options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions
options KBD_INSTALL_CDEV # install a CDEV entry in /dev

device isa
device eisa
device pci

# Floppy drives
device fdc
options AUTO_EOI_1
options IPFILTER
options IPFILTER_DEFAULT_BLOCK
options RANDOM_IP_ID
options TCP_DROP_SYNFIN
options ZERO_COPY_SOCKETS
device crypto
device cryptodev
device hifn

# ATA and ATAPI devices
device ata
device atadisk # ATA disk drives
device atapicd # ATAPI CDROM drives
#device atapifd # ATAPI floppy drives
#device atapist # ATAPI tape drives
#options ATA_STATIC_ID #Static device numbering

# atkbdc0 controls both the keyboard and the PS/2 mouse
device atkbdc # AT keyboard controller
device atkbd # AT keyboard
#device psm # PS/2 mouse
device vga # VGA video card driver

# syscons is the default console driver, resembling an SCO console
device sc

# Enable this for the pcvt (VT220 compatible) console driver
#options FAT_CURSOR # start with block cursor

device agp # support several AGP chipsets


# Floating point support - do not disable.
device npx
# Serial (COM) ports
device sio # 8250, 16[45]50 based serial ports

# PCI Ethernet NICs that use the common MII bus controller code.
# NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
device miibus # MII bus support

device rl # RealTek 8129/8139


# Pseudo devices - the number indicates how many units to allocate.
device random # Entropy device
device loop # Network loopback
device ether # Ethernet support
device tun # Packet tunnel.
device pty # Pseudo-ttys (telnet etc)

# The `bpf' device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
device bpf # Berkeley packet filter
-------------------------------------------------------------------
错误信息:
cc -c -O -pipe -mcpu=pentiumpro -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I../../.. -I../../../contrib/dev/acpica -I../../../contrib/ipfilter -I../../../contrib/dev/ath -I../../../contrib/dev/ath/freebsd -I../../../contrib/ngatm -D_KERNEL -include opt_global.h -fno-common -finline-limit=15000 -fno-strict-aliasing -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding -Werror ../../../contrib/ipfilter/netinet/ip_fil.c
../../../contrib/ipfilter/netinet/ip_fil.c: In function `fr_check_wrapper':
../../../contrib/ipfilter/netinet/ip_fil.c:319: `PFIL_OUT' undeclared (first use in this function)
../../../contrib/ipfilter/netinet/ip_fil.c:319: (Each undeclared identifier is reported only once
../../../contrib/ipfilter/netinet/ip_fil.c:319: for each function it appears in.)
cc1: warnings being treated as errors
../../../contrib/ipfilter/netinet/ip_fil.c: In function `iplattach':
../../../contrib/ipfilter/netinet/ip_fil.c:376: warning: unused variable `ph_inet'
machine/in_cksum.h: At top level:
../../../contrib/ipfilter/netinet/ip_fil.c:317: warning: `fr_check_wrapper' defined but not used
*** Error code 1

Stop in /usr/src/sys/i386/compile/kernel_conf.
-----------------------------------------------------------------------
 楼主| 发表于 2004-2-22 17:28:30 | 显示全部楼层
是不是因为少执行了make world呀!?执行中。。。。。。,再说!
发表于 2004-2-22 20:28:41 | 显示全部楼层
你是用什么方法编译的,老的方法or新方法?
http://www.linuxsir.cn/forum.php?mod=viewthread&tid=82366
我用新方法通不过,但用老方法就可以了
发表于 2004-2-22 22:22:03 | 显示全部楼层
靓仔, 升级了源代码后要先make world才能再编译内核! 最好看看FreeBSD Handbook!
 楼主| 发表于 2004-2-23 10:25:19 | 显示全部楼层
谢谢,但是我make world竟然失败了,是不是要进入单用户模式呀!我看有些文章没说要进入单用户模式呀!?
 楼主| 发表于 2004-2-23 10:29:26 | 显示全部楼层
再一个,freebsd支持AMD系列cpu吗?我新下的5。2。1怎么在xp2000+上安装不上!
发表于 2004-2-23 10:30:42 | 显示全部楼层
不用, 可能是你哪一步操作错误! 最好先多看看handbook。

cvsup source
make buildworld
make buildkernel KERNCONF=mykernel
make installkernel KERNCONF=mykernel
make installworld
reboot

我一般是这几步操作!
 楼主| 发表于 2004-2-23 19:08:48 | 显示全部楼层
3ks
发表于 2004-4-10 14:25:33 | 显示全部楼层
如果buildworld出错该怎么办?
发表于 2004-4-11 23:30:02 | 显示全部楼层
最初由 rainren 发表
不用, 可能是你哪一步操作错误! 最好先多看看handbook。

cvsup source
make buildworld
make buildkernel KERNCONF=mykernel
make installkernel KERNCONF=mykernel
make installworld
reboot

我一般是这几步操作!


升了src以后,
再make world
然后再make kernel KERNCONF=mykernel

这样行吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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