DragonFly BSD
DragonFly kernel List (threaded) for 2005-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

undefined reference to `lwkt_process_ipiq'

From: Noritoshi Demizu <demizu@xxxxxxxxxxxxxx>
Date: Thu, 21 Jul 2005 09:39:54 +0900 (JST)

I got the following error message when I built the latest GENERIC kernel.

lwkt_process_ipiq() is defined in sys/kern/lwkt_ipiq.c only when
SMP is defined.  However, it is called by lwkt_smp_stopped() in
sys/kern/lwkt_thread.c rev.1.80 even when SMP is not defined.

In my tree, I enclose lwkt_smp_stopped() with #ifdef SMP ... #endif.
I'm not sure this is the best way to solve the problem.
Another way might be to add a dummy function of lwkt_process_ipiq()
just like lwkt_send_ipiq() and lwkt_wait_ipiq().


Noritoshi Demizu


sh ../../conf/newvers.sh GENERIC 
cc -c -O -pipe -mtune=pentiumpro -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -ansi -g -nostdinc -I. -I../.. -I/usr/include -I../../contrib/dev/acpica -I../../contrib/ipfilter  -D_KERNEL -include opt_global.h  -mpreferred-stack-boundary=2 -fno-common -ffreestanding  vers.c
linking kernel.debug
lwkt_thread.o(.text+0x1431): In function `lwkt_smp_stopped':
. ./../kern/lwkt_thread.c:1396: undefined reference to `lwkt_process_ipiq'
lwkt_thread.o(.text+0x143d):../../kern/lwkt_thread.c:1399: undefined reference to `lwkt_process_ipiq'
*** Error code 1


[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]