Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* Q: Why do I got a linker error?
@ 2003-03-29 17:39 Torsten Zirzlaff
  2003-03-30  0:10 ` Måns Rullgård
  0 siblings, 1 reply; 7+ messages in thread
From: Torsten Zirzlaff @ 2003-03-29 17:39 UTC (permalink / raw)


Hi.

I try to compile wdsetup, but I got a strange linker error.

There is a undefined reference against alpha_mv. I muse that this an
maschine intrinsic value, but how could I get the file linked?

/usr/include/asm/machvec.h:extern struct alpha_machine_vector alpha_mv;

Any ideas? Had I have to define some kernel define?

TIA

        Torsten

-- 
s-mail: Neckarstr. 120                                         Torsten Zirzlaff
        70190 Stuttgart
        Germany                            e-mail :  zirzlaff@nienor.s.bawue.de
phone: +49 711 285 19 40                             torsten@zirzlaff.de
mobil: +49 174 857 56 77
data:  +49 711 286 40 57/9                 

+-----------------------------------------------------------------------------+
|  The shortest unit of time in the universe is the New York Second, defined  |
|  as the period of time between the traffic lights turning green and the cab |
|  behind you honking. -- Terry Pratchett 'Lords and Ladies'                  |
+-----------------------------------------------------------------------------+


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Q: Why do I got a linker error?
  2003-03-29 17:39 Q: Why do I got a linker error? Torsten Zirzlaff
@ 2003-03-30  0:10 ` Måns Rullgård
  2003-03-30  8:43   ` Torsten Zirzlaff
  0 siblings, 1 reply; 7+ messages in thread
From: Måns Rullgård @ 2003-03-30  0:10 UTC (permalink / raw)


Torsten Zirzlaff <zirzlaff@nienor.s.bawue.de> writes:

> I try to compile wdsetup, but I got a strange linker error.
> 
> There is a undefined reference against alpha_mv. I muse that this an
> maschine intrinsic value, but how could I get the file linked?
> 
> /usr/include/asm/machvec.h:extern struct alpha_machine_vector alpha_mv;

That is a kernel symbol.  How did it end up in user-space code?

-- 
M�ns Rullg�rd
mru@users.sf.net


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Q: Why do I got a linker error?
  2003-03-30  0:10 ` Måns Rullgård
@ 2003-03-30  8:43   ` Torsten Zirzlaff
  2003-03-30 12:13     ` Måns Rullgård
  2003-03-30 16:06     ` Torsten Zirzlaff
  0 siblings, 2 replies; 7+ messages in thread
From: Torsten Zirzlaff @ 2003-03-30  8:43 UTC (permalink / raw)


Hi.

mru@users.sourceforge.net (M�ns Rullg�rd) writes:

> Torsten Zirzlaff <zirzlaff@nienor.s.bawue.de> writes:
> 
> > I try to compile wdsetup, but I got a strange linker error.
> > 
> > There is a undefined reference against alpha_mv. I muse that this an
> > maschine intrinsic value, but how could I get the file linked?
> > 
> > /usr/include/asm/machvec.h:extern struct alpha_machine_vector alpha_mv;
> 
> That is a kernel symbol.  How did it end up in user-space code?

  As I wrote before. I need it for compiling wdsetup. It's a setup
tool SMC ISA network cards. The main reason is use of the methods outb_p
and inb_p.

  My first guess is to replace sys/io.h with asm/io.h since there
those methods are defined.

  How does a better solution look?

> -- 
> M�ns Rullg�rd
> mru@users.sf.net

TIA

        Torsten
-- 
s-mail: Neckarstr. 120                                         Torsten Zirzlaff
        70190 Stuttgart
        Germany                            e-mail :  zirzlaff@nienor.s.bawue.de
phone: +49 711 285 19 40                             torsten@zirzlaff.de
mobil: +49 174 857 56 77
data:  +49 711 286 40 57/9                 

+-----------------------------------------------------------------------------+
|  The shortest unit of time in the universe is the New York Second, defined  |
|  as the period of time between the traffic lights turning green and the cab |
|  behind you honking. -- Terry Pratchett 'Lords and Ladies'                  |
+-----------------------------------------------------------------------------+


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Q: Why do I got a linker error?
  2003-03-30  8:43   ` Torsten Zirzlaff
@ 2003-03-30 12:13     ` Måns Rullgård
  2003-03-30 13:12       ` Torsten Zirzlaff
  2003-03-30 16:06     ` Torsten Zirzlaff
  1 sibling, 1 reply; 7+ messages in thread
From: Måns Rullgård @ 2003-03-30 12:13 UTC (permalink / raw)


Torsten Zirzlaff <zirzlaff@nienor.s.bawue.de> writes:

> > > I try to compile wdsetup, but I got a strange linker error.
> > > 
> > > There is a undefined reference against alpha_mv. I muse that this an
> > > maschine intrinsic value, but how could I get the file linked?
> > > 
> > > /usr/include/asm/machvec.h:extern struct alpha_machine_vector alpha_mv;
> > 
> > That is a kernel symbol.  How did it end up in user-space code?
> 
>   As I wrote before. I need it for compiling wdsetup. It's a setup
> tool SMC ISA network cards. The main reason is use of the methods outb_p
> and inb_p.
> 
>   My first guess is to replace sys/io.h with asm/io.h since there
> those methods are defined.
> 
>   How does a better solution look?

Everything that uses alpha_mv is behind #ifdef __KERNEL__.  Does that
program #define __KERNEL__ somewhere.  In that case it's broken.

-- 
M�ns Rullg�rd
mru@users.sf.net


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Q: Why do I got a linker error?
  2003-03-30 12:13     ` Måns Rullgård
@ 2003-03-30 13:12       ` Torsten Zirzlaff
  2003-03-30 16:29         ` Måns Rullgård
  0 siblings, 1 reply; 7+ messages in thread
From: Torsten Zirzlaff @ 2003-03-30 13:12 UTC (permalink / raw)


Hi.

mru@users.sourceforge.net (M�ns Rullg�rd) writes:

[deletia]
> 
> Everything that uses alpha_mv is behind #ifdef __KERNEL__.  Does that
> program #define __KERNEL__ somewhere.  In that case it's broken.

  Yes, it does. It does so especially for the alpha port. I assume
that the methods outb_p and inb_p are needed and those are only
defined in asm/io.h.

  How to fix this problem?
 
> -- 
> M�ns Rullg�rd
> mru@users.sf.net

TIA

        Torsten
-- 
s-mail: Neckarstr. 120                                         Torsten Zirzlaff
        70190 Stuttgart
        Germany                            e-mail :  zirzlaff@nienor.s.bawue.de
phone: +49 711 285 19 40                             torsten@zirzlaff.de
mobil: +49 174 857 56 77
data:  +49 711 286 40 57/9                 

+-----------------------------------------------------------------------------+
|  The shortest unit of time in the universe is the New York Second, defined  |
|  as the period of time between the traffic lights turning green and the cab |
|  behind you honking. -- Terry Pratchett 'Lords and Ladies'                  |
+-----------------------------------------------------------------------------+


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Q: Why do I got a linker error?
  2003-03-30  8:43   ` Torsten Zirzlaff
  2003-03-30 12:13     ` Måns Rullgård
@ 2003-03-30 16:06     ` Torsten Zirzlaff
  1 sibling, 0 replies; 7+ messages in thread
From: Torsten Zirzlaff @ 2003-03-30 16:06 UTC (permalink / raw)


Torsten Zirzlaff <zirzlaff@nienor.s.bawue.de> writes:

> 
>   How does a better solution look?

  I found a solution. I had just done what a include file does. I just
use outb instead of outb_p. 

  It seems to work.
 
> > -- 
> > M�ns Rullg�rd
> > mru@users.sf.net
> 
> TIA
> 
>         Torsten

Ciao

        Torsten

-- 
s-mail: Neckarstr. 120                                         Torsten Zirzlaff
        70190 Stuttgart
        Germany                            e-mail :  zirzlaff@nienor.s.bawue.de
phone: +49 711 285 19 40                             torsten@zirzlaff.de
mobil: +49 174 857 56 77
data:  +49 711 286 40 57/9                 

+-----------------------------------------------------------------------------+
|  The shortest unit of time in the universe is the New York Second, defined  |
|  as the period of time between the traffic lights turning green and the cab |
|  behind you honking. -- Terry Pratchett 'Lords and Ladies'                  |
+-----------------------------------------------------------------------------+


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Q: Why do I got a linker error?
  2003-03-30 13:12       ` Torsten Zirzlaff
@ 2003-03-30 16:29         ` Måns Rullgård
  0 siblings, 0 replies; 7+ messages in thread
From: Måns Rullgård @ 2003-03-30 16:29 UTC (permalink / raw)


Torsten Zirzlaff <zirzlaff@nienor.s.bawue.de> writes:

> > Everything that uses alpha_mv is behind #ifdef __KERNEL__.  Does that
> > program #define __KERNEL__ somewhere.  In that case it's broken.
> 
>   Yes, it does. It does so especially for the alpha port. I assume
> that the methods outb_p and inb_p are needed and those are only
> defined in asm/io.h.

What do those functions do?  Hardware access on Alpha is a little
trickyer that on x86, so many programs fail completely.  Is this
wdsetup supposed to work on Alpha?

>   How to fix this problem?

Get some other hardware.

-- 
M�ns Rullg�rd
mru@users.sf.net


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-03-30 16:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-29 17:39 Q: Why do I got a linker error? Torsten Zirzlaff
2003-03-30  0:10 ` Måns Rullgård
2003-03-30  8:43   ` Torsten Zirzlaff
2003-03-30 12:13     ` Måns Rullgård
2003-03-30 13:12       ` Torsten Zirzlaff
2003-03-30 16:29         ` Måns Rullgård
2003-03-30 16:06     ` Torsten Zirzlaff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox