Compiling problems on SMP FreeBSD

Love lha at stacken.kth.se
Fri Oct 19 02:29:59 CEST 2001


Quincey Koziol <koziol at ncsa.uiuc.edu> writes:

>     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"?

The filesystemcode in arla (xfs) doesn't contain any #ifdef on SMP in the
code, I think this its part of the glorious battle to find what cpp flags
we need to compile for this kernel.

Is it correct to assume that all freebsd4.x and freebsd5 will be happy with
-DAPIC_IO ? If so, the patch below should be ok. Can you test it ?

Love


Index: configure.in
===================================================================
RCS file: /afs/stacken.kth.se/src/SourceRepository/arla/configure.in,v
retrieving revision 1.465.2.56
diff -u -w -u -w -r1.465.2.56 configure.in
--- configure.in	2001/10/16 21:43:55	1.465.2.56
+++ configure.in	2001/10/19 00:16:38
@@ -325,6 +325,9 @@
 changequote([,])dnl
 	if test "X$kld" = "X"; then
 		kld="yes";
+	fi
+	if test "$smp" != "no"; then
+		smp="-DAPIC_IO $smp"
 	fi
 	;;
   esac






More information about the Arla-drinkers mailing list