From: Daniel L. <da...@ra...> - 2002-02-14 02:07:42
|
I am trying to port a ITcl based program to OSX. I have no previous experience with this OS, I would appreciate some help. I have compiled tcl8.3.3 and tk8.3.3 with no problems. (./configure --prefix=/home/daniel/test; make; make install) I try to compile itcl, get some errors, manually finish the compilation (for details, see below) and do a make install. However, when I do a package require Itcl it dies with the following error: dyld: inappropriate Mach-O file It seems the shared library is not good, but I do not know how to troubleshoot this. Any hints? Alternatively, is there somewhere I can get a precompiled Tcl/Tk/Itcl suite? Thanks Daniel The following is the detailed trail: [localhost:~/test/itcl3.2.1/itcl] daniel% make cc -DVERSION=\"3.2\" -DUSE_TCL_STUBS=1 -DITCL_LIBRARY=\"/home/daniel/test/install/lib/itcl3.2\" -I/Users/daniel/test/tcl8.3.3/generic -I/Users/daniel/test/tcl8.3.3/unix -I"./generic" -I"./unix" -O3 -fno-common -c echo ./generic/itclStubInit.c -o itclStubInit.o cc -DVERSION=\"3.2\" -DUSE_TCL_STUBS=1 -DITCL_LIBRARY=\"/home/daniel/test/install/lib/itcl3.2\" -I/Users/daniel/test/tcl8.3.3/generic -I/Users/daniel/test/tcl8.3.3/unix -I"./generic" -I"./unix" -O3 -fno-common -c echo ./generic/itcl_bicmds.c -o itcl_bicmds.o cc -DVERSION=\"3.2\" -DUSE_TCL_STUBS=1 -DITCL_LIBRARY=\"/home/daniel/test/install/lib/itcl3.2\" -I/Users/daniel/test/tcl8.3.3/generic -I/Users/daniel/test/tcl8.3.3/unix -I"./generic" -I"./unix" -O3 -fno-common -c echo ./generic/itcl_class.c -o itcl_class.o ./generic/itcl_class.c: In function Itcl_CreateClass': ./generic/itcl_class.c:216: warning: passing arg 2 of pointer to function from incompatible pointer type cc -DVERSION=\"3.2\" -DUSE_TCL_STUBS=1 -DITCL_LIBRARY=\"/home/daniel/test/install/lib/itcl3.2\" -I/Users/daniel/test/tcl8.3.3/generic -I/Users/daniel/test/tcl8.3.3/unix -I"./generic" -I"./unix" -O3 -fno-common -c echo ./generic/itcl_cmds.c -o itcl_cmds.o cc -DVERSION=\"3.2\" -DUSE_TCL_STUBS=1 -DITCL_LIBRARY=\"/home/daniel/test/install/lib/itcl3.2\" -I/Users/daniel/test/tcl8.3.3/generic -I/Users/daniel/test/tcl8.3.3/unix -I"./generic" -I"./unix" -O3 -fno-common -c echo ./generic/itcl_ensemble.c -o itcl_ensemble.o cc -DVERSION=\"3.2\" -DUSE_TCL_STUBS=1 -DITCL_LIBRARY=\"/home/daniel/test/install/lib/itcl3.2\" -I/Users/daniel/test/tcl8.3.3/generic -I/Users/daniel/test/tcl8.3.3/unix -I"./generic" -I"./unix" -O3 -fno-common -c echo ./generic/itcl_linkage.c -o itcl_linkage.o cc -DVERSION=\"3.2\" -DUSE_TCL_STUBS=1 -DITCL_LIBRARY=\"/home/daniel/test/install/lib/itcl3.2\" -I/Users/daniel/test/tcl8.3.3/generic -I/Users/daniel/test/tcl8.3.3/unix -I"./generic" -I"./unix" -O3 -fno-common -c echo ./generic/itcl_methods.c -o itcl_methods.o ./generic/itcl_methods.c: In function Itcl_GetMemberFuncUsage': ./generic/itcl_methods.c:1370: warning: passing arg 2 of pointer to function discards qualifiers from pointer target type cc -DVERSION=\"3.2\" -DUSE_TCL_STUBS=1 -DITCL_LIBRARY=\"/home/daniel/test/install/lib/itcl3.2\" -I/Users/daniel/test/tcl8.3.3/generic -I/Users/daniel/test/tcl8.3.3/unix -I"./generic" -I"./unix" -O3 -fno-common -c echo ./generic/itcl_migrate.c -o itcl_migrate.o cc -DVERSION=\"3.2\" -DUSE_TCL_STUBS=1 -DITCL_LIBRARY=\"/home/daniel/test/install/lib/itcl3.2\" -I/Users/daniel/test/tcl8.3.3/generic -I/Users/daniel/test/tcl8.3.3/unix -I"./generic" -I"./unix" -O3 -fno-common -c echo ./generic/itcl_objects.c -o itcl_objects.o cc -DVERSION=\"3.2\" -DUSE_TCL_STUBS=1 -DITCL_LIBRARY=\"/home/daniel/test/install/lib/itcl3.2\" -I/Users/daniel/test/tcl8.3.3/generic -I/Users/daniel/test/tcl8.3.3/unix -I"./generic" -I"./unix" -O3 -fno-common -c echo ./generic/itcl_obsolete.c -o itcl_obsolete.o cc -DVERSION=\"3.2\" -DUSE_TCL_STUBS=1 -DITCL_LIBRARY=\"/home/daniel/test/install/lib/itcl3.2\" -I/Users/daniel/test/tcl8.3.3/generic -I/Users/daniel/test/tcl8.3.3/unix -I"./generic" -I"./unix" -O3 -fno-common -c echo ./generic/itcl_parse.c -o itcl_parse.o cc -DVERSION=\"3.2\" -DUSE_TCL_STUBS=1 -DITCL_LIBRARY=\"/home/daniel/test/install/lib/itcl3.2\" -I/Users/daniel/test/tcl8.3.3/generic -I/Users/daniel/test/tcl8.3.3/unix -I"./generic" -I"./unix" -O3 -fno-common -c echo ./generic/itcl_util.c -o itcl_util.o rm -f libitcl3.2.dylib cc -dynamiclib -compatibility_version 8 -current_version 3.2 -install_name / -o libitcl3.2.dylib itclStubInit.o itcl_bicmds.o itcl_class.o itcl_cmds.o itcl_ensemble.o itcl_linkage.o itcl_methods.o itcl_migrate.o itcl_objects.o itcl_obsolete.o itcl_parse.o itcl_util.o -L/Users/daniel/test/tcl8.3.3/unix -ltclstub8.3 ld: archive: /Users/daniel/test/tcl8.3.3/unix/libtclstub8.3.a has no table of contents, add one with ranlib(1) (can't load from it) /usr/bin/libtool: internal link edit command failed [localhost:~/test/itcl3.2.1/itcl] daniel% ranlib /Users/daniel/test/tcl8.3.3/unix/libtclstub8.3.a [localhost:~/test/itcl3.2.1/itcl] daniel% make rm -f libitcl3.2.dylib cc -dynamiclib -compatibility_version 8 -current_version 3.2 -install_name / -o libitcl3.2.dylib itclStubInit.o itcl_bicmds.o itcl_class.o itcl_cmds.o itcl_ensemble.o itcl_linkage.o itcl_methods.o itcl_migrate.o itcl_objects.o itcl_obsolete.o itcl_parse.o itcl_util.o -L/Users/daniel/test/tcl8.3.3/unix -ltclstub8.3 : libitcl3.2.dylib cc -DVERSION=\"3.2\" -DUSE_TCL_STUBS=1 -DITCL_LIBRARY=\"/home/daniel/test/install/lib/itcl3.2\" -I/Users/daniel/test/tcl8.3.3/generic -I/Users/daniel/test/tcl8.3.3/unix -I"./generic" -I"./unix" -O3 -fno-common -c echo ./generic/itclStubLib.c -o itclStubLib.o rm -f libitclstub3.2.a ar cr libitclstub3.2.a itclStubLib.o : libitclstub3.2.a [localhost:~/test/itcl3.2.1/itcl] daniel% make install /bin/sh ./../config/mkinstalldirs /home/daniel/test/install/lib /bin/sh ./../config/mkinstalldirs /home/daniel/test/install/bin /bin/sh ./../config/mkinstalldirs /home/daniel/test/install/lib/itcl3.2 /bin/sh ./../config/mkinstalldirs /home/daniel/test/install/lib/itcl3.2 /home/daniel/test/install/bin/tclsh8.3 ./../config/installFile.tcl -c libitcl3.2.dylib /home/daniel/test/install/lib/libitcl3.2.dylib /home/daniel/test/install/bin/tclsh8.3 ./../config/installFile.tcl -c libitclstub3.2.a /home/daniel/test/install/lib/libitclstub3.2.a : /home/daniel/test/install/lib/libitcl3.2.dylib : /home/daniel/test/install/lib/libitclstub3.2.a /home/daniel/test/install/bin/tclsh8.3 echo ./../config/installFile.tcl -c -m 644 pkgIndex.tcl /home/daniel/test/install/lib/itcl3.2 /bin/sh ./../config/mkinstalldirs /home/daniel/test/install/include Installing header files in /home/daniel/test/install/include Installing ./generic/itcl.h Installing ./generic/itclDecls.h Installing ./generic/itclInt.h Installing ./generic/itclIntDecls.h Installing library files in /home/daniel/test/install/lib/itcl3.2 Installing ./library/itcl.tcl /bin/sh ./../config/mkinstalldirs /home/daniel/test/install/man/mann Installing man pages in /home/daniel/test/install/man Installing ./doc/body.n Installing ./doc/class.n Installing ./doc/code.n Installing ./doc/configbody.n Installing ./doc/delete.n Installing ./doc/ensemble.n Installing ./doc/find.n Installing ./doc/itcl.n Installing ./doc/itcl_class.n Installing ./doc/itcl_info.n Installing ./doc/itclvars.n Installing ./doc/local.n Installing ./doc/scope.n [localhost:~/test/itcl3.2.1/itcl] daniel% /home/daniel/test/install/bin/tclsh8.3 % package require Itcl dyld: inappropriate Mach-O file |