From: Obermeier-Tcl3D <obe...@tc...> - 2024-09-14 17:08:02
|
Hi Richard, the warnings you get are OK. I also get the 2 failing tests, but these are only because the Tk error message has changed slightly ("type" was removed): ---- Result was: 1 {bad relief "1.5": must be flat, groove, raised, ridge, solid, or sunken} ---- Result should have been (exact matching): 1 {bad relief type "1.5": must be flat, groove, raised, ridge, solid, or sunken} Running the demos works on my MacBook Air (M2, latest Sonoma). Have you tried running some of the demos directly, ex. "tclsh debug.tcl"? Best regards, Paul Am 12.09.2024 um 23:56 schrieb Friedman, Richard A.: > > Dear Paul, > > Thank you for the flag. It helped matters, but there still seem to be some problems. I do not know if you can help with this considering that Tktable is no longer supported, but here is the info in case you can help. > > ``` > > sudo CFLAGS='-fpermissive -Wno-error=incompatible-function-pointer-types' configure > > . > > . > > . > > config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting > > . > > . > > . > > *./generic/tkTable.c:164:52: warning: incompatible function pointer types initializing 'Tk_OptionPrintProc *' (aka 'const char *(*)(void *, struct Tk_Window_ *, char *, int, void (**)(char *))') with an expression of type 'char *(ClientData, Tk_Window, char *, int, Tcl_FreeProc **)' (aka 'char *(void *, struct Tk_Window_ *, char *, int, void (**)(char *))') [-Wincompatible-function-pointer-types]* > > static Tk_CustomOption drawOpt = { Cmd_OptionSet, Cmd_OptionGet, > > . > > . > > . > > *./generic/tkTableCellSort.c:73:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]* > > TableSortCompareProc(first, second) > > *^* > > . > > . > > . > > *./generic/tkTableCmds.c:186:14: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast]* > > posn = ((int) Tcl_GetHashKey(hashTablePtr, entryPtr)) + offset; > > *^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~* > > . > > . > > . > > *./generic/tkTableUtil.c:73:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]* > > TableOptionBdSet(clientData, interp, tkwin, value, widgRec, offset) > > ``` > > No errors. Just warnings > > ``` > > raf4$ make test > > . > > . > > . > > ==== table-1.92 configuration options, -relief FAILED > > ==== Contents of test case: > > list [catch {.t configure $name [lindex $test 3]} msg] $msg > > ---- Result was: > > 1 {bad relief "1.5": must be flat, groove, raised, ridge, solid, or sunken} > > ---- Result should have been (exact matching): > > . > > . > > .Tests ended at Thu Sep 12 17:35:57 EDT 2024 > > all.tcl: Total 225 Passed 223 Skipped 0 Failed 2 > > $make demo > > TCL_LIBRARY=`echo /private/tmp/tcl-tk-20240229-4610-gcj7fw/tcl8.6.14/library` TK_LIBRARY=`echo /private/tmp/tcl-tk--tk-20240229-4610-xewyz9/tk8.6.14/library` DYLD_LIBRARY_PATH=".:/usr/local/lib:/usr/local/lib:" PATH=".:/usr/local/lib:/usr/local/lib:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin:/usr/local/gfortran/bin:/Applications/samtools-1.17/bin:/Applications:/Users/raf4/opt/anaconda3/bin:/Users/raf4/opt/anaconda3/condabin:/usr/sbin:/sbin:/opt/X11/bin:/Library/Apple/usr/bin:/Applications/bowtie/bowtie2-2.5.1-macos-x86_64:/Applications/bismark/Bismark-0.24.1:/opt/local/bin/bedtools:/usr/local/bin/R:/opt/local/bin:/opt/local/libexec/meme-5.5.5:." TCLLIBPATH="." /usr/local/bin/wish8.6 `echo ./demos/debug.tcl` | cat > > Tktable v2.11 loaded > > Table is .t with array t > > ``` > > Seems to have worked fine and produced a table, but I also got a popup that said “wish 8.6 quit unexpectedly” > > ``` > > #make install > > ``` > > No error messages. > > I would apprciate any suggestions. > > Thanks and best wishes, > > Rich > > *From: *Obermeier-Tcl3D <obe...@tc...> > *Date: *Wednesday, September 11, 2024 at 6:44 PM > *To: *tc...@li... <tc...@li...> > *Subject: *Re: [MACTCL] [EXTERNAL] Re: Problem compiling TkTable on Mac OS 14.6.1 Sonoma > > > > > You don't often get email from obe...@tc.... Learn why this is important <https://aka.ms/LearnAboutSenderIdentification> > > > > Sorry Richard. > > Forgot to mention, that you have to lower the strictness of gcc. > Since gcc 14 several issues, which have been just warnings before, are now errors. > > You can work around the strictness by specifying the following options when running configure: > > CFLAGS='-fpermissive -Wno-error=incompatible-function-pointer-types' configure ... > > Regards, > Paul > > Am 11.09.2024 um 20:32 schrieb Friedman, Richard A.: > > Dear Paul, > > I downloaded Tktable 2.11 and still got the same error message when I used make > > ``` > > (base) icrc8cc-n004:Tktable-2.11 raf4$ make > > sed -e '/^\#/d' -e '/^$/d' -e 's/\\/\\\\/g' -e 's/\"/\\"/g' -e 's/^/"/' -e 's/$/\\n"/' < `echo library/tkTable.tcl` > 'tkTable.tcl.h' || { rm -f tkTable.tcl.h; exit 1; } > > gcc -DPACKAGE_NAME=\"Tktable\" -DPACKAGE_TARNAME=\"tktable\" -DPACKAGE_VERSION=\"2.11\" -DPACKAGE_STRING=\"Tktable\ 2.11\" -DPACKAGE_BUGREPORT=\"\" -DBUILD_Tktable=/\*\*/ -DMAC_OSX_TK=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DNO_VALUES_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -DTCL_WIDE_INT_IS_LONG=1 -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 -DTBL_COMMAND=\"table\" -DTBL_RUNTIME=\"tkTable.tcl\" -DTBL_RUNTIME_DIR=\"/usr/local/Cellar/tcl-tk/8.6.14/lib/Tktable2.11\" -I. -I"./generic" -I"/usr/local/Cellar/tcl-tk/8.6.14/include/tcl-tk" -I"/usr/local/Cellar/tcl-tk/8.6.14/include/tcl-tk" -pipe -Os -Wall -fno-common -c `echo ./generic/tkTable.c` -o tkTable.o > > *./generic/tkTable.c:164:52: error: incompatible function pointer types initializing 'Tk_OptionPrintProc *' (aka 'const char *(*)(void *, struct Tk_Window_ *, char *, int, void (**)(char *))') with an expression of type 'char *(ClientData, Tk_Window, char *, int, Tcl_FreeProc **)' (aka 'char *(void *, struct Tk_Window_ *, char *, int, void (**)(char *))') [-Wincompatible-function-pointer-types]* > > static Tk_CustomOption drawOpt = { Cmd_OptionSet, Cmd_OptionGet, > > ``` > > I have not used table list. I am not a Tcl programmer. I am installing Tktable because an R program, affylmGUI requires it to run on a Mac. The program has worked very with previous versions of R and Mac OS, bit is running into trouble here. > > I would appreciate any further suggestions. > > Thanks and best wishes, > > Rich > > *From: *Obermeier-Tcl3D <obe...@tc...> <mailto:obe...@tc...> > *Date: *Tuesday, September 10, 2024 at 7:22 PM > *To: *tc...@li... <tc...@li...> <mailto:tc...@li...> > *Subject: *[EXTERNAL] Re: [MACTCL] Problem compiling TkTable on Mac OS 14.6.1 Sonoma > > > > > You don't often get email from obe...@tc.... Learn why this is important <https://aka.ms/LearnAboutSenderIdentification> > > > > Dear Richard, > > please try my Tktable 2.11 version, which can be found at https://www.tcl3d.org/bawt/download.html#packages > It is a slightly modified (Mac related) version of Tktable as supplied at https://chiselapp.com/user/pooryorick/repository/tktable/ > Please note, that Tktable is not supported or developed anymore. > > Do you know package tablelist (https://wiki.tcl-lang.org/page/tablelist)? > I switched all previous usages of Tktable to tablelist. > > Regards, > Paul > > Am 10.09.2024 um 21:48 schrieb Friedman, Richard A.: > > Dear List, > > I need TkTable working to run the R program, affylmGUI. > > I am trying to compile it under Mac OS 14.16.1. > > I have Tcl8.6.14 installed in /usr/local/bin/ . > > I installed Tcl8.6.14 with homebrew. > > Here is my attempt at compiling Tktable > > ``` > > $ pwd > > /usr/local/lib/Tktable2.10 > > $ sudo make > > gcc -DPACKAGE_NAME=\"Tktable\" -DPACKAGE_TARNAME=\"tktable\" -DPACKAGE_VERSION=\"2.10\" -DPACKAGE_STRING=\"Tktable\ 2.10\" -DPACKAGE_BUGREPORT=\"\" -DMAC_OSX_TK=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DNO_VALUES_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -DTCL_WIDE_INT_IS_LONG=1 -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 -DTBL_COMMAND=\"table\" -DTBL_RUNTIME=\"tkTable.tcl\" -DTBL_RUNTIME_DIR=\"/usr/local/Cellar/tcl-tk/8.6.14/lib/Tktable2.10\" -I. -I"./generic" -I"/usr/local/Cellar/tcl-tk/8.6.14/include/tcl-tk" -I"/usr/local/Cellar/tcl-tk/8.6.14/include/tcl-tk" -pipe -Os -Wall -Wno-implicit-int -fno-common -c `echo ./generic/tkTable.c` -o tkTable.o > > ./generic/tkTable.c:164:52: error: incompatible function pointer types initializing 'Tk_OptionPrintProc *' (aka 'const char *(*)(void *, struct Tk_Window_ *, char *, int, void (**)(char *))') with an expression of type 'char *(ClientData, Tk_Window, char *, int, Tcl_FreeProc **)' (aka 'char *(void *, struct Tk_Window_ *, char *, int, void (**)(char *))') [-Wincompatible-function-pointer-types] > > static Tk_CustomOption drawOpt = { Cmd_OptionSet, Cmd_OptionGet, > > . > > . > > , > > $ sudo make install > > Password: > > gcc -DPACKAGE_NAME=\"Tktable\" -DPACKAGE_TARNAME=\"tktable\" -DPACKAGE_VERSION=\"2.10\" -DPACKAGE_STRING=\"Tktable\ 2.10\" -DPACKAGE_BUGREPORT=\"\" -DMAC_OSX_TK=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DNO_VALUES_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -DTCL_WIDE_INT_IS_LONG=1 -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 -DTBL_COMMAND=\"table\" -DTBL_RUNTIME=\"tkTable.tcl\" -DTBL_RUNTIME_DIR=\"/usr/local/Cellar/tcl-tk/8.6.14/lib/Tktable2.10\" -I. -I"./generic" -I"/usr/local/Cellar/tcl-tk/8.6.14/include/tcl-tk" -I"/usr/local/Cellar/tcl-tk/8.6.14/include/tcl-tk" -pipe -Os -Wall -Wno-implicit-int -fno-common -c `echo ./generic/tkTable.c` -o tkTable.o > > ./generic/tkTable.c:164:52: error: incompatible function pointer types initializing 'Tk_OptionPrintProc *' (aka 'const char *(*)(void *, struct Tk_Window_ *, char *, int, void (**)(char *))') with an expression of type 'char *(ClientData, Tk_Window, char *, int, Tcl_FreeProc **)' (aka 'char *(void *, struct Tk_Window_ *, char *, int, void (**)(char *))') [-Wincompatible-function-pointer-types] > > static Tk_CustomOption drawOpt = { Cmd_OptionSet, Cmd_OptionGet, > > . > > . > > . > > ``` > > Note the error message. > > I have been able to install TkTable in previous versions of Mac OS. > > Please advise. > > Thank you, > > Richard Friedman > > Bioinformatics Core > > Herbert Irving Comprehensive Cancer Center > > Columbia University Irving Medical Center > > > > _______________________________________________ > > Tcl-mac mailing list > > tc...@li... > > https://lists.sourceforge.net/lists/listinfo/tcl-mac > > > > > _______________________________________________ > > Tcl-mac mailing list > > tc...@li... > > https://lists.sourceforge.net/lists/listinfo/tcl-mac > > > > _______________________________________________ > Tcl-mac mailing list > tc...@li... > https://lists.sourceforge.net/lists/listinfo/tcl-mac |