From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 111c93,f5299897250c530c X-Google-Attributes: gid111c93,public X-Google-ArrivalTime: 2003-03-30 04:27:40 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!syros.belnet.be!news.belnet.be!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed1.e.nsc.no!nsc.no!nextra.com!uio.no!news.kth.se!not-for-mail From: mru@users.sourceforge.net (=?iso-8859-1?q?M=E5ns_Rullg=E5rd?=) Newsgroups: comp.os.linux.alpha Subject: Re: Q: Why do I got a linker error? Date: 30 Mar 2003 14:13:02 +0200 Sender: mru@zaphod.guide Message-ID: References: <87r88q5aym.fsf@new.home-net.stg> <87brztgs6t.fsf@new.home-net.stg> NNTP-Posting-Host: manganonaujakasit.e.kth.se Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Portable Code) Xref: archiver1.google.com comp.os.linux.alpha:7488 Torsten Zirzlaff 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