Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 02 Apr 2012 14:24:35 -0700
From:      Rudy <crapsh@monkeybrains.net>
To:        freebsd-current@freebsd.org
Subject:   ixgbe-2.4.4 compile error
Message-ID:  <4F7A1913.8040005@monkeybrains.net>

next in thread | raw e-mail | index | archive | help

I used the 9.0-RELEASE memstick to install, did a cvsup to STABLE...

When I downloaded Intel's (Jack's) ixgbe driver, I got an error:

Warning: Object directory not changed from original 
/usr/local/src/ixgbe-2.4.4/src
@ -> /usr/src/sys
machine -> /usr/src/sys/amd64/include
awk -f @/tools/makeobjops.awk @/kern/device_if.m -h
awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h
awk -f @/tools/makeobjops.awk @/dev/pci/pci_if.m -h
:> opt_bdg.h
cc -O2 -pipe -DSMP -DIXGBE_FDIR -DINET -DINET6 -fno-strict-aliasing 
-Werror -D_KERNEL -DKLD_MODULE -nostdinc   -I. -I@ -I@/contrib/altq 
-finline-limit=8000 --param inline-unit-growth=100 --param 
large-function-growth=1000 -fno-common  -fno-omit-frame-pointer  
-mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float  
-fno-asynchronous-unwind-tables -ffreestanding -fstack-protector 
-std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls 
-Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes 
-Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign 
-fformat-extensions  -Wmissing-include-dirs -fdiagnostics-show-option   
-c ixgbe.c
In file included from ixgbe_type.h:38,
                  from ixgbe_api.h:38,
                  from ixgbe.h:96,
                  from ixgbe.c:40:
ixgbe_osdep.h:104: error: conflicting types for 'bool'
@/sys/types.h:271: error: previous declaration of 'bool' was here
*** Error code 1

Stop in /usr/local/src/ixgbe-2.4.4/src.



This patch fixed the 'conflict'.
 > diff -u @/sys/types.h.orig  @/sys/types.h
--- @/sys/types.h.orig    2012-04-02 14:18:26.000000000 -0700
+++ @/sys/types.h    2012-04-02 14:20:19.000000000 -0700
@@ -268,7 +268,7 @@
  #if __STDC_VERSION__ < 199901L && __GNUC__ < 3 && 
!defined(__INTEL_COMPILER)
  typedef    int    _Bool;
  #endif
-typedef    _Bool    bool;
+// typedef    _Bool    bool;
  #endif /* !__bool_true_false_are_defined && !__cplusplus */


Any advice...
FreeBSD guava 9.0-STABLE FreeBSD 9.0-STABLE #0: Fri Mar 30 23:19:22 PDT 
2012     root@guava:/usr/obj/usr/src/sys/GUAVA  amd64

Rudy



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F7A1913.8040005>