This is the mail archive of the cygwin-xfree@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: RE:Building XFree


In xc/config/cf/cygwin.cf
the following define should be changed to

#define HasShm                  NO

#define ExtraLibraries

(That is nothing after #define ExtraLibraries)

Once you have edited cygwin.cf file

do the following at TOPDIR (in xc directory)

make Makefiles
make depend
make

This should clean up all your Makefiles and remove the unwanted -lipc.

The ibcygwin.a(libcmain.o)(.text+0x7f): undefined reference to `WinMain@16'
means your setup is attempting to compile libX11.dll as an exectable.
The problem must be some missing defines in cygwin.cf and cygwin.rules.

I have used gcc compiler from Cygwin v 1.0 CD distribution as well as
GCC 2.95.2 from Mumit Khan.  Both work with the cygwin configuration files
in xc/config/cf.

Try the above make Makefiles and make depend etc.. if you still get
`WinMain@16' that means something is wrong with your cygwin related config
files
in xc/config/cf.. in that case either update your source tree or let me know
and I will
send you the config files.

Suhaib




> -----Original Message-----
> From: cygwin-xfree-owner@sourceware.cygnus.com
> [mailto:cygwin-xfree-owner@sourceware.cygnus.com]On Behalf Of Trevor
> Sent: Wednesday, April 05, 2000 7:35 AM
> To: Cygwin-Xfree
> Subject: Re: RE:Building XFree
>
>
> Suhaib M. Siddiqi,
>
> This is the error I am getting now in X11 dir
> The changes you advised me to do had already been done
> Note -lipc is still used below
> I used the standard CD V1.0 build this time rather than 2.95.2 gcc
> to see if it helped - no change
>
>
>
> VOYAGER:/build1/xc/lib/X11
> $ make
> rm -f libX11.a
> rm -f libX11.dll
> if [ -f /tmp/DLL_BASE_COUNTER ]; then true; \
> else echo 0x67000000 > /tmp/DLL_BASE_COUNTER; fi
> dllwrap -s --def X11.def --output-lib libX11.a -o libX11.dll Context.o
> Depths.o        ParseCmd.o      Quarks.o AllCell
> s.o     AllPlanes.o     AllowEv.o       AutoRep.o       Backgnd.o
> BdrWidth.o      Bell.o  Border.o        ChAccCon
> .o      ChClMode.o      ChActPGb.o      ChCmap.o        ChGC.o  ChKeyCon.o
> ChPntCon.o      ChProp.o        ChSaveSe
> t.o     ChWAttrs.o      ChWindow.o      ChkIfEv.o       ChkMaskEv.o
> ChkWinEv.o      ChkTypEv.o      ChkTypWEv.o CirW
> in.o    CirWinDn.o      CirWinUp.o      ClDisplay.o     Clear.o
> ClearArea.o     ConfWind.o      ConnDis.o ConvSe
> l.o     CopyArea.o      CopyCmap.o      CopyGC.o        CopyPlane.o
> CrBFData.o      CrCmap.o        CrCursor.o CrGC.
> o       CrGlCur.o       CrPFBData.o     CrPixmap.o      CrWindow.o
> Cursor.o        DefCursor.o     DelProp.o DestSu
> bs.o    DestWind.o      DisName.o       DrArc.o         DrArcs.o
> DrLine.o        DrLines.o       DrPoint.o DrPoin
> ts.o    DrRect.o        DrRects.o       DrSegs.o        ErrDes.o
> ErrHndlr.o      EvToWire.o      FetchName.o Fill
> Arc.o   FillArcs.o      FillPoly.o      FillRct.o       FillRcts.o
> Flush.o         Font.o  FontNames.o     FontInfo
> .o      FreeCmap.o      FreeCols.o      FreeCurs.o      FreeEData.o
> FreeGC.o        FreePix.o       FSSaver.o GCMisc
> .o      Geom.o  GetAtomNm.o     GetColor.o      GetDflt.o       GetFPath.o
> GetFProp.o      GetGeom.o       GetHColo
> r.o     GetHints.o      GetIFocus.o     GetImage.o      GetKCnt.o
> GetMoEv.o       GetPCnt.o       GetPntMap.o GetP
> rop.o   GetSOwner.o     GetSSaver.o     GetStCmap.o     GetWAttrs.o
> GrButton.o      GrKey.o         GrKeybd.o GrPoin
> ter.o   GrServer.o      Host.o  IfEvent.o       ImUtil.o        ImText.o
> ImText16.o      InitExt.o       InsCmap.
> o       IntAtom.o       KeyBind.o       KeysymStr.o     KillCl.o
> LiHosts.o       LiICmaps.o      LiProps.o ListEx
> t.o     LoadFont.o      LookupCol.o     LowerWin.o Macros.o
> MapRaised.o
> MapSubs.o       MapWindow.o     MaskEven
> t.o     Misc.o  ModMap.o        MoveWin.o       NextEvent.o     OpenDis.o
> ParseCol.o      ParseGeom.o     PeekEven
> t.o     PeekIfEv.o      Pending.o       PmapBgnd.o      PmapBord.o
> PolyReg.o       PolyTxt.o       PolyTxt16.o PutB
> Event.o         PutImage.o      QuBest.o        QuColor.o       QuColors.o
> QuCurShp.o      QuExt.o         QuKeybd.
> o       QuPntr.o        QuStipShp.o     QuTextE16.o     QuTextExt.o
> QuTileShp.o     QuTree.o        RaiseWin.o RdBit
> F.o     RecolorC.o      ReconfWin.o     Region.o        RepWindow.o
> RestackWs.o     RotProp.o       ScrResStr.o SelI
> nput.o  SendEvent.o     SetBack.o       SetCRects.o     SetClMask.o
> SetClOrig.o     SetDashes.o     SetFPath.o SetFo
> nt.o    SetFore.o       SetFunc.o       SetHints.o      SetIFocus.o
> SetLStyle.o     SetPMask.o      SetPntMap.o SetS
> Owner.o         SetSSaver.o     SetState.o      SetStip.o
> SetStCmap.o
> SetTile.o       SetTSOrig.o     StBytes.
> o       StColor.o       StColors.o      StNColor.o      StName.o
> StrKeysym.o     Sync.o  Synchro.o       Text.o T
> ext16.o         TextExt.o       TextExt16.o     TrCoords.o
> UndefCurs.o
> UngrabBut.o     UngrabKbd.o     UngrabKe
> y.o     UngrabPtr.o     UngrabSvr.o     UninsCmap.o     UnldFont.o
> UnmapSubs.o     UnmapWin.o      VisUtil.o WarpPt
> r.o     WinEvent.o      Window.o        WrBitF.o        XlibAsync.o
> XlibInt.o       Xrm.o   evtomask.o      globals.
> o       GetGCVals.o     GetNrmHint.o    GetRGBCMap.o    GetTxtProp.o
> GetWMCMapW.o    GetWMProto.o    Iconify.o PixFor
> mats.o  PropAlloc.o     ReconfWM.o      SetNrmHint.o    SetRGBCMap.o
> SetTxtProp.o    SetWMCMapW.o    SetWMProto.o Str
> ToText.o        TextToStr.o     Withdraw.o      WMGeom.o        WMProps.o
> AuDispose.o AuGetBest.o AuFileName.o AuR
> ead.o            Lab.o  LabGcC.o        LabGcL.o        LabGcLC.o
> LabMnL.o        LabMxC.o        LabMxL.o LabMxLC
> .o      LabWpAj.o       Luv.o   LuvGcC.o        LuvGcL.o        LuvGcLC.o
> LuvMnL.o        LuvMxC.o        LuvMxL.o
>         LuvMxLC.o       LuvWpAj.o       XYZ.o   uvY.o   xyY.o   HVC.o
> HVCGcC.o        HVCGcV.o        HVCGcVC.o HVCMnV
> .o      HVCMxC.o        HVCMxV.o        HVCMxVC.o       HVCMxVs.o
> HVCWpAj.o       UNDEFINED.o     AddDIC.o AddSF.o
>         cmsAllNCol.o    cmsAllCol.o     CCC.o   cmsCmap.o       cmsColNm.o
> CvColW.o        CvCols.o        cmsGlobl
> s.o     IdOfPr.o        cmsInt.o        LRGB.o  cmsLkCol.o      cmsMath.o
> OfCCC.o         PrOfId.o        cmsProp.
> o       QBlack.o        QBlue.o         QGreen.o        QRed.o  QWhite.o
> QuCol.o         QuCols.o        SetCCC.o
>         SetGetCols.o    StCol.o         StCols.o        cmsTrig.o
> XRGB.o  FSWrap.o        ICWrap.o        IMWrap.o
>         OCWrap.o        OMWrap.o        lcWrap.o        mbWMProps.o
> mbWrap.o        wcWrap.o        FilterEv.o Regst
> Flt.o   locking.o       LockDis.o       x11trans.o      ximtrans.o
> XKB.o XKBBind.o XKBCompat.o XKBCtrls.o XKBCvt.o
> XKBGetMap.o               XKBGetByName.o XKBNames.o XKBRdBuf.o XKBSetMap.o
> XKBUse.o               XKBleds.o XKBBell.o XK
> BGeom.o XKBSetGeom.o XKBExtDev.o                  XKBList.o XKBMisc.o
> XKBMAlloc.o XKBGAlloc.o XKBAlloc.o Set
> Locale.o                imCallbk.o      imConv.o        imDefFlt.o
> imDefIc.o       imDefIm.o       imDefLkup.o imDi
> spch.o  imEvToWire.o    imExten.o       imImSw.o        imInsClbk.o
> imInt.o         imLcFlt.o       imLcGIc.o imLcIc
> .o      imLcIm.o        imLcLkup.o      imLcPrs.o       imLcSIc.o
> imRm.o  imRmAttr.o      imThaiFlt.o     imThaiIc
> .o      imThaiIm.o      imTrX.o         imTransR.o      imTrans.o
> lcCT.o  lcCharSet.o     lcConv.o        lcDB.o l
> cDefConv.o      lcEuc.o         lcFile.o        lcGenConv.o
> lcGeneric.o
> lcInit.o        lcJis.o         lcPrTxt.
> o       lcPubWrap.o     lcPublic.o      lcRM.o  lcSjis.o        lcStd.o
> lcTxtPr.o       lcUTF.o         lcUTF8.o
>         lcUtil.o        omDefault.o     omGeneric.o     omImText.o
> omText.o        omTextEsc.o     omTextExt.o omTe
> xtPer.o         omXChar.o  junk.o  -image-base `cat
> /tmp/DLL_BASE_COUNTER` -lipc
> /usr/lib/gcc-lib/i686-cygwin/2.9-cygwin-990830/../../../../i686-cy
> gwin/lib/l
> ibcygwin.a(libcmain.o)(.text+0x7f): undefine
> d reference to `WinMain@16'
> collect2: ld returned 1 exit status
> dllwrap: gcc exited with status 1
> make: *** [libX11.dll] Error 1
> VOYAGER:/build1/xc/lib/X11
> $
>
> Trevor
>
> ----- Original Message -----
> From: "Suhaib M. Siddiqi" <ssiddiqi@InspirePharm.Com>
> To: "Cygwin-Xfree" <cygwin-xfree@sourceware.cygnus.com>
> Sent: Wednesday, 5 April 2000 8:30
> Subject: RE: RE:Building XFree
>
>
> >
> >
> > > The -lipc from #define ExtraLibraries was removed in the recent
> > > code base, which was uploaded 2 weeks ago.  You must be working
> > > with XF3.9.18 source tree.
> > >
> > > Please edit the xc/config/cygwin.cf and remove -lipc from #define
> > > ExtraLibraries flags. Also change the #deifne HaveShm to NO in
> cygwin.cf.
> >
> > Sorry xc/config/cygwin.cf should be xc/config/cf/cygwin.cf
> >
> > >
> > > The IPC library has serious problems with shared memory in X.
>  It causes
> > > MIT-SHM
> > > to corrupt XF86 BigFonts and literally any X client which uses
> > > Xterm, Xclock is one of them, to crash due to shared memory
> > > problems and ACCESS_VIOLATION.
> > >
> > > >
> > > > I will try rebuilding it again
> > > >
> > > >
> > > > Also while I am here, I also get the following error
> > > > make[1]: *** Warning:  Clock skew detected.  Your build may be
> > > incomplete.
> > > > Should I just ignore it?
> > >
> > > I have no idea about this warning... Does it come during compilation?
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]