<i>Cannot load sampleextension when built with mingw64</i> status still Open with 3 other changes
by
.
D 2023-08-01T08:00:44.707
J icomment Right,\sI\srealized\sas\smuch\sbut\sthe\squestion\sis\swhy\sthis\shappens.\sBoth\sUbuntu\sand\sMingw64\shave\sa\ssystem\sTcl\sinstalled\sbut\sthis\serror\sonly\sshows\sup\son\sMingw64.\sIn\sboth\scases\s`--with-tcl`\sspecifies\sthe\sTcl9\sinstallation\sand\sthe\sconfig.log\sshows\sthe\scorrect\s9.0\stclConfig.sh\sbeing\spicked\sup.\r\n\r\nTracing\sthrough\sit\sappears\sthis\sis\scaused\sby\sthe\sfollowing\sfragment\sfrom\sthe\s`configure`\sscript\r\n\r\n```\r\nif\stest\s-n\s"$CONFIG_SITE";\sthen\r\n\s\sac_site_files="$CONFIG_SITE"\r\nelif\stest\s"x$prefix"\s!=\sxNONE;\sthen\r\n\s\sac_site_files="$prefix/share/config.site\s$prefix/etc/config.site"\r\nelse\r\n\s\sac_site_files="$ac_default_prefix/share/config.site\s$ac_default_prefix/etc/config.site"\r\nfi\r\nfor\sac_site_file\sin\s$ac_site_files\r\ndo\r\n\s\scase\s$ac_site_file\sin\s#(\r\n\s\s*/*)\s:\r\n\s\s\s\s\s;;\s#(\r\n\s\s*)\s:\r\n\s\s\s\sac_site_file=./$ac_site_file\s;;\r\nesac\r\n\s\sif\stest\s-f\s"$ac_site_file"\s&&\stest\s-r\s"$ac_site_file";\sthen\r\n\s\s\s\s{\sprintf\s"%s\\n"\s"$as_me:${as_lineno-$LINENO}:\sloading\ssite\sscript\s$ac_site_file"\s>&5\r\nprintf\s"%s\\n"\s"$as_me:\sloading\ssite\sscript\s$ac_site_file"\s>&6;}\r\n\s\s\s\ssed\s's/^/|\s/'\s"$ac_site_file"\s>&5\r\n\s\s\s\s.\s"$ac_site_file"\s\\\r\n\s\s\s\s\s\s||\s{\s{\sprintf\s"%s\\n"\s"$as_me:${as_lineno-$LINENO}:\serror:\sin\s\\`$ac_pwd':"\s>&5\r\n```\r\n\r\nOn\smingw,\sthe\ssystem\spicks\sup\s/etc/config.site\sresulting\sin\s`prefix`\sbeing\sset\sto\s`/mingw64`.\sOn\sUbuntu,\sthe\sequivalent\ssite\sfile\sdoes\snot\sexist\sresulting\sin\s`prefix`\sstaying\sas\s`NONE`.\sLater\son\s`includedir`\sis\sset\sto\s`$(prefix)/include`\sand\s**this\sis\spreferred\sover\s`$(TCL_PREFIX)/include`\sin\sthe\ssearch\sfor\s`tcl.h`**.\r\n\r\nIt\sdoes\snot\smake\ssense\sto\sme\sas\sthat\sthe\ssite\spath\sis\sgiven\spreference\sover\sthe\spath\sspecified\svia\s`--with-tcl`\sto\s`configure`.\sIf\sthat\soption\sis\sspecified,\sall\spaths\sshould\starget\sthat\sdirectory.\sBut\sthen\sagain,\sI\sknow\slittle\sabout\sUnix\sconventions.\sIt\sseems\sto\sme\sthough,\severy\sextension\swriter\sis\sgoing\sto\srun\sinto\sthis\sand\swonder\sif\sthey\shave\smade\ssome\serror\sin\sporting\sto\sTcl\s9.\sAs\sI\sdid.\r\n\r\nUsing\s`--with-tclinclude`\sin\s`configure`\sfixes\sthe\sproblem\sbut\sreally\sshould\snot\sbe\srequired\sonce\s--with-tcl\sis\sspecified.
J login apnadkarni
J mimetype text/x-markdown
K 6f22c7a1fc97841d58a8d5fb2dc40bf82b839af6
U apnadkarni
Z 760f89eacf15e9283f4e3c2992511218