.
D 2011-02-15T08:27:18
J assignee kennykb
J cmimetype text/plain
J comment Platform:\sMac\sOS\sX,\sversion\s10.4/10.5/10.6\nThe\sproblem\soccurs\son\s10.6\sas\swell,\sbut\sis\sharder\sto\sreproduce\sthere,\ssee\sbelow.\n\nWhen\sconfigured\swith\s--disable-load,\sthe\stclLoadDyld.c\ssource\sis\snot\sbuilt.\sHowever,\stclIOUtil.c\swill\suse\sTclpLoadMemoryGetBuffer()\sand\sTclpLoadMemory()\s(both\simplemented\sin\stclLoadDyld.c)\sif\sTCL_LOAD_FROM_MEMORY\sis\s#defined.\sThis\sleads\sto\smissing\ssymbols\sat\slink\stime:\n\ngcc-4.2\s-Os\s-arch\si386\s-D__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__=1050\s-pipe\s\s\s-isysroot\s/Developer/SDKs/MacOSX10.5.sdk\s\s\s-arch\si386\s-D__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__=1050\s-isysroot\s/Developer/SDKs/MacOSX10.5.sdk\s\stclAppInit.o\s-L/Users/mth/prog/openmsx/tclbug-build\s-ltcl8.5\s-framework\sCoreFoundation\s\s-sectcreate\s__TEXT\s__info_plist\sTclsh-Info.plist\s\\\n\s-o\stclsh\nUndefined\ssymbols:\n\s\s"_TclpLoadMemoryGetBuffer",\sreferenced\sfrom:\n\s\s\s\s\s\s_TclLoadFile\sin\slibtcl8.5.a(tclIOUtil.o)\n\s\s"_TclpLoadMemory",\sreferenced\sfrom:\n\s\s\s\s\s\s_TclLoadFile\sin\slibtcl8.5.a(tclIOUtil.o)\nld:\ssymbol(s)\snot\sfound\ncollect2:\sld\sreturned\s1\sexit\sstatus\nmake:\s***\s[tclsh]\sError\s1\n\nI\sworked\saround\sthe\sissue\sby\smodifying\sconifgure\slike\sthis:\s(instead\sof\sunconditionally\s#defining\sTCL_LOAD_FROM_MEMORY\son\sDarwin)\n\nif\stest\s"$DL_OBJS"\s!=\s"tclLoadNone.o";\sthen\ncat\s>>confdefs.h\s<<\\_ACEOF\n#define\sTCL_LOAD_FROM_MEMORY\s1\n_ACEOF\nfi\n\nTo\sreproduce\sthe\sproblem,\sit\sis\sessential\sto\scompile\sfor\sOS\sX\s10.4\sor\s10.5,\ssince\sthose\scontain\sTcl\s8.4\sin\sthe\sSDK\swhile\s10.6\scontains\sTcl\s8.5\sin\sthe\sSDK\sand\stclsh\sis\slinked\sto\sthe\ssystemwide\slibtcl\sinstead\sto\sthe\sone\sjust\sbuilt\s(maybe\sthat\sis\sa\sbug\sin\sitself?).\sFor\sconvenience,\sI\sattached\sthe\sscript\sthat\sI\sused\sto\sdemonstrate\sthe\sproblem.\sIt\ssets\senvironment\svariables\sand\scompile\sflags\sto\sbuild\sfor\sMac\sOS\sX\s10.5,\seven\sif\syou\srun\sit\son\s10.6.\n
J foundin obsolete:\s8.5.9
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter mthuurne
J subsystem 40.\sDynamic\sLoading
J title Compile\serror\swith\s--disable-load\son\sMac\sOS\sX
J type Bug
K 3181906fffffffffffffffffffffffffffffffff
U mthuurne
Z 693567d84bd1ae3a1b324bcafe266377