From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Kevin_Sj=C3=B6berg?= Content-Type: multipart/alternative; boundary="Apple-Mail=_9E4F55F4-D196-4A35-A091-F8F11B637051" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.100.31\)) Subject: macOS compilation error Message-Id: References: <076CE615-D291-4CCD-81A4-4AE6749D46AB@kevinsjoberg.com> To: list+catgirl@causal.agency Date: Wed, 17 Aug 2022 15:37:26 +0200 --Apple-Mail=_9E4F55F4-D196-4A35-A091-F8F11B637051 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > Begin forwarded message: >=20 > From: Kevin Sj=C3=B6berg > Subject: macOS compilation error > Date: 17 August 2022 at 15:30:31 CEST > To: list@causal.agency >=20 > I just tried to build the latest version (commit = c273621244156b351468e3c928387166b24f5ff4) of catgirl on macOS but the = compilation failed. Unfortunately, I was greeted with the following = error. >=20 > ui.c:160:7: error: implicit declaration of function 'tiparm' is = invalid in C99 [-Werror,-Wimplicit-function-declaration] > putp(tiparm(to_status_line, 0)); > ^ > ui.c:160:7: note: did you mean 'tparm'? > = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Devel= oper/SDKs/MacOSX.sdk/usr/include/curses.h:802:31: note: 'tparm' declared = here > extern NCURSES_EXPORT(char *) tparm (NCURSES_CONST char *, ...); = /* special */ > ^ > ui.c:160:7: warning: incompatible integer to pointer conversion = passing 'int' to parameter of type 'const char *' [-Wint-conversion] > putp(tiparm(to_status_line, 0)); > ^~~~~~~~~~~~~~~~~~~~~~~~~ > = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Devel= oper/SDKs/MacOSX.sdk/usr/include/curses.h:799:46: note: passing argument = to parameter here > extern NCURSES_EXPORT(int) putp (const char *); = /* implemented */ > ^ > 1 warning and 1 error generated. >=20 > This is running macOS 12.4 using Apple clang version 13.1.6. I've = managed to compile catgirl in the past, so I assume this is a regression = introduced in 563ac9e. Looking at the curs_terminfo man page, it looks = like only tparm is present and the newer form is not. >=20 > Thanks, > Kevin --Apple-Mail=_9E4F55F4-D196-4A35-A091-F8F11B637051 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

Begin forwarded message:

From: = Kevin Sj=C3=B6berg <mail@kevinsjoberg.com>
Subject: = macOS compilation = error
Date: = 17 August 2022 at 15:30:31 = CEST

I just tried to build = the latest version (commit c273621244156b351468e3c928387166b24f5ff4) of = catgirl on macOS but the compilation failed. Unfortunately, I was = greeted with the following error.

ui.c:160:7: = error: implicit declaration of function 'tiparm' is invalid in C99 = [-Werror,-Wimplicit-function-declaration]
        putp(tiparm(to_status_line, = 0));
      =        ^
ui.c:160:7: note: did you mean 'tparm'?
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.pla= tform/Developer/SDKs/MacOSX.sdk/usr/include/curses.h:802:31: note: = 'tparm' declared here
extern = NCURSES_EXPORT(char *) tparm (NCURSES_CONST char *, ...);     =    /* special */
                =               ^
ui.c:160:7: warning: incompatible integer to = pointer conversion passing 'int' to parameter of type 'const char *' = [-Wint-conversion]
  =       putp(tiparm(to_status_line, 0));
            =  ^~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.pla= tform/Developer/SDKs/MacOSX.sdk/usr/include/curses.h:799:46: note: = passing argument to parameter here
extern NCURSES_EXPORT(int) putp (const char *);     =                     /* = implemented */
    =                     =                     =  ^
1 warning and 1 error = generated.

This is running macOS 12.4 = using Apple clang version 13.1.6. I've managed to compile catgirl = in the past, so I assume this is a regression introduced in 563ac9e. = Looking at the curs_terminfo man page, it looks like = only tparm is present and the newer form is not.

Thanks,
Kevin

= --Apple-Mail=_9E4F55F4-D196-4A35-A091-F8F11B637051--