[lug] lne100tx (still trying)
D. Stimits
stimits at idcomm.com
Tue Mar 6 15:31:42 MST 2001
John Starkey wrote:
>
> Actually I know my problem is in the kernel headers. Stephen's was what I was
> referring to. I was trying to do a quick compile for him on my machine to see
> if i could help narrow it down last night.
>
> I have 3 tulips and use the kernel for all of them but none of them are Linksys
> so I can't really help too much. My question that you are replying to, though,
> was kinda a shot in the dark since I don't see any ref to the glibc. But it's
> gotta be in there somewhere, right? Is it possible to compile a driver without
> them?
I know nothing about the tulip driver, but there are a few gotchas that
might be involved. First, since the kernel source is being referenced,
and parts of it are altered by kernel make menuconfig (or whatever
config), having the kernel configured correctly, including prerequisites
for the driver, is mandatory. Headers will end up reporting missing or
undefined prototypes if this isn't done. Second, the driver should be
compiled with kgcc for those quirky RH distributions, since modules are
part of kernel source, which the modules will end up being loaded by.
D. Stimits, stimits at idcomm.com
>
> John
>
> "Young, Ed" wrote:
>
> > > And it's not related to the glibc/RH issue that's been brought up a couple
> > > times?
> > >
> > I don't think so. I'm also running KRUD 7.0 "early spring grewel"
> > (whatever), and am therefore running the same compiler for kernal compiles,
> > so it doesn't seem likely, but it is possible I suppose. If for some reason
> > your compile is running under gcc 2.96. I did a "new install" rather than an
> > upgrade with may be relevant.
> >
> > I'd like to preface the following with a "I'm no expert on this but..."
> >
> > The way I understand it (tenuously), there are two compilers in RH/KRUD 7.0:
> > kgcc (aka egcs-1.1.2), and gcc 2.96. Compiling the kernel uses kgcc which is
> > a "damn fine" compiler. The problematic one is the gcc version 2.96. I see
> > from your compile output it says "gcc" but mine does too, even though it's
> > using kgcc for the kernel.
> >
> > I'm not at my RH/KRUD 7.0 machine now but to verify this but to check
> > compiler versions try
> > gcc -v
> > gcc --version
> > kgcc -v
> > kgcc --version
> >
> > You'll probobly get different version numbers for each. This has to do with
> > the gcc/egcs split that I don't realy know enough to talk about.
> >
> > So I dont' know what the problem is in your case. Since I was able to
> > compile cleanly in each case (2.2.x and 2.4.x) I didn't experience the same
> > thing.
> >
> > Sorry i can't help more.
> >
> > Ed
> >
> > > "Stephen G. Smith" wrote:
> > >
> > > > Yes sir and I got a similar response as below..
> > > >
> > > > SGS
> > > >
> > > > Will try again later today...
> > > >
> > > > > > gcc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -c tulip.c
> > > `[ -f
> > > > > > /usr/include/linux/modversions.h ] && echo -DMODVERSIONS`
> > > > > > tulip.c: In function `tulip_open':
> > > > > > tulip.c:1437: structure has no member named `tbusy'
> > > > > > tulip.c:1438: structure has no member named `start'
> > > > > > tulip.c: In function `tulip_start_xmit':
> > > > > > tulip.c:2530: structure has no member named `tbusy'
> > > > > > tulip.c:2563: structure has no member named `tbusy'
> > > > > > tulip.c: In function `tulip_interrupt':
> > > > > > tulip.c:2582: structure has no member named `interrupt'
> > > > > > tulip.c:2586: structure has no member named `interrupt'
> > > > > > tulip.c:2667: structure has no member named `tbusy'
> > > > > > tulip.c:2671: structure has no member named `tbusy'
> > > > > > tulip.c:2672: `NET_BH' undeclared (first use in this function)
> > > > > > tulip.c:2672: (Each undeclared identifier is reported only once
> > > > > > tulip.c:2672: for each function it appears in.)
> > > > > > tulip.c:2757: structure has no member named `interrupt'
> > > > > > tulip.c: In function `tulip_close':
> > > > > > tulip.c:2903: structure has no member named `start'
> > > > > > tulip.c:2904: structure has no member named `tbusy'
> > > > > > tulip.c: In function `tulip_get_stats':
> > > > > > tulip.c:2943: structure has no member named `start'
> > > > > > tulip.c: In function `set_rx_mode':
> > > > > > tulip.c:3182: structure has no member named `tbusy'
> > > >
> > > > _________________________________________________________________
> > > > Get your FREE download of MSN Explorer at http://explorer.msn.com
> > > >
> > > > _______________________________________________
> > > > Web Page: http://lug.boulder.co.us
> > > > Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> > >
> > > _______________________________________________
> > > Web Page: http://lug.boulder.co.us
> > > Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> > _______________________________________________
> > Web Page: http://lug.boulder.co.us
> > Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
>
> _______________________________________________
> Web Page: http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
More information about the LUG
mailing list