URL: <https://savannah.gnu.org/bugs/?66971>
Summary: Build fails with GCC15 Group: GNU Screen Submitter: None Submitted: Tue 01 Apr 2025 09:31:30 AM UTC Category: Build/Install Severity: 3 - Normal Priority: 5 - Normal Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Release: 4.9.1 Fixed Release: None Planned Release: None Work Required: None _______________________________________________________ Follow-up Comments: ------------------------------------------------------- Date: Tue 01 Apr 2025 09:31:30 AM UTC By: Anonymous Build fails with GCC15. Error log: [ 21s] gcc -c -I. -I. -DETCSCREENRC='"/etc/screenrc"' -DSCREENENCODINGS='"/usr/share/screen/utf8encodings"' -DHAVE_CONFIG_H -DGIT_REV=\"\" \ [ 21s] -DMAXWIN=1000 -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -D_GNU_SOURCE socket.c [ 21s] socket.c:92:14: error: conflicting types for ‘getenv’; have ‘char *(void)’ [ 21s] 92 | extern char *getenv(); [ 21s] | ^~~~~~ [ 21s] In file included from os.h:66, [ 21s] from screen.h:30, [ 21s] from socket.c:46: [ 21s] /usr/include/stdlib.h:773:14: note: previous declaration of ‘getenv’ with type ‘char *(const char *)’ [ 21s] 773 | extern char *getenv (const char *__name) __THROW __nonnull ((1)) __wur; [ 21s] | ^~~~~~ _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?66971> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
signature.asc
Description: PGP signature