* trying 2.2.0 release... but my compiler is weird.. or I'm really stupid.
@ 1999-01-26 7:34 Designer 7
1999-01-26 7:53 ` (me too) " Matt Wagner
1999-01-26 18:50 ` Kari Davidsson
0 siblings, 2 replies; 5+ messages in thread
From: Designer 7 @ 1999-01-26 7:34 UTC (permalink / raw)
To: axp-list
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 <linux/delay.h>
anyways... so I looked in sb_ess.c for the function ess_init. And it's
something like this...
<beginning of sb_ess.c>
...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...
<end of sb_ess.c>
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
^ permalink raw reply [flat|nested] 5+ messages in thread* (me too) Re: trying 2.2.0 release... but my compiler is weird.. or I'm really stupid.
1999-01-26 7:34 trying 2.2.0 release... but my compiler is weird.. or I'm really stupid Designer 7
@ 1999-01-26 7:53 ` Matt Wagner
1999-01-26 8:21 ` Fix: " Daniel Potts
1999-01-26 18:50 ` Kari Davidsson
1 sibling, 1 reply; 5+ messages in thread
From: Matt Wagner @ 1999-01-26 7:53 UTC (permalink / raw)
To: axp-list
i'd just like to report that i'm having the same error on my SX164.
matt
On Mon, 25 Jan 1999, Designer 7 wrote:
> 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 <linux/delay.h>
>
>
> anyways... so I looked in sb_ess.c for the function ess_init. And it's
> something like this...
>
> <beginning of sb_ess.c>
>
> ...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...
>
> <end of sb_ess.c>
>
> 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
>
>
----------------------------------
the SYSTEM owns you
SYSTEM, n.:
1: a regular union of principles or parts forming one entire thing.
2: the economic/capitalistic entity that exploits *your* life.
3: that strange attractor in your perception of the world that you
have dubbed as, "they".
wags@driver8.org http://www.driver8.org/
http://www.mw.driver8.org/
^ permalink raw reply [flat|nested] 5+ messages in thread* Fix: Re: (me too) Re: trying 2.2.0 release... but my compiler is weird.. or I'm really stupid.
1999-01-26 7:53 ` (me too) " Matt Wagner
@ 1999-01-26 8:21 ` Daniel Potts
0 siblings, 0 replies; 5+ messages in thread
From: Daniel Potts @ 1999-01-26 8:21 UTC (permalink / raw)
To: axp-list
In driver/sound/sb_ess.c, change the "extern int esstype" to "int esstype"
and it should make ok, I have been told.
Otherwise, try compiling as modules - that works fine for me.
Cheers,
Daniel
On Tue, 26 Jan 1999, Matt Wagner wrote:
> On Mon, 25 Jan 1999, Designer 7 wrote:
> >
> > 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
> >
> >
> > 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: trying 2.2.0 release... but my compiler is weird.. or I'm really stupid.
1999-01-26 7:34 trying 2.2.0 release... but my compiler is weird.. or I'm really stupid Designer 7
1999-01-26 7:53 ` (me too) " Matt Wagner
@ 1999-01-26 18:50 ` Kari Davidsson
1 sibling, 0 replies; 5+ messages in thread
From: Kari Davidsson @ 1999-01-26 18:50 UTC (permalink / raw)
To: axp-list
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 <linux/delay.h>
>
>
> anyways... so I looked in sb_ess.c for the function ess_init. And it's
> something like this...
>
> <beginning of sb_ess.c>
>
> ...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...
>
> <end of sb_ess.c>
>
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: trying 2.2.0 release... but my compiler is weird.. or I'm really stupid.
@ 1999-01-26 20:48 Designer 7
0 siblings, 0 replies; 5+ messages in thread
From: Designer 7 @ 1999-01-26 20:48 UTC (permalink / raw)
To: axp-list
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 <linux/delay.h>
>>
>>
>> anyways... so I looked in sb_ess.c for the function ess_init. And
it's
>> something like this...
>>
>> <beginning of sb_ess.c>
>>
>> ...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...
>>
>> <end of sb_ess.c>
>>
>> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1999-01-26 21:17 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-01-26 7:34 trying 2.2.0 release... but my compiler is weird.. or I'm really stupid Designer 7
1999-01-26 7:53 ` (me too) " Matt Wagner
1999-01-26 8:21 ` Fix: " Daniel Potts
1999-01-26 18:50 ` Kari Davidsson
-- strict thread matches above, loose matches on Subject: below --
1999-01-26 20:48 Designer 7
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox