From: Friedman, R. A. <ra...@cu...> - 2024-09-13 02:12:18
|
Dear Paul, Thank you for the 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...<mailto: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...<mailto: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...<mailto:tc...@li...> https://lists.sourceforge.net/lists/listinfo/tcl-mac _______________________________________________ Tcl-mac mailing list tc...@li...<mailto:tc...@li...> https://lists.sourceforge.net/lists/listinfo/tcl-mac |