|
From: Daniel A. S. <st...@ic...> - 2005-09-29 00:08:49
|
Kevin, On 29/09/2005, at 9:14, Kevin Walzer wrote: > Earlier, the build was dying after complaining that some defintions in > tkMacOSXInt.h had errors. Looking at the code in question, I noticed > that the lines began with the phrase "Module Scope," like this: > > ~ MODULE_SCOPE int TkMacOSXUseAntialiasedText(Tcl_Interp *interp, int > enable); > > Commenting out those lines and replacing them without the phrase > "module > scope" allowed the build to proceed, and I built Tile and Tktreectrl > successfully in the standard fashion (not as universal binaries). > > I'm not sure why commenting out the "module scope" bits worked; I'm > sure > that is there for a reason, but it's not clear to me. the problem is that MODULE_SCOPE is not defined in you build, it looks like this is probably a bug on my end, it should be defined in tkInt.h as it is in tclInt.h, in the meantime, including tclInt.h before tkMacOSXInt.h should fix the problem. As mentioned, you can't rely on using those routines in tile anyway, so maybe tkMacOSXInt.h shouldn't be included at all > Trying again as a universal binary (building against the 10.4 sdk, > -arch > i386, -arch ppc, and so on), Tile (and tktreectrl) got all the way > through the builds before dying with this error message: > > ld: Undefined symbols: > _tclStubsPtr > _Tcl_InitStubs > _Tk_InitStubs > _tkStubsPtr > _tkIntXlibStubsPtr > _tkIntStubsPtr > _tkIntPlatStubsPtr > _tkPlatStubsPtr > /usr/bin/libtool: internal link edit command failed > lipo: can't figure out the architecture type of: /var/tmp//ccOMqrpA.out > make: *** [libtile0.6.dylib] Error 1 > > I'm not sure where these symbols are supposed to come in: perhaps > someone with more knowledge than me would find this error message > useful? this means that linking with the tcl/tk stubs lib goes wrong somehwere as these symbols are all defined in libtclstub.a resp libtkstub.a. Are you sure you are linking against universal stubs libs ? make sure those libs got built fat as well (check with lipo -info), otherwise rebuild your tcl & tk Cheers, Daniel -- ** Daniel A. Steffen ** "And now for something completely ** Dept. of Mathematics ** different" Monty Python ** Macquarie University ** <mailto:st...@ma...> ** NSW 2109 Australia ** <http://www.maths.mq.edu.au/~steffen/> |