Re: r320528? "undefined reference to `_bus_dma*" linking kernel

From: Jason Harmening <jason.harmening_at_gmail.com>
Date: Sat, 1 Jul 2017 08:59:58 -0700
Hi David,

On Sat, Jul 1, 2017 at 4:26 AM, David Wolfskill <david_at_catwhisker.org>
wrote:
>
>
> --- kernel.full ---
> /usr/src/sys/dev/advansys/adwcam.c:302: undefined reference to
> `_bus_dmamap_sync'
> /usr/src/sys/dev/advansys/adwcam.c:316: undefined reference to
> `_bus_dmamap_unload'
> if_ae.o: In function `ae_alloc_rings':
> /usr/src/sys/dev/ae/if_ae.c:1162: undefined reference to
> `bus_dmamem_alloc'
> /usr/src/sys/dev/ae/if_ae.c:1182: undefined reference to
> `bus_dmamem_alloc'
> /usr/src/sys/dev/ae/if_ae.c:1202: undefined reference to
> `bus_dmamem_alloc'
> if_ae.o: In function `ae_dma_free':
> /usr/src/sys/dev/ae/if_ae.c:1230: undefined reference to
> `_bus_dmamap_unload'
> /usr/src/sys/dev/ae/if_ae.c:1232: undefined reference to `bus_dmamem_free'
> /usr/src/sys/dev/ae/if_ae.c:1241: undefined reference to
> `_bus_dmamap_unload'
> /usr/src/sys/dev/ae/if_ae.c:1243: undefined reference to `bus_dmamem_free'
> /usr/src/sys/dev/ae/if_ae.c:1252: undefined reference to
> `_bus_dmamap_unload'
> /usr/src/sys/dev/ae/if_ae.c:1254: undefined reference to `bus_dmamem_free'
> if_ae.o: In function `ae_tx_intr':
> /usr/src/sys/dev/ae/if_ae.c:1823: undefined reference to
> `_bus_dmamap_sync'
> /usr/src/sys/dev/ae/if_ae.c:1825: undefined reference to
> `_bus_dmamap_sync'
> /usr/src/sys/dev/ae/if_ae.c:1875: undefined reference to
> `_bus_dmamap_sync'
>

These are all functions that were removed entirely or inlined for x86 in
r320528.
Looks like you have stale object files hanging around, seems like make
clean should fix it.

Also thanks for reminding me to bump __FreeBSD_version :)
Received on Sat Jul 01 2017 - 14:00:02 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:12 UTC