From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 16448 invoked from network); 26 Jan 1999 21:17:10 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 26 Jan 1999 21:17:10 -0000 Received: from hotmail.com (f55.hotmail.com [207.82.251.67]) by mail.redhat.com (8.8.7/8.8.7) with SMTP id PAA30491 for ; Tue, 26 Jan 1999 15:48:45 -0500 Received: (qmail 29891 invoked by uid 0); 26 Jan 1999 20:48:14 -0000 Message-ID: <19990126204814.29890.qmail@hotmail.com> Received: from 206.19.113.66 by www.hotmail.com with HTTP; Tue, 26 Jan 1999 12:48:13 PST X-Originating-IP: [206.19.113.66] From: "Designer 7" To: axp-list@redhat.com Subject: Re: trying 2.2.0 release... but my compiler is weird.. or I'm really stupid. Date: Tue, 26 Jan 1999 12:48:13 PST Mime-Version: 1.0 Content-Type: text/plain Yeah.. found out what was wrong ... there is a #ifdef MODULES int esstype; #endif So, when I compiled with sound NOT as a module, int esstype was not included... hence during linking, the linker couldn't resolve extern int esstype. Anyways.... I just moved it to the top. D. > >There is a patch at http://www.linuxhq.com that should solve this problem. > >K.D. > >Thus spake Designer 7 (designer_7@hotmail.com): > >> Hello, >> >> I'm trying to compile 2.2.0 release kernel that i just downloaded >> tonight. However, the compile is failing for some odd reason. >> >> during the final stage of linking the kernel... >> the error message is this: >> >> drivers/sound/sound.a(sb_ess.o): In function 'ess_init' >> sb_ess.c(.text+0x114c): undefined reference to 'esstype' >> make: *** [vmlinux] error 1 >> >> by the way... there was also another problem which was that sb_ess.c was >> missing >> >> #include >> >> >> anyways... so I looked in sb_ess.c for the function ess_init. And it's >> something like this... >> >> >> >> ...stuff >> >> extern int esstype; /* ... from sb_card.c */ >> >> ... stuff.. >> >> int ess_init(stuff..) >> { >> some code using 'esstype' in a if() and switch(esstype) >> statement. >> } >> >> ..stuff... >> >> >> >> Next I looked into sb_card.c >> and sure enough, I see: >> >> int esstype = 0; /* ESS chip type */ >> >> so, from what I can remember, shouldn't this be fine? Doesn't the >> compiler just compile 'esstype' as unresolved reference and then >> resolves it during the the object file linking stage? Or am I missing >> something here? I'm not a programmer... just play around as a >> hobby(meaning self-taught as necessary), so if I'm clueless, please >> enlighten!? >> >> And as far as I can tell, 'make' is doing the right thing... so what is >> up with this? >> >> Any wisdom appreciated! Thanks. >> D. >> >> >> >> ______________________________________________________ >> Get Your Private, Free Email at http://www.hotmail.com >> >> -- >> To unsubscribe: send e-mail to axp-list-request@redhat.com with >> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com > >-- >To unsubscribe: send e-mail to axp-list-request@redhat.com with >'unsubscribe' as the subject. Do not send it to axp-list@redhat.com > ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com