Subject: error building tk
To: None <netbsd-help@NetBSD.ORG>
From: Brad Salai <bsalai@law.roc.servtech.com>
List: netbsd-help
Date: 11/15/1997 14:16:14
Trying to make tcl/tk out of the package system was going well until here:

rm -f libtk80.so.1.0
ld -Bshareable -x -o libtk80.so.1.0 tk3d.o tkArgv.o tkAtom.o tkBind.o tkBitmap.o tkClipboard.o tkCmds.o  tkColor.o tkConfig.o tkCursor.o tkError.o tkEvent.o  tkFocus.o tkFont.o tkGet.o tkGC.o tkGeometry.o tkGrab.o tkGrid.o  tkMain.o tkOption.o tkPack.o tkPlace.o  tkSelect.o tkUtil.o tkVisual.o tkWindow.o  tkUnix.o tkUnix3d.o tkUnixButton.o tkUnixColor.o tkUnixCursor.o  tkUnixDialog.o tkUnixDraw.o  tkUnixEmbed.o tkUnixEvent.o tkUnixFocus.o tkUnixFont.o tkUnixInit.o  tkUnixMenu.o tkUnixMenubu.o tkUnixScale.o tkUnixScrlbr.o  tkUnixSelect.o tkUnixSend.o tkUnixWm.o tkUnixXId.o tkButton.o tkEntry.o tkFrame.o tkListbox.o  tkMenu.o tkMenubutton.o tkMenuDraw.o tkMessage.o tkScale.o  tkScrollbar.o tkCanvas.o tkCanvArc.o tkCanvBmap.o tkCanvImg.o  tkCanvLine.o tkCanvPoly.o tkCanvPs.o tkCanvText.o  tkCanvUtil.o tkCanvWind.o tkRectOval.o tkTrig.o tkImage.o tkImgBmap.o tkImgGIF.o tkImgPPM.o tkImgPhoto.o tkText.o tkTextBTree.o tkTextDisp.o tkTextImage.o tkTextIndex.o  tkTextMark.o tkTextTag.o!
 tkTextWind.o 
ld: Global Offset Table overflow (use `-fPIC')
ld: tkCanvPs.o: GOT overflow for relocation at 0x8c0
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Any ideas? 

Adding -fPIC to the ld options produced invalid command option '-fPIC'


Brad