From: carson@cs.columbia.edu (Carson A. Gaspar)
Subject: HELP: X11R5p21 gcc[2.2.2|2.3.2] sun4 SunOS 4.1.2 shared libraries
Organization: Columbia University Department of Computer Science
Date: Tue, 22 Dec 1992 21:12:43 GMT

Has anyone managed to compile X11R5p21 with either gcc 2.2.2 or gcc
2.3.2 and shared libraries and gotten it to work?  Patchlevel 17 is
working fine, but I get a variety of interesting errors when I compile
Patchlevel 21:

compiling with gcc 2.2.2 -fpic, I got invalid object errors from ld

compiling with gcc 2.2.2 -fPIC : sample compile line

rm -f Context.o shared/Context.o
gcc -fpcc-struct-return -fno-builtin -c    -I../../.       -DSUNSHLIB -DSHAREDCODE -fPIC -O2 -pipe Context.c
mv Context.o shared/Context.o
rm -f Context.o
gcc -fpcc-struct-return -fno-builtin -c -O2 -pipe    -I../../.       Context.c
.
.
.
(cd shared; ld -o ../libX11.so.4.10~ -assert pure-text Context.o Depths.o ParseCmd.o Quarks.o XAllCells.o XAllPlanes.o XAllowEv.o XAutoRep.o XBackgnd.o XBdrWidth.o XBell.o XBorder.o XChAccCon.o XChClMode.o XChActPGb.o XChCmap.o XChGC.o XChKeyCon.o XChPntCon.o XChProp.o XChSaveSet.o XChWAttrs.o XChWindow.o XChkIfEv.o XChkMaskEv.o XChkWinEv.o XChkTypEv.o XChkTypWEv.o XCirWin.o XCirWinDn.o XCirWinUp.o XClDisplay.o XClear.o XClearArea.o XConfWind.o XConnDis.o XConvSel.o XCopyArea.o XCopyCmap.o XCopyGC.o XCopyP



lane.o XCrBFData.o XCrCmap.o XCrCursor.o XCrGC.o XCrGlCur.o XCrPFBData.o XCrPixmap.o XCrWindow.o XCursor.o XDefCursor.o XDelProp.o XDestSubs.o XDestWind.o XDisName.o XDrArc.o XDrArcs.o XDrLine.o XDrLines.o XDrPoint.o XDrPoints.o XDrRect.o XDrRects.o XDrSegs.o XErrDes.o XErrHndlr.o XEvToWire.o XFetchName.o XFillArc.o XFillArcs.o XFillPoly.o XFillRect.o XFillRects.o XFlush.o XFont.o XFontNames.o XFontInfo.o XFreeCmap.o XFreeCols.o XFreeCurs.o XFreeEData.o XFreeGC.o XFreePix.o XFSSaver.o XGCMisc.o XGeom.o XGe



tAtomNm.o XGetColor.o XGetDflt.o XGetFPath.o XGetFProp.o XGetGeom.o XGetHColor.o XGetHints.o XGetIFocus.o XGetImage.o XGetKCnt.o XGetMoEv.o XGetPCnt.o XGetPntMap.o XGetProp.o XGetSOwner.o XGetSSaver.o XGetStCmap.o XGetWAttrs.o XGrButton.o XGrKey.o XGrKeybd.o XGrPointer.o XGrServer.o XHost.o XIfEvent.o XImUtil.o XImText.o XImText16.o XInitExt.o XInsCmap.o XIntAtom.o XKeyBind.o XKeysymStr.o XKillCl.o XLiHosts.o XLiICmaps.o XLiProps.o XListExt.o XLoadFont.o XLookupCol.o XLowerWin.o XMacros.o XMapRaised.o XMap



Subs.o XMapWindow.o XMaskEvent.o XMisc.o XModMap.o XMoveWin.o XNextEvent.o XOpenDis.o XParseCol.o XParseGeom.o XPeekEvent.o XPeekIfEv.o XPending.o XPmapBgnd.o XPmapBord.o XPolyReg.o XPolyTxt.o XPolyTxt16.o XPutBEvent.o XPutImage.o XQuBest.o XQuColor.o XQuColors.o XQuCurShp.o XQuExt.o XQuKeybd.o XQuPntr.o XQuStipShp.o XQuTextE16.o XQuTextExt.o XQuTileShp.o XQuTree.o XRaiseWin.o XRdBitF.o XRecolorC.o XReconfWin.o XRegion.o XRepWindow.o XRestackWs.o XRotProp.o XScrResStr.o XSelInput.o XSendEvent.o XSetBack.o 



XSetCRects.o XSetClMask.o XSetClOrig.o XSetDashes.o XSetFPath.o XSetFont.o XSetFore.o XSetFunc.o XSetHints.o XSetIFocus.o XSetLStyle.o XSetPMask.o XSetPntMap.o XSetSOwner.o XSetSSaver.o XSetState.o XSetStip.o XSetStCmap.o XSetTile.o XSetTSOrig.o XStBytes.o XStColor.o XStColors.o XStNColor.o XStName.o XStrKeysym.o XSync.o XSynchro.o XText.o XText16.o XTextExt.o XTextExt16.o XTrCoords.o XUndefCurs.o XUngrabBut.o XUngrabKbd.o XUngrabKey.o XUngrabPtr.o XUngrabSvr.o XUninsCmap.o XUnldFont.o XUnmapSubs.o XUnmapW



in.o XVisUtil.o XWarpPtr.o XWinEvent.o XWindow.o XWrBitF.o XlibInt.o Xrm.o Xstreams.o evtomask.o globals.o GetGCVals.o GetNrmHint.o GetRGBCMap.o GetTxtProp.o GetWMCMapW.o GetWMProto.o Iconify.o PixFormats.o PropAlloc.o ReconfWM.o SetNrmHint.o SetRGBCMap.o SetTxtProp.o SetWMCMapW.o SetWMProps.o SetWMProto.o StrToText.o TextToStr.o WMGeom.o Withdraw.o AuDispose.o AuGetBest.o AuFileName.o AuRead.o  CIELab.o CIELabGcC.o CIELabGcL.o CIELabGcLC.o CIELabMnL.o CIELabMxC.o CIELabMxL.o CIELabMxLC.o CIELabWpAj.o CIEL



uv.o CIELuvGcC.o CIELuvGcL.o CIELuvGcLC.o CIELuvMnL.o CIELuvMxC.o CIELuvMxL.o CIELuvMxLC.o CIELuvWpAj.o CIEXYZ.o CIEuvY.o CIExyY.o TekHVC.o TekHVCGcC.o TekHVCGcV.o TekHVCGcVC.o TekHVCMnV.o TekHVCMxC.o TekHVCMxV.o TekHVCMxVC.o TekHVCMxVs.o TekHVCWpAj.o UNDEFINED.o XcmsAddDIC.o XcmsAddSF.o XcmsAlNCol.o XcmsAllCol.o XcmsCCC.o XcmsCmap.o XcmsColNm.o XcmsCvColW.o XcmsCvCols.o XcmsGlobls.o XcmsIdOfPr.o XcmsInt.o XcmsLRGB.o XcmsLkCol.o XcmsMath.o XcmsOfCCC.o XcmsPrOfId.o XcmsProp.o XcmsQBlack.o XcmsQBlue.o XcmsQG



reen.o XcmsQRed.o XcmsQWhite.o XcmsQuCol.o XcmsQuCols.o XcmsSetCCC.o XcmsSetGet.o XcmsStCol.o XcmsStCols.o XcmsTrig.o XcmsXRGB.o XFSWrap.o XICWrap.o XIMWrap.o XlcWrap.o XmbWMProps.o XmbWrap.o XwcWrap.o XFilterEv.o XRegstFlt.o XSetLocale.o ProtoFlt.o XCnvCTToWC.o XCnvMBToCT.o XCnvWCToMB.o XCnvToStr.o XConnIM.o XCrFntSet.o XCrIC.o XGetIMVal.o XICFocus.o XICGetVal.o XICSetVal.o XIMKeyBind.o XIMProto.o XIMQueue.o XInitCT.o 
ld: Context.o: assert pure-text failed: reference to _free at 37c in Context.o

ld: Context.o: assert pure-text failed: reference to _malloc at 234 in Context.o

ld: Context.o: assert pure-text failed: reference to [offset] at 1c4 in Context.o

ld: Context.o: assert pure-text failed: reference to [offset] at 1c0 in Context.o

ld: Context.o: assert pure-text failed: reference to _free at 1ac in Context.o

ld: Context.o: assert pure-text failed: reference to _calloc at 198 in Context.o

ld: Context.o: assert pure-text failed: reference to _malloc at 17c in Context.o

ld: Context.o: assert pure-text failed: reference to _free at 148 in Context.o

ld: Context.o: assert pure-text failed: reference to _free at 140 in Context.o

ld: Context.o: assert pure-text failed: reference to _free at 120 in Context.o

ld: Context.o: assert pure-text failed: reference to _free at dc in Context.o

ld: Context.o: assert pure-text failed: reference to _calloc at 50 in Context.o

ld: Depths.o: assert pure-text failed: reference to _malloc at 418 in Depths.o

/bin/sh: 10239 Bus error - core dumped
make[3]: *** [libX11.so.4.10] Error 138
make[3]: Target `all' not remade because of errors.

-- 
			    Carson Gaspar
			carson@cs.columbia.edu
Newsgroups: comp.windows.x,comp.windows.x.motif,comp.windows.x.intrinsics