7.3-RELEASE: unable to compile custom kernel
Jiansong Liu
jiansong.liu at effective-world.com
Thu May 13 09:45:23 UTC 2010
Try to compile it again without the -j option, will help to figure out
where is going wrong exactly.
Cheers,
Jiansong
On Wed, May 12, 2010 at 5:50 PM, Antonio Kless <antoniok.spb at gmail.com> wrote:
> Hello. I trying to build custom kernel to enable packet-filter.
>
> # uname -a
> FreeBSD host.net 7.3-RELEASE FreeBSD 7.3-RELEASE #0: Sun Mar 21 05:25:24 UTC
> 2010 root at driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
>
> # export
> declare -x BLOCKSIZE="K"
> declare -x FTP_PASSIVE_MODE="YES"
> declare -x HISTCONTROL="ignorespace"
> declare -x HOME="/root"
> declare -x LOGNAME="root"
> declare -x MAIL="/var/mail/root"
> declare -x MC_CONTROL_FILE="/tmp/mc.822.control"
> declare -x MC_CONTROL_PID="822"
> declare -x OLDPWD="/usr/src/sys/amd64"
> declare -x PAGER="more"
> declare -x
> PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin"
> declare -x PWD="/usr/src/sys/amd64/conf"
> declare -x SHELL="/usr/local/bin/bash"
> declare -x SHLVL="2"
> declare -x SSH_CLIENT="<my ip>"
> declare -x SSH_CONNECTION="<my ip>"
> declare -x SSH_TTY="/dev/ttyp0"
> declare -x TERM="xterm"
> declare -x USER="root"
>
> # pwd
> /usr/src/sys/amd64/conf
>
> # diff GENERIC
> ALTERKERN
>
> 22c22
>
> < ident
> GENERIC
>
> ---
>
>> ident
> ALTERKERN
>
> 43c43
>
> < options NFS_ROOT # NFS usable as /, requires
> NFSCLIENT
>
> ---
>
>> #options NFS_ROOT # NFS usable as /, requires
> NFSCLIENT
>
> 76a77,92
>
>> #
> PF
>
>> device pf # enable PF OpenBSD packet-filter
> firewall
>
>> device pflog # logging support interface for
> PF
>
>> device pfsync # Synchronization interface for
> PF
>
>> device carp # Common Address Redundancy
> Protocol
>
>>
>
>> # PF traffic
> shaper
>
>> options
> ALTQ
>
>> options ALTQ_CBQ # Class Bases
> Queueing
>
>> options ALTQ_RED # Random Early
> Detection
>
>> options ALTQ_RIO # RED
> In/Out
>
>> options ALTQ_HFSC # Hierarchical Packet
> Scheduler
>
>> options ALTQ_CDNR # Traffic
> conditioner
>
>> options ALTQ_PRIQ # Priority
> Queueing
>
>> options ALTQ_NOPCC # Required for SMP
> build
>
>>
>
> 238,252c254,268
>
> < device wlan # 802.11
> support
>
> < device wlan_wep # 802.11 WEP
> support
>
> < device wlan_ccmp # 802.11 CCMP
> support
>
> < device wlan_tkip # 802.11 TKIP
> support
>
> < device wlan_amrr # AMRR transmit rate control
> algorithm
>
> < device wlan_scan_ap # 802.11 AP mode
> scanning
>
> < device wlan_scan_sta # 802.11 STA mode scanning
> < device an # Aironet 4500/4800 802.11 wireless
> NICs.
> < device ath # Atheros pci/cardbus NIC's
> < device ath_hal # Atheros HAL (Hardware Access
> Layer)
> < options AH_SUPPORT_AR5416 # enable AR5416 tx/rx
> descriptors
> < device ath_rate_sample # SampleRate tx rate control for ath
> < device awi # BayStack 660 and others
> < device ral # Ralink Technology RT2500 wireless
> NICs.
> < device wi # WaveLAN/Intersil/Symbol 802.11
> wireless NICs.
> ---
>> #device wlan # 802.11 support
>> #device wlan_wep # 802.11 WEP support
>> #device wlan_ccmp # 802.11 CCMP support
>> #device wlan_tkip # 802.11 TKIP support
>> #device wlan_amrr # AMRR transmit rate control
> algorithm
>> #device wlan_scan_ap # 802.11 AP mode scanning
>> #device wlan_scan_sta # 802.11 STA mode scanning
>> #device an # Aironet 4500/4800 802.11 wireless
> NICs.
>> #device ath # Atheros pci/cardbus NIC's
>> #device ath_hal # Atheros HAL (Hardware Access
> Layer)
>> #options AH_SUPPORT_AR5416 # enable AR5416 tx/rx
> descriptors
>> #device ath_rate_sample # SampleRate tx rate control for ath
>> #device awi # BayStack 660 and others
>> #device ral # Ralink Technology RT2500 wireless
> NICs.
>> #device wi # WaveLAN/Intersil/Symbol 802.11
> wireless NICs.
>
> # cd ../../../ && make -j16 buildkernel KERNCONF=ALTERKERN
> <...snip...>
> ===> zyd
> (all)
>
> cc -O2 -fno-strict-aliasing -pipe -D_KERNEL -DKLD_MODULE -std=c99
> -nostdinc -DHAVE_KERNEL_OPTION_HEADERS -include
> /usr/obj/usr/src/sys/ALTERKERN/opt_global.h -I. -I@ -I@/contrib/altq
> -finline-limit=8000 --param inline-unit-growth=100 --param
> large-function-growth=1000 -fno-common -g -fno-omit-frame-pointer
> -I/usr/obj/usr/src/sys/ALTERKERN -mcmodel=kernel -mno-red-zone -mfpmath=387
> -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float
> -fno-asynchronous-unwind-tables -ffreestanding -Wall -Wredundant-decls
> -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
> -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c
> /usr/src/sys/modules/zyd/../../dev/usb/if_zyd.c
>
> ld -d -warn-common -r -d -o if_zyd.ko.debug
> if_zyd.o
>
> :>
> export_syms
>
> awk -f /usr/src/sys/conf/kmod_syms.awk if_zyd.ko.debug export_syms | xargs
> -J% objcopy %
> if_zyd.ko.debug
> objcopy --only-keep-debug if_zyd.ko.debug
> if_zyd.ko.symbols
>
> objcopy --strip-debug --add-gnu-debuglink=if_zyd.ko.symbols if_zyd.ko.debug
> if_zyd.ko
>
> 1
> error
>
> *** Error code
> 2
>
> 1
> error
>
> *** Error code
> 2
>
> 1
> error
>
>
>
> What do I do wrong? This kernel configuration was OK for 7.2 RELEASE, but
> doesn't works with 7.3.
>
>
> --
> Best regards,
> Antonio Kless,
> http://kless.spb.ru/
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>
More information about the freebsd-questions
mailing list