Closed pmassey closed 3 years ago
I don't see this sind probably my xcode is older (does anyone know how to update? I am not an expert here).
The relevant error is
gterm.c:2971:6: error: implicit declaration of function 'createPixmap' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
createPixmap (obm, s_pixmap, nx, ny, 8, pixmap, NULL, 0, 0);
^
The problem here is that x11iraf is quite old code, and there are still many places (I counted ~250) that have implicit function declarations. It will take some time to fix them.
For the now, you could try to work around this with setting -Wno-implicit-function-generation
:
CFLAGS=-Wno-implicit-function-declaration make
Could you report back whether this worked for you?
Hi Ole,
Thanks for your help! Yes, that worked fine; I was able to do the make. BTW, I’m running xcode 11.3.1.
One thing I’ll note: after I invoke xgterm it comes up with a warning message in the xgterm window saying
Warning: no access to tty (Undefined error: 0). Thus no job control in this shell.
Not sure if this will prove to be a problem or not!
Best regards, Phil
On Nov 28, 2020, at 05:56, Ole Streicher notifications@github.com wrote:
I don't see this sind probably my xcode is older (does anyone know how to update? I am not an expert here).
The relevant error is
gterm.c:2971:6: error: implicit declaration of function 'createPixmap' is invalid in C99 [-Werror,-Wimplicit-function-declaration] createPixmap (obm, s_pixmap, nx, ny, 8, pixmap, NULL, 0, 0); ^ The problem here is that x11iraf is quite old code, and there are still many places (I counted ~250) that have implicit function declarations. It will take some time to fix them. For the now, you could try to work around this with setting -Wno-implicit-function-generation:
CFLAGS=-Wno-implicit-function-declaration make Could you report back whether this worked for you?
— 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/33#issuecomment-735228112, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABHBFZVQ3PUYDACEEZ6TJVLSSDXRPANCNFSM4UFK5DUQ.
One thing I’ll note: after I invoke xgterm it comes up with a warning message in the xgterm window saying
Warning: no access to tty (Undefined error: 0). Thus no job control in this shell.
This should not affect IRAF itself, but it prevents from using job control in the shell (Ctrl-Z, Ctrl-C and such). I will look into this.
When I go to do a "make" in the irafx11-2.0-2020.06.15 subdirectory, it ends with an error:
Note that I do have the latest Xcode installed:
I'd appreciate any advice you can give me.
Thanks! --Phil Massey