bugGNU Screen - Bugs: bug #66971, Build fails with GCC15

 
 

bug #66971: Build fails with GCC15

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 Release:  4.9.1
Fixed Release:  None Planned Release:  None
Work Required:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 01 Apr 2025 09:31:30 AM UTC, original submission:  

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]       |              ^~~~~~

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

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.

 

No changes have been made to this item

Back to the top

Powered by Savane 3.15-64aa.
Corresponding source code