Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 928850 - x11-misc/stalonetray-0.8.5 has implicit function declarations in configure logs
Summary: x11-misc/stalonetray-0.8.5 has implicit function declarations in configure logs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Jaco Kroon
URL:
Whiteboard: false positive
Keywords:
Depends on:
Blocks: implicit-in-configure
  Show dependency tree
 
Reported: 2024-04-06 20:21 UTC by Agostino Sarubbo
Modified: 2024-11-04 01:07 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,50.90 KB, text/plain)
2024-04-06 20:21 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-04-06 20:21:53 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: x11-misc/stalonetray-0.8.5 has implicit function declarations in configure logs.
Discovered on: amd64 (internal ref: tinderbox_musl)
System: MUSL-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#MUSL)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#QA0072
Comment 1 Agostino Sarubbo gentoo-dev 2024-04-06 20:21:54 UTC
Created attachment 889645 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2024-04-06 20:21:55 UTC
Found the following implicit function declarations in configure logs:

config.log:348 - printstack
Comment 3 Eli Schwartz gentoo-dev 2024-05-21 05:09:07 UTC
Exclusive to systems without execinfo.h

AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <execinfo.h>
             #include <sys/types.h>
            ]], [[void *array[10];
             size_t size;
             size = backtrace(array, 10);
             backtrace_symbols_fd(array, size, 0);
            ]])],[ac_cv_var_backtrace=yes],[ac_cv_var_backtrace=no])

if test x$ac_cv_var_backtrace = xyes; then
    AC_DEFINE(HAVE_BACKTRACE, 1, [System has usable backtrace implementation.])
else
    AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <ucontext.h>]], [[printstack(0);]])],[ac_cv_var_printstack=yes],[ac_cv_var_printstack=no])
    if test x$ac_cv_var_printstack = xyes; then
        AC_DEFINE(HAVE_PRINTSTACK, 1, [System has usable printstack implementation.])
    fi
fi



It appears to be intended solely for Solaris support.
Comment 4 Larry the Git Cow gentoo-dev 2024-05-21 10:44:24 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b2c2f030d327789d1a6dbe6cd7468a0dac98be2

commit 4b2c2f030d327789d1a6dbe6cd7468a0dac98be2
Author:     Eli Schwartz <eschwartz93@gmail.com>
AuthorDate: 2024-05-21 05:16:53 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-05-21 10:43:39 +0000

    x11-misc/stalonetray: squelch FP for implicit decl in configure
    
    It only appears on musl since it is a fallback for execinfo. The check
    always fails, but is expectd to since this isn't solaris.
    
    Closes: https://bugs.gentoo.org/928850
    Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 x11-misc/stalonetray/stalonetray-0.8.4.ebuild | 8 +++++++-
 x11-misc/stalonetray/stalonetray-0.8.5.ebuild | 8 +++++++-
 2 files changed, 14 insertions(+), 2 deletions(-)