Compiling problems on SMP FreeBSD

Quincey Koziol koziol at ncsa.uiuc.edu
Wed Oct 17 15:28:53 CEST 2001


Howdy,
    I've been having problems compiling the last bunch of releases of arla
on an SMP FreeBSD-STABLE machine.  Here's the error message:

gcc -c  -DHAVE_CONFIG_H -I. -I.  -I../../include -I./../../include  -I./../include -DXFS_DEBUG -DINET6 -g  -Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs -O  -DSMP -D__SMP__ -DKERNEL -D_KERNEL -DVFS_KLD -DKLD_MODULE -I/sys/arch -I/sys -I. -Wno-unused xfs_message.c
In file included from /sys/sys/signalvar.h:42,
from xfs/xfs_locl.h:162,
from xfs_message.c:34:
/usr/include/machine/smp.h:19: #error APIC_IO required for SMP, add "options APIC_IO" to your config file.
*** Error code 1

Stop in /usr/local/install/arla-0.35.6/xfs/bsd.
*** Error code 1

Stop in /usr/local/install/arla-0.35.6/xfs.
*** Error code 1

Stop in /usr/local/install/arla-0.35.6.

    This is from the FreeBSD header files, which want "APIC_IO" to be defined
when "SMP" is defined.  (My configure line was "./configure --enable-smp").
My fix at this point is to go to the xfs/bsd Makefile and add "-DAPIC_IO" to
the CFLAGS macro.  Can someone either add this to the Makefile.in for the
next release, or (possibly a more correct solution) change the "SMP" macros
in arla to be more arla-specific, like maybe "ARLA_SMP"?

    Cheers,
        Quincey Koziol
        koziol at ncsa.uiuc.edu





More information about the Arla-drinkers mailing list