Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 953896 - app-misc/screen-4.9.1-r1 error: implicit declaration of function ‘openpty’; did you mean ‘OpenPTY’
Summary: app-misc/screen-4.9.1-r1 error: implicit declaration of function ‘openpty’; d...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sven Wegener
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-15 21:51 UTC by Sungjoon Moon
Modified: 2025-04-16 20:31 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log of screen (build.log,24.42 KB, text/x-log)
2025-04-15 21:51 UTC, Sungjoon Moon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sungjoon Moon 2025-04-15 21:51:26 UTC
Created attachment 924943 [details]
build.log of screen

Tested on aarch64 host with riscv64gc crossdev, with GCC15

pty.c: In function ‘OpenPTY’:
pty.c:338:7: error: implicit declaration of function ‘openpty’; did you mean ‘OpenPTY’? [-Wimplicit-function-declaration]
  338 |   if (openpty(&f, &s, TtyName, NULL, NULL) != 0)
      |       ^~~~~~~
      |       OpenPTY

It can be fixed with including pty.h

Ref:
https://lists.buildroot.org/pipermail/buildroot/2024-August/760074.html
https://patchwork.ozlabs.org/project/buildroot/patch/ZrWionLijDXHPUjW@waldemar-brodkorb.de/#3360344
Comment 1 Sungjoon Moon 2025-04-15 22:08:02 UTC
This bug is fixed on 5.0.0