iraf-community / x11iraf

X11/GUI utilities and applications for IRAF (xgterm, ximtool, xtapemon)
https://iraf-community.github.io/x11iraf
21 stars 8 forks source link

Build fails on x86_64 #37

Closed marcusthomas11 closed 3 years ago

marcusthomas11 commented 3 years ago

I am attempting to build the latest beta on macOS 11.1, which is x64 only. X11 libraries on this OS are installed to /opt/X11/ rather than /usr/X11, where the makefiles look for them, so I changed the makefiles to search for X11 in /opt/, and they were found.

Though, I'm met with the following now when I try compile:

image

Could this be from meddling with the X11 locations in the makefiles?

I was able to compile and use this beta on another machine running 11.1, but am hitting a wall on this one.

Thank you

olebole commented 3 years ago

This looks like you have somewhere an old version of Tcl in your search path.

olebole commented 3 years ago

Can this one be closed? Did you find the cause of the wong Tcl version?

marcusthomas11 commented 3 years ago

I had something come up and had to stop testing— but I was not able to find the issue.

I could not find where to point the compiler to a different installation of tcl.

On Sun, Jan 17, 2021 at 4:30 AM Ole Streicher notifications@github.com wrote:

Can this one be closed? Did you find the cause of the wong Tcl version?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/iraf-community/x11iraf/issues/37#issuecomment-761767794, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASNZJH5OLRHL76PZKBDGO73S2K32RANCNFSM4V75LJYQ .

olebole commented 3 years ago

I must say that I do not fully understand this. On macOS, the version used is 8.5.9; and then these two functions are implemented locally: https://github.com/iraf-community/x11iraf/blob/77ff4029188eacf43b85e65331ff9724665d2283/obm/Obm.c#L101-L120

which means that they are actually defined. So, the only reason I could imagine is that another tcl.h include file was used (from an Tcl 8.6), but it is linked to the original tcl 8.5. This is where you start to debug (I can't do more here). One place to look would be the X11 include path that you just added (which is non-standard on macOS).

Since you mention that this was a beta release of macOS: maybe you upgrade to the final version? Beta versions tend to have problems.

marcusthomas11 commented 3 years ago

You were correct. It was pointing to Tcl 8.6 rather than 8.5.x. Thank you.