[FUG-BR] Erro de Compilação do Kernel no FreeBSD 6.2 Release.

Paulo Henrique paulo.phenrbr em gmail.com
Segunda Março 31 12:56:00 BRT 2008


Olá Lista, Pouco escrevo para a lista mais acompanho diariamente os assuntos
nela discutido.
Bom vim a escrever dessa vez pois não consigo resolver um problema com a
compilação do kernel.

Versão do Sistema: FreeBSD 6.2 Release, e depois com cvsup para p9

Segue o Erro, para melhor comprenssão e junto o arquivo de configuração do
kernel.

Retorno do erro de compilação.


MAKE=make sh /usr/src/sys/conf/newvers.sh ALICEBSD
cc -c -O2 -pipe -fno-strict-aliasing  -Wall -Wredundant-decls
-Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith
-Winline -Wcast-qual  -fformat-extensions -std=c99  -nostdinc -I-  -I.
-I/usr/src/sys -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter
-I/usr/src/sys/contrib/pf -I/usr/src/sys/dev/ath
-I/usr/src/sys/contrib/ngatm -I/usr/src/sys/dev/twa -D_KERNEL
-DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common
-finline-limit=8000 --param inline-unit-growth=100 --param
large-function-growth=1000  -mno-align-long-strings
-mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2
-ffreestanding -Werror  vers.c
linking kernel
ieee80211_crypto_ccmp.o(.text+0x8b): In function `ccmp_setkey':
: undefined reference to `ieee80211_note'
ieee80211_crypto_ccmp.o(.text+0x8de): In function `ccmp_decap':
: undefined reference to `ieee80211_notify_replay_failure'
ieee80211_crypto_ccmp.o(.text+0xbd7): In function `ccmp_decap':
: undefined reference to `ieee80211_note'
ieee80211_crypto_ccmp.o(.text+0xcae): In function `ccmp_decap':
: undefined reference to `ieee80211_note'
ieee80211_crypto_ccmp.o(.text+0xcf3): In function `ccmp_modevent':
: undefined reference to `ieee80211_crypto_unregister'
ieee80211_crypto_ccmp.o(.text+0xd06): In function `ccmp_modevent':
: undefined reference to `ieee80211_crypto_register'
ieee80211_crypto_tkip.o(.text+0x87): In function `tkip_setkey':
: undefined reference to `ieee80211_note'
ieee80211_crypto_tkip.o(.text+0x7d5): In function `tkip_encap':
: undefined reference to `ieee80211_note'
ieee80211_crypto_tkip.o(.text+0xc95): In function `tkip_decap':
: undefined reference to `ieee80211_note'
ieee80211_crypto_tkip.o(.text+0xcd9): In function `tkip_decap':
: undefined reference to `ieee80211_notify_replay_failure'
ieee80211_crypto_tkip.o(.text+0xd08): In function `tkip_decap':
: undefined reference to `ieee80211_note'
ieee80211_crypto_tkip.o(.text+0xe8b): In function `tkip_decap':
: undefined reference to `ieee80211_note'
ieee80211_crypto_tkip.o(.text+0x1499): In function `tkip_demic':
: undefined reference to `ieee80211_notify_michael_failure'
ieee80211_crypto_tkip.o(.text+0x15e3): In function `tkip_modevent':
: undefined reference to `ieee80211_crypto_unregister'
ieee80211_crypto_tkip.o(.text+0x15f6): In function `tkip_modevent':
: undefined reference to `ieee80211_crypto_register'
ieee80211_crypto_wep.o(.text+0x2b): In function `wep_attach':
: undefined reference to `get_random_bytes'
ieee80211_crypto_wep.o(.text+0x3b3): In function `wep_decap':
: undefined reference to `ieee80211_note'
ieee80211_crypto_wep.o(.text+0x3ef): In function `wep_decap':
: undefined reference to `ieee80211_note'
ieee80211_crypto_wep.o(.text+0x779): In function `wep_encap':
: undefined reference to `ieee80211_note'
ieee80211_crypto_wep.o(.text+0x887): In function `wep_modevent':
: undefined reference to `ieee80211_crypto_unregister'
ieee80211_crypto_wep.o(.text+0x89a): In function `wep_modevent':
: undefined reference to `ieee80211_crypto_register'
*** Error code 1

Stop in /usr/obj/usr/src/sys/ALICEBSD.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.

Fim do erro de compilação.

Arquivo de configuração do kernel.

ALICEBSD# cd /usr/src/sys/i386/conf/
ALICEBSD# ls
.cvsignore    DEFAULTS    GENERIC.hints    NOTES        SMP
ALICEBSD    GENERIC        Makefile    PAE        XBOX
ALICEBSD# cat ALICEBSD
#
# GENERIC -- Generic kernel configuration file for FreeBSD/i386
#
# For more information on this file, please read the handbook section on
# Kernel Configuration Files:
#
#
http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html
#
# The handbook is also available locally in /usr/share/doc/handbook
# if you've installed the doc distribution, otherwise always see the
# FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the
# latest information.
#
# An exhaustive list of options and more detailed explanations of the
# device lines is also present in the ../../conf/NOTES and NOTES files.
# If you are in doubt as to the purpose or necessity of a line, check first
# in NOTES.
#
# $FreeBSD: src/sys/i386/conf/GENERIC,v 1.429.2.13 2006/10/09 18:41:36 simon
Exp $

machine        i386
cpu        I686_CPU
ident        ALICEBSD

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

options     SCHED_4BSD        # 4BSD scheduler
options     PREEMPTION        # Enable kernel thread preemption
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     MD_ROOT            # MD is a potential root device
options     NFSCLIENT        # Network Filesystem Client
options     NFSSERVER        # Network Filesystem Server
options     NFS_ROOT        # NFS usable as /, requires NFSCLIENT
options     MSDOSFS            # MSDOS Filesystem
options     CD9660            # ISO 9660 Filesystem
options     PROCFS            # Process filesystem (requires PSEUDOFS)
options     PSEUDOFS        # Pseudo-filesystem framework
options     GEOM_GPT        # GUID Partition Tables.
options     COMPAT_43        # Compatible with BSD 4.3 [KEEP THIS!]
options     COMPAT_FREEBSD4        # Compatible with FreeBSD4
options     COMPAT_FREEBSD5        # Compatible with FreeBSD5
options     SCSI_DELAY=5000        # Delay (in ms) before probing SCSI
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
options     ADAPTIVE_GIANT        # Giant mutex is adaptive.

device        apic            # I/O APIC

#Options e devices diversos

#device        iicbus
#device        ic
#device        iic
#device        iicsmb
options        ENABLE_ALART
options        HZ=1000

#Firewall

options        IPFIREWALL
options        IPFIREWALL_VERBOSE
options        IPFIREWALL_VERBOSE_LIMIT=100
options        IPFIREWALL_DEFAULT_TO_ACCEPT
options        IPFIREWALL_FORWARD
options        IPDIVERT
options        IPSTEALTH
options        DUMMYNET


#Options Sound

device         sound
device        snd_ich

#Compatibilidade

options        COMPAT_LINUX
options        LINSYSFS
options        LINPROCFS
options        SW_WATCHDOG

#Options Networks

options        IPSEC
options        IPSEC_ESP
device        crypto
device        cryptodev

##Httpd COnfigurations

options        ACCEPT_FILTER_HTTP
options        ACCEPT_FILTER_DATA

#Video COnfigurations

options        VESA
options        SC_PIXEL_MODE
options        SC_NORM_ATTR=(FG_GREEN|BG_BLACK)
options        SC_NORM_REV_ATTR=(FG_YELLOW|BG_GREEN)
options        SC_KERNEL_CONS_ATTR=(FG_RED|BG_BLACK)
options        SC_KERNEL_CONS_REV_ATTR=(FG_BLACK|BG_RED)
device         daemon_saver
#Routines Watdogs

device        ichwd
device        hwpmc
options        HWPMC_HOOKS
device        acpi
device        cpufreq

#GEOM Configurations

options        GEOM_BSD
options        GEOM_ELI
options        GEOM_LABEL
options        GEOM_MBR

#Configuration from Semapharo.

options        SEMMAP=31
options        SEMMNI=11
options        SEMMNS=61
options        SEMMNU=31
options        SEMMSL=61
options        SEMOPM=101
options        SEMUME=11
options        SHMALL=1025
options        SHMMAX=(SHMMAXPGS*PAGE_SIZE+1)
options        SHMMAXPGS=1025
options        SHMMIN=2
options        SHMMNI=33
options        SHMSEG=9

#Configuration From Menssages

options        MSGMNB=2049
options        MSGMNI=41
options        MSGSEG=2049
options        MSGSSZ=16
options        MSGTQL=41
options        NBUF=512

# Bus support.
device        eisa
device        pci

# Floppy drives
device        fdc

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

# SCSI peripherals
device        scbus        # SCSI bus (required for SCSI)
device        ch        # SCSI media changers
device        da        # Direct Access (disks)
device        sa        # Sequential Access (tape etc)
device        cd        # CD
device        pass        # Passthrough device (direct SCSI access)
device        ses        # SCSI Environmental Services (and SAF-TE)

# 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        kbdmux        # keyboard multiplexer

device        vga        # VGA video card driver

device        splash        # Splash screen and screen saver support

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

# Enable this for the pcvt (VT220 compatible) console driver
#device        vt
options     XSERVER        # support for X server on a vt console
options     FAT_CURSOR    # start with block cursor

device        agp        # support several AGP chipsets

# Add suspend/resume support for the i8254.
device        pmtimer

# PCMCIA and cardbus bridge support
device        cbb        # cardbus (yenta) bridge
device        pccard        # PC Card (16-bit) bus
device        cardbus        # CardBus (32-bit) bus

# Serial (COM) ports
device        sio        # 8250, 16[45]50 based serial ports

# Parallel port
device        ppc
device        ppbus        # Parallel port bus (required)
device        lpt        # Printer
device        plip        # TCP/IP over parallel
device        ppi        # Parallel port interface device
#device        vpo        # Requires scbus and da

# If you've got a "dumb" serial or parallel PCI card that is
# supported by the puc(4) glue driver, uncomment the following
# line to enable it (connects to the sio and/or ppc drivers):
#device        puc

# PCI Ethernet NICs.
device        em        # Intel PRO/1000 adapter Gigabit Ethernet Card

# 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

# ISA Ethernet NICs.  pccard NICs included.

# Wireless NIC cards
#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

# Pseudo devices.
device        loop        # Network loopback
device        random        # Entropy device
device        ether        # Ethernet support
device        sl        # Kernel SLIP
device        ppp        # Kernel PPP
device        tun        # Packet tunnel.
device        pty        # Pseudo-ttys (telnet etc)
device        md        # Memory "disks"
device        gif        # IPv6 and IPv4 tunneling
device        faith        # IPv6-to-IPv4 relaying (translation)

# The `bpf' device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
# Note that 'bpf' is required for DHCP.
device        bpf        # Berkeley packet filter

# USB support
device        uhci        # UHCI PCI->USB interface
device        ohci        # OHCI PCI->USB interface
device        ehci        # EHCI PCI->USB interface (USB 2.0)
device        usb        # USB Bus (required)
device        ugen        # Generic
device        uhid        # "Human Interface Devices"
device        ukbd        # Keyboard
device        ulpt        # Printer
device        umass        # Disks/Mass storage - Requires scbus and da
device        ums        # Mouse

# FireWire support
device        firewire    # FireWire bus code
device        sbp        # SCSI over FireWire (Requires scbus and da)
device        fwe        # Ethernet over FireWire (non-standard!)
ALICEBSD#

Fim do Arquivo de Compilação do kernel.

O Mesmo erro acontece com o Arquivo GENERIC, e com a instalação sem
atualização do Sources do sistema apartir do CD.
Já utilizei diversas vezes o mesmo CD para compilar o sistema e até hoje não
tive problema semelhante.
Até no momento penso ser problema com a propria ferramenta de
desenvolvimento GCC. mais reinstalei ele duas vezes e não consegui solução.
Esse erro só aconteceu na minha estação desktop, no qual uso para manter
como base de testes.
O mesmo arquivo de configuração foi utilizado em outra maquina e não ocorreu
nenhum problema do tipo. Hardware equivalentes de Fabricante e velocidade.

Desde já Agradeço a qualquer ajuda.

Obrigado.

-- 
Atenciosamente Paulo Henrique. To Powered By  BSD Unix.


Mais detalhes sobre a lista de discussão freebsd