Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#61627 closed defect (fixed)

joe @4.6: error: implicit declaration of function 'login_tty' is invalid in C99

Reported by: fl1ger (Ralf Weber) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: bigsur catalina Cc:
Port: joe

Description

Moin!

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

Attachments (1)

main.log (56.9 KB) - added by fl1ger (Ralf Weber) 3 years ago.
Full ports log file for Joe build

Download all attachments as: .zip

Change History (4)

Changed 3 years ago by fl1ger (Ralf Weber)

Attachment: main.log added

Full ports log file for Joe build

comment:1 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: bigsur catalina added
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

comment:2 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to ryandesign
Resolution: fixed
Status: newclosed

In 4d2c701809a3f9cfce11061571074a66ee3180c5/macports-ports (master):

joe: Fix implicit declaration of functions

Closes: #61627

comment:3 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Note: See TracTickets for help on using tickets.