Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 944760 - app-text/pep-2.8-r2 fails to compile: plain.c:115:7: error: conflicting types for getenv; have char (void)
Summary: app-text/pep-2.8-r2 fails to compile: plain.c:115:7: error: conflicting types...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: c23-porting
  Show dependency tree
 
Reported: 2024-11-23 17:55 UTC by Agostino Sarubbo
Modified: 2024-11-23 23:39 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,49.34 KB, text/plain)
2024-11-23 17:55 UTC, Agostino Sarubbo
Details
remove unneeded getenv declaration (getenv.patch,391 bytes, patch)
2024-11-23 21:45 UTC, Chase Phelps
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-11-23 17:55:15 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-text/pep-2.8-r2 fails to compile.
Discovered on: amd64 (internal ref: gcc15_tinderbox)
System: GCC-15-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#GCC-15)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Comment 1 Agostino Sarubbo gentoo-dev 2024-11-23 17:55:16 UTC
Created attachment 911685 [details]
build.log

build log and emerge --info
Comment 2 Chase Phelps 2024-11-23 21:45:18 UTC
Created attachment 911714 [details, diff]
remove unneeded getenv declaration

*Not tested with gcc 15*
I duplicated the issue with both gcc 13 with -std=gnu2x as well as clang 18 with -std=gnu23.
The source in question declares char* getenv() which is already defined in included headers.
Removing this declaration, it compiles with gcc 13 and clang 18 with and without the -std flags.