Re: ixgbe-2.4.4 compile error

From: Eric van Gyzen <eric_at_vangyzen.net>
Date: Tue, 3 Apr 2012 08:06:05 -0500
On 04/02/2012 16:24, Rudy wrote:
>
> 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:
>
> ixgbe_osdep.h:104: error: conflicting types for 'bool'
> _at_/sys/types.h:271: error: previous declaration of 'bool' was here
>
>
> 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 */

Perhaps a more appropriate change would be in ixgbe_osdep.h:

+#ifndef bool
  typedef boolean_t	bool;
+#endif

This would change the size of the bool type as used in the ixgbe driver, 
but after a quick glance through the code, I don't think that would 
cause any trouble.  Try it; if it passes traffic, it's probably correct.

Eric
Received on Tue Apr 03 2012 - 11:06:11 UTC

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