bugGNU Screen - Bugs: bug #59465, GNU Screen fails to build on macOS...


bug #59465: GNU Screen fails to build on macOS with Xcode 12

Submitter:  Issy <issyl0>
Submitted:  Sat 14 Nov 2020 11:58:42 PM UTC
Category:  Build/Install Severity:  3 - Normal
Priority:  * 5 - Normal Status:  Ready For Test
Privacy:  Public Assigned to:  None
Open/Closed:  Open Release:  4.8.0
Fixed Release:  None Planned Release:  4.9.1
Work Required:  None
* Mandatory Fields

Add a New Comment Rich Markup

Wed 26 Jul 2023 12:29:46 PM UTC, comment #5: 

Hello Carlo,

can you test the screen-v4 branch? I think it should be fixed (I applied some patches already).

Alexander Naumov <anaumov>
Group administrator
Wed 26 Jul 2023 04:29:44 AM UTC, comment #4: 

Apologies for missing your reply.

To clarify: the patches I linked to fix the build problem. You do not need to run macOS to test them. The failure should be reproducible with a recent version of Clang, or by setting `-Werror=implicit-function-d├ęclaration`.

Carlo Cabrera <carlocab>
Wed 02 Feb 2022 04:09:50 PM UTC, comment #3: 

Hi Carlo,

just to be clear.
So, you have patches, right? And you can't build GNU Screen anyway? So, these patches do not fix the build problem?

Or it works well and you just want to have it in upstream?

Alexander Naumov <anaumov>
Group administrator
Fri 28 Jan 2022 05:29:49 PM UTC, comment #2: 
Carlo Cabrera <carlocab>
Tue 18 Jan 2022 09:26:21 PM UTC, comment #1: 


unfortunately, I don't have macOS and can't test/build screen sources there.
Can you provide a patch that fix this build problem?


Alexander Naumov <anaumov>
Group administrator
Sat 14 Nov 2020 11:58:42 PM UTC, original submission:  


I'm a maintainer of Homebrew (a macOS package manager) and we're trying to build packages on the newly released macOS 11.0 and its counterpart Xcode 12 release. GNU Screen v4.8.0 fails to build:

configure: checking select with  -lnet -lnsl...
configure: error: !!! no select - no screen

and later

configure: error: !!! no tgetent - no screen

Upon investigation, it seems like it fails because Clang 12 requires functions to be defined before use.

There exist some patches elsewhere that fix this by `include`ing the right headers, for example, this set from MacPorts: https://github.com/macports/macports-ports/commit/38df2ef467d4bcce657e8b8d36735c1fc9bb64eb.



Issy <issyl0>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by carlocab (Posted a comment)
  • -email is unavailable- added by anaumov (Posted a comment)
  • -email is unavailable- added by issyl0 (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-07-25 anaumov StatusNeed Info Ready For Test
        Planned ReleaseNone 4.9.1
    2022-01-18 anaumov StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-b921.
    Corresponding source code