Correctly building insight-6.6-mingw-src

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Correctly building insight-6.6-mingw-src

I am looking for some help building insight 6.6 under MinGW.  Let me start with why I need help since I've seen other posts where people ask why the person doesn't use a pre-built version or a newer version.

Why: We currently use insight 6.6 with local changes to address some issues and interface with a specific BDM.  Building software for Windows is far from my area of expertise.  However, those that worked on our local build of insight have left and there are issues with our local archive.  I am unable to rebuild from our archive.  I am attempting to start over with a fresh insight 6.6 and get that to build first.  Then I will look into applying our changes.  This post is regarding getting a fresh build of insight 6.6.

I have done a lot of searching and am aware that there are issues building insight 6.6 with MinGW/MSys.  But being a newbie to building Windows applications is likely causing me to not fully understand what I am reading.  So if the answer seems obvious to those of you with experience, please bear with me as it is all new to me.  Thank you.

I have installed the latest MinGW/MSys and I am trying to build from insight-6.6-mingw-src.tar.bz2.  From other's posts, that sounded like it should work.  My only guess is that I am missing something else that is required or I did not install a MinGW package that is needed.  In MinGW Installation Manager, I only selected mingw32-base and msys-base under Basic Setup.

The issue I am stuck on is:
tclWinChan.o: In function `Tcl_MakeFileChannel':
w:\DevEnv\GNU\coldfire\build\insight\tcl\win/../../../../src/insight-6.6-mingw/tcl/win/tclWinChan.c:1052: undefined reference to `ESP'
w:\DevEnv\GNU\coldfire\build\insight\tcl\win/../../../../src/insight-6.6-mingw/tcl/win/tclWinChan.c:1052: undefined reference to `EBP'
w:\DevEnv\GNU\coldfire\build\insight\tcl\win/../../../../src/insight-6.6-mingw/tcl/win/tclWinChan.c:1067: undefined reference to `ESP'
w:\DevEnv\GNU\coldfire\build\insight\tcl\win/../../../../src/insight-6.6-mingw/tcl/win/tclWinChan.c:1067: undefined reference to `EBP'

I can see that HAVE_NO_SEH=1 and DEXCEPTION_DISPOSITION=int which as best I've been able to figure out is correct for building under MinGW/MSys.  Below is the build/link line that results in the fatal error as well as the corresponding compile line.

gcc -c -g -O2 -Wall -Wconversion  -I"../../../../src/insight-6.6-mingw/tcl/win/../generic" -I"../../../../src/insight-6.6-mingw/tcl/win" -mwin32  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_NO_SEH=1 -DEXCEPTION_DISPOSITION=int -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1  -DBUILD_tcl ../../../../src/insight-6.6-mingw/tcl/win/tclWinChan.c -o tclWinChan.o

gcc -shared -g -O2  -o tcl84.dll -mwin32          -Wl,--out-implib,libtcl84.a regcomp.o regexec.o regfree.o regerror.o tclAlloc.o tclAsync.o tclBasic.o tclBinary.o tclCkalloc.o tclClock.o tclCmdAH.o tclCmdIL.o tclCmdMZ.o tclCompCmds.o tclCompExpr.o tclCompile.o tclDate.o tclEncoding.o tclEnv.o tclEvent.o tclExecute.o tclFCmd.o tclFileName.o tclGet.o tclHash.o tclHistory.o tclIndexObj.o tclInterp.o tclIO.o tclIOCmd.o tclIOGT.o tclIOSock.o tclIOUtil.o tclLink.o tclLiteral.o tclListObj.o tclLoad.o tclMain.o tclNamesp.o tclNotify.o tclObj.o tclPanic.o tclParse.o tclParseExpr.o tclPipe.o tclPkg.o tclPosixStr.o tclPreserve.o tclProc.o tclRegexp.o tclResolve.o tclResult.o tclScan.o tclStringObj.o tclStubInit.o tclStubLib.o tclThread.o tclThreadAlloc.o tclThreadJoin.o tclTimer.o tclUtf.o tclUtil.o tclVar.o tclWin32Dll.o tclWinChan.o tclWinConsole.o tclWinSerial.o tclWinError.o tclWinFCmd.o tclWinFile.o tclWinInit.o tclWinLoad.o tclWinMtherr.o tclWinNotify.o tclWinPipe.o tclWinSock.o tclWinThrd.o tclWinTime.o  strftime.o strtoll.o strtoull.o tcl.res.o

Any assistance you could give would be greatly appreciated.