When try to install the Joe editor with "sudo port install joe" the compilation fails with "error: implicit declaration of function 'login_tty' is invalid in C99 " as the last error. The following are the relevant lines out of the build log:
:info:build tty.c:975:6: error: implicit declaration of function 'openpty' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
:info:build if (openpty(ptyfd, ttyfd, name, NULL, NULL) == 0) {
:info:build ^
:info:build tty.c:975:6: note: did you mean 'openat'?
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk/usr/include/sys/fcntl.h:556:9: note: 'openat' declared here
:info:build int openat(int, const char *, int, ...) __DARWIN_NOCANCEL(openat) __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0);
:info:build ^
:info:build tty.c:1221:6: error: implicit declaration of function 'login_tty' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
:info:build login_tty(1);
:info:build ^
:info:build 2 errors generated.
:info:build make[3]: *** [tty.o] Error 1
:info:build make[3]: *** Waiting for unfinished jobs....
I can also send the whole build log if needed.
So long
-Ralf
Summary:
Joe editor compile fails with: "error: implicit declaration of function 'login_tty' is invalid in C99 " →
joe @4.6: error: implicit declaration of function 'login_tty' is invalid in C99