From: mru@users.sourceforge.net (Måns Rullgård)
Subject: Re: Q: Why do I got a linker error?
Date: 30 Mar 2003 14:13:02 +0200 [thread overview]
Message-ID: <yw1x7kah129d.fsf@zaphod.guide> (raw)
In-Reply-To: 87brztgs6t.fsf@new.home-net.stg
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
next prev parent reply other threads:[~2003-03-30 12:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2003-03-30 13:12 ` Torsten Zirzlaff
2003-03-30 16:29 ` Måns Rullgård
2003-03-30 16:06 ` Torsten Zirzlaff
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox