building new kernel fails during build of 'ath' driver

From: Streiner, Justin (streiner_at_stargate.net)
Date: 04/09/04

  • Next message: Ion-Mihai Tetcu: "Re: any unusual inode problems with 4.9-RELEASE?"
    Date: Thu, 8 Apr 2004 18:16:51 -0400 (EDT)
    To: freebsd-questions@freebsd.org
    
    

    version: 5.2.1

    I added this driver in my kernel config to natively support my
    Atheros-based wireless NIC (Netgear WCG311 I think). The build fails
    immediately after starting to link the necessary objects together. I
    didn't notice any unusual errors during the compile phase.

    linking kernel
    if_ath.o: In function `ath_attach':
    if_ath.o(.text+0x84): undefined reference to `ath_hal_attach'
    if_ath.o: In function `ath_tx_start':
    if_ath.o(.text+0x3468): undefined reference to `ath_hal_computetxtime'
    if_ath.o(.text+0x34e6): undefined reference to `ath_hal_computetxtime'
    if_ath.o(.text+0x3514): undefined reference to `ath_hal_computetxtime'
    if_ath.o(.text+0x3548): undefined reference to `ath_hal_computetxtime'
    if_ath.o: In function `ath_getchannels':
    if_ath.o(.text+0x46b3): undefined reference to `ath_hal_init_channels'
    if_ath.o(.text+0x4715): undefined reference to `ath_hal_mhz2ieee'
    if_ath.o(.data+0x20): undefined reference to `sysctl__hw_ath_children'
    if_ath.o(.data+0x60): undefined reference to `sysctl__hw_ath_children'
    if_ath.o(.data+0xa0): undefined reference to `sysctl__hw_ath_children'
    if_ath.o(.data+0xe0): undefined reference to `sysctl__hw_ath_children'
    if_ath.o(.data+0x120): undefined reference to `sysctl__hw_ath_children'
    if_ath.o(.data+0x160): more undefined references to
    `sysctl__hw_ath_children' follow
    if_ath_pci.o: In function `ath_pci_probe':
    if_ath_pci.o(.text+0xd4): undefined reference to `ath_hal_probe'
    *** Error code 1

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

    It looks like the system found a header file that defined the function,
    since it compiled if_ath.c in the first place. Any ideas why it wouldn't
    be linking properly?

    jms
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Ion-Mihai Tetcu: "Re: any unusual inode problems with 4.9-RELEASE?"

    Relevant Pages

    • Re: kernel build failure
      ... : undefined reference to `firmware_get' ... *** Error code 1 ... Try adding "device firmware" to your kernel config. ...
      (freebsd-current)
    • Re: kernel build failure
      ... : undefined reference to `firmware_get' ... *** Error code 1 ... Try adding "device firmware" to your kernel config. ...
      (freebsd-current)
    • undefined reference to `cpu_fxsr
      ... : undefined reference to `cpu_fxsr' ... *** Error code 1 ... references to cpu_fxsr I can find are wrapped by #ifdef CPU_ENABLE_SSE ...
      (freebsd-current)
    • buildkernel fails on -CURRENT
      ... Hash: SHA1 ... kern_thread.o: undefined reference to `thread_siginfo' ... *** Error code 1 ...
      (freebsd-current)
    • Re: kernel build failure
      ... : undefined reference to `firmware_get' ... *** Error code 1 ... FreeSBIE Developer ...
      (freebsd-current)