Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 942519

Summary: dev-scheme/guile-2.2.7-r102 has implicit function declarations in configure logs
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Scheme Project <scheme>
Status: CONFIRMED ---    
Severity: normal CC: arsen, damiandudycz
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 906027, 941869    
Attachments: build.log
add-missing-stdlib.patch

Description Agostino Sarubbo gentoo-dev 2024-10-30 12:19:40 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-scheme/guile-2.2.7-r102 has implicit function declarations in configure logs.
Discovered on: amd64 (internal ref: ci)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#QA0072
Comment 1 Agostino Sarubbo gentoo-dev 2024-10-30 12:19:42 UTC
Created attachment 907325 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2024-10-30 12:19:43 UTC
Found the following implicit function declarations in configure logs:

config.log:3535 - exit
Comment 3 Damian Dudycz 2024-11-06 20:43:05 UTC
Created attachment 908038 [details, diff]
add-missing-stdlib.patch

Same thing happens on 2.2.7-r1 which is currently stable, so I prepared patch on 2.2.7-r1, but also tested it on 2.2.7-r102 (mentioned in bug report). Please review if that makes sense, but seems to be working.

Issue: implicit function declaration for exit function.
Reason: Missing header which contains exit function inside configure file.
Solution: Add #include <stdlib.h>.
Comment 4 Damian Dudycz 2024-11-06 20:44:18 UTC
Comment on attachment 908038 [details, diff]
add-missing-stdlib.patch

>--- a/configure
>+++ b/configure
>@@ -16586,6 +16586,7 @@
>   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
> /* end confdefs.h.  */
> 
>+#include <stdlib.h>
> #include <float.h>
> #include <math.h>
> extern