[tulip-bug] oddities with tulip.c (v0.92 4/17/2000) & compileproblems

Keith Warno keith.warno@valaran.com
Mon, 27 Nov 2000 19:53:16 -0500


Donald Becker wrote:
> 
> On Mon, 27 Nov 2000, Keith Warno wrote:

[snip]

> > On a different note, why doesn't the tulip driver compile with gcc
> > v2.95.2 under Linux?  Neither tulip.c nor pci-scan.c (any recent version
> > I could find) will build with this version of gcc; it generates a slew
> > of errors, much too many to list here.  I've tried on two different
> > linux boxes (SuSE 6.2 and SuSE 6.4).  Both the tulip.c and pci-scan.c,
> > however, (seemingly) build find with gcc 2.91.66.
> 
> The driver worked with every generation of previous compile system, and it
> doesn't work now.  I would say the burden of demonstrating correct behavior
> is on the compile system, not the driver.

[snap]


And you would be correct (no surprise here!) ; after quite a while of
sorting through preprocessor output trying to figure out what got
included where and when, the culprit has turned out to be a
system-specific "wrapper" header generated during the gcc make by
"fixincludes".  Pretty ironic.  The header was posix_types.h which in
turn included features.h.  features.h then proceeded to cause the build
to choke.  Including features.h at the top of tulip.c will give you a
demonstration of the "slew of errors" I was getting.

Thanks for your help,
kw