problem building on MacOS X: duplicate libs
Closed / Invalid958212ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 22 years ago
Descriptionplain2004-05-21 19:56:22
I like to have a unix/ build of Tcl/Tk on my MacOS X box so I can see how my application looks to unix users. In other words, I build tcl/tk from source as if for vanilla unix and it ends up in usr/local and talks to Apple's X11. (This is entirely separate from an aqua framework build, which I also have.) Normally this has worked flawlessly, but for some reason I'm having trouble installing tcl/tk8.4.6. The worst problem was as follows (I'll report the other as a separate message): it seems there are duplicate tclStubLib.o libraries generated and this makes the tk make very upset: ld: warning multiple definitions of symbol _tclIntPlatStubsPtr /Users/rowen/tcl8.4.6/unix/libtcl8.4.dylib(tclStubLib.o) definition of _tclIntPlatStubsPtr /Users/rowen/tk8.4.6/unix/libtk8.4.dylib(tclStubLib.o) definition of _tclIntPlatStubsPtr ld: warning multiple definitions of symbol _tclIntStubsPtr /Users/rowen/tcl8.4.6/unix/libtcl8.4.dylib(tclStubLib.o) definition of _tclIntStubsPtr /Users/rowen/tk8.4.6/unix/libtk8.4.dylib(tclStubLib.o) definition of _tclIntStubsPtr ld: warning multiple definitions of symbol _Tcl_InitStubs /Users/rowen/tcl8.4.6/unix/libtcl8.4.dylib(tclStubLib.o) definition of _Tcl_InitStubs /Users/rowen/tk8.4.6/unix/libtk8.4.dylib(tclStubLib.o) definition of _Tcl_InitStubs ld: warning multiple definitions of symbol _tclStubsPtr /Users/rowen/tcl8.4.6/unix/libtcl8.4.dylib(tclStubLib.o) definition of _tclStubsPtr /Users/rowen/tk8.4.6/unix/libtk8.4.dylib(tclStubLib.o) definition of _tclStubsPtr ld: warning multiple definitions of symbol _tclPlatStubsPtr /Users/rowen/tcl8.4.6/unix/libtcl8.4.dylib(tclStubLib.o) definition of _tclPlatStubsPtr /Users/rowen/tk8.4.6/unix/libtk8.4.dylib(tclStubLib.o) definition of _tclPlatStubsPtr ld: warning suggest use of -bind_at_load, as lazy binding may result in errors or different symbols being used symbol _tclPlatStubsPtr used from dynamic library /Users/rowen/tcl8.4.6/unix/libtcl8.4.dylib(tclStubLib.o) not from earlier dynamic library /usr/local/lib/libtk8.4.dylib(tclStubLib.o) symbol _tclIntStubsPtr used from dynamic library /Users/rowen/tcl8.4.6/unix/libtcl8.4.dylib(tclStubLib.o) not from earlier dynamic library /usr/local/lib/libtk8.4.dylib(tclStubLib.o) symbol _Tcl_InitStubs used from dynamic library /Users/rowen/tcl8.4.6/unix/libtcl8.4.dylib(tclStubLib.o) not from earlier dynamic library /usr/local/lib/libtk8.4.dylib(tclStubLib.o) symbol _tclStubsPtr used from dynamic library /Users/rowen/tcl8.4.6/unix/libtcl8.4.dylib(tclStubLib.o) not from earlier dynamic library /usr/local/lib/libtk8.4.dylib(tclStubLib.o) symbol _tclIntPlatStubsPtr used from dynamic library /Users/rowen/tcl8.4.6/unix/libtcl8.4.dylib(tclStubLib.o) not from earlier dynamic library /usr/local/lib/libtk8.4.dylib(tclStubLib.o) [rowen:~/tk8.4.6/unix] rowen% I ignored the problem and went ahead and installed, and it seems to work. But I can't build "snack", and the errors I got when I tried suggest it may be for the same reason.
northcobplain2004-08-11 07:50:13
Logged In: YES user_id=108591 This problem has been around a long time since at least 8.3. Does anyone know how to fix it?
hobbs Ticket [958212ffff]: 1 change
[History diff]2004-08-11 08:01:05
dasplain2004-08-11 10:31:44
Logged In: YES user_id=90580 you can ignore this warning, it occurs because both the tcl and tk libraries contain tcl stub symbols, but as they are exactly the same, this causes no problem, there is no need to fix anything. I dont think your problem with snack is related at all, have you looked at my snack patch for tcltkaqua, that may help: http://tcltkaqua.sourceforge.net/8.4.7/patches/snack.diff otherwise, please ask on tcl-mac about building snack and not here...
Log in (anonymous is fine) to add a comment.