*BSD News Article 81343


Return to BSD News archive

Newsgroups: comp.unix.bsd.netbsd.misc
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!metro!metro!asstdc.scgt.oz.au!nsw.news.telstra.net!act.news.telstra.net!psgrain!quack!quack.kfu.com!nsayer
From: nsayer@quack.kfu.com (Nick Sayer)
Subject: Re: Problems compiling xview for sparc
Message-ID: <nCJlJ7v@quack.kfu.com>
Sender: news@quack.kfu.com (0000-News(0000))
Supersedes: <nCHbGMK@quack.kfu.com>
Organization: The Duck Pond public unix, +1 408 249 9630, log in as guest.
Date: Tue, 22 Oct 1996 03:26:24 UTC
Lines: 29

nsayer@quack.kfu.com (Nick Sayer) writes:


>I am having lots of problems compiling xview 3.2 for sparc (I would much
>rather have just installed a precompiled one, but couldn't find one).
>There were some .c files that had references to <vfork.h>, which doesn't
>exist, but that was easy to work around. The problem now is that when
>attempting to link the libxview.so, I get

>ld: Global Offset Table overflow (use `-fPIC')

This is a "don't do that, then". Changing all of the references to -fpic
into -fPIC fixed it.

I also had to remove the references to vfork.h (replacing them with
unistd.h), and in include/xview/base.h I had to change the ifdef
__386BSD__ to check for __NetBSD__ also. Having done that, I have
the basic clients, contool and workman all working just fine on NetBSD
sparc (for workman, you need to fetch 1.3a and change rcd0d in
port_freebsd.c to rcd0c).

Help doesn't work (it doesn't seem to find the *.info files), but I
don't care much about that.

-- 
Nick Sayer <nsayer@quack.kfu.com>  | Coming soon:
N6QQQ @ N0ARY.#NORCAL.CA.USA.NOAM  | Kevin Kostner in
+1 408 249 9630, log in as 'guest' | Wyatt Earp: sensitivity
URL: http://www.kfu.com/~nsayer/   | training, Tombstone style