ixgbe-2.4.4 compile error

From: Rudy <crapsh_at_monkeybrains.net>
Date: Mon, 02 Apr 2012 14:24:35 -0700
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
_at_ -> /usr/src/sys
machine -> /usr/src/sys/amd64/include
awk -f _at_/tools/makeobjops.awk _at_/kern/device_if.m -h
awk -f _at_/tools/makeobjops.awk _at_/kern/bus_if.m -h
awk -f _at_/tools/makeobjops.awk _at_/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_at_ -I_at_/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'
_at_/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 _at_/sys/types.h.orig  _at_/sys/types.h
--- _at_/sys/types.h.orig    2012-04-02 14:18:26.000000000 -0700
+++ _at_/sys/types.h    2012-04-02 14:20:19.000000000 -0700
_at__at_ -268,7 +268,7 _at__at_
  #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_at_guava:/usr/obj/usr/src/sys/GUAVA  amd64

Rudy
Received on Mon Apr 02 2012 - 20:10:09 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:25 UTC