-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation Error on MacOS: typedef redefinition of ClientData #355
Comments
I have not come across this one before. It is a throwback to the fact that magic was written by John Ousterhout, who went on to write Tcl/Tk, and magic and Tcl share a bunch of code as well as variable names. My first suggestion would be to just add |
I did add to CFLAGS I might also try and build magic without tcl/tk entirely, I will try that. But, i will also try to debug and fix it in free time (maybe create PR at some point, if i am fast enough). Thanks for insights on the matter ;) |
I don't think |
Maybe try with TCL 8.6+ instead of TCL9. By installing a version 8 of tk/tcl on MacOS.
This is a known matter recorded in #351 that the type was changed between TCL8 and TCL9 and maybe a GNU ./configure style configuration can resolve the type and the origin of the typedef for magic. Maybe once #351 is closed then TCL9 can be expected to work. Until then maybe we can say it is not yet supported. TCL9 has only recently been released (in past few months) and only has a new major edition every 10+ years, major version changes such as this are not expected to work as-is. |
It indeed worked! I used pre-built tcl-tk@8 package from homebrew, passed it to configure script with proper options and it built! It might be worth noting that in INSTALL_MacOS.md and changer Now i have to understand why was there a segfault when starting the program, but i have to make some script-magic to add tcl-tk@8/bin to path for magic without breaking my system ;) Thank you, the build issue is resolved! |
Hi and happy new year,
I am trying to build magic from source on MacOS, following steps from INSTALL_MacOS.md, trying my own small tweaks and nothing seems to work. I did not have the time to resolve this, but either there is something missing with preprocessor definitions or name conflicts, or something entirely else.
It is the only error generated for me as of now, i have every prerequisite installed and properly recognized.
Error text:
The text was updated successfully, but these errors were encountered: