Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 898232 - dev-libs/glib-2.76.3 has implicit function declarations in configure logs
Summary: dev-libs/glib-2.76.3 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: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard: false positive
Keywords:
Depends on: 905355
Blocks: implicit-in-configure
  Show dependency tree
 
Reported: 2023-02-28 08:56 UTC by Agostino Sarubbo
Modified: 2024-11-02 23:05 UTC (History)
0 users

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


Attachments
build.log (build.log,688.20 KB, text/plain)
2023-02-28 08:56 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 2023-02-28 08:56:45 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-libs/glib-2.74.6 has implicit function declarations in configure logs.
Discovered on: amd64 (internal ref: hardened_tinderbox)

NOTE:
(HARDENED-SYSTEM) in the summary means that the bug was found on a machine that runs an hardened profile with -D_FORTIFY_SOURCE=3 and -D_GLIBCXX_ASSERTIONS (https://www.gentoo.org/support/news-items/2023-01-01-hardening-fortify-assertions.html) but this bug MAY or MAY NOT BE related to the changes related to hardened.
Comment 1 Agostino Sarubbo gentoo-dev 2023-02-28 08:56:48 UTC
Created attachment 855054 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2023-03-11 17:03:59 UTC
ci has reproduced this issue with version 2.76.0 - Updating summary.
Comment 3 Agostino Sarubbo gentoo-dev 2023-03-17 08:00:31 UTC
ci has reproduced this issue with version 2.76.0-r1 - Updating summary.
Comment 4 Agostino Sarubbo gentoo-dev 2023-03-22 15:49:21 UTC
ci has reproduced this issue with version 2.76.1 - Updating summary.
Comment 5 Agostino Sarubbo gentoo-dev 2023-04-22 09:00:03 UTC
ci has reproduced this issue with version 2.76.2 - Updating summary.
Comment 6 Matt Turner gentoo-dev 2023-05-09 20:59:23 UTC
>  *   /var/tmp/portage/dev-libs/glib-2.74.6/work/glib-2.74.6-abi_x86_64.amd64/meson-logs/meson-log.txt:7277 - __sync_swap
>  *   /var/tmp/portage/dev-libs/glib-2.74.6/work/glib-2.74.6-abi_x86_64.amd64/meson-logs/meson-log.txt:8281 - res_ndestroy

I cannot reproduce the problem with __sync_swap, and even if I could I don't know what to do about it. This is a compiler-provided magic function. It doesn't have a prototype, AFAIK.

I can reproduce the problem with res_ndestroy. I think this function doesn't exist on Linux? The commit that added it (https://gitlab.gnome.org/GNOME/glib/-/commit/40be86bb0e422247673ccc36fc3c493c882b4390) says:

> There’s a slight complication in the fact that OS X requires the state
> to be freed using res_ndestroy() rather than res_nclose(). Linux uses
> res_nclose().

so I think this is expected.
Comment 7 Larry the Git Cow gentoo-dev 2023-05-11 01:24:47 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/portage.git/commit/?id=a478b4c427cfc51188ec9273952ad498de95a39f

commit a478b4c427cfc51188ec9273952ad498de95a39f
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2023-05-10 01:35:54 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-05-11 01:24:41 +0000

    install-qa-check.d/90config-impl-decl: Skip res_ndestroy on Linux
    
    Seen in dev-libs/glib. It seems that at least Darwin, FreeBSD, OpenBSD,
    NetBSD, and Solaris have this function.
    
    Bug: https://bugs.gentoo.org/898232
    Signed-off-by: Matt Turner <mattst88@gentoo.org>
    Signed-off-by: Sam James <sam@gentoo.org>

 bin/install-qa-check.d/90config-impl-decl | 5 +++++
 1 file changed, 5 insertions(+)

https://gitweb.gentoo.org/proj/portage.git/commit/?id=e34b593e10a86ffc61d54f113729b3fb556b46c0

commit e34b593e10a86ffc61d54f113729b3fb556b46c0
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2023-05-10 01:28:12 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-05-11 01:24:41 +0000

    install-qa-check.d/90config-impl-decl: Skip compiler built-ins
    
    Bug: https://bugs.gentoo.org/879687
    Bug: https://bugs.gentoo.org/898232
    Signed-off-by: Matt Turner <mattst88@gentoo.org>
    Signed-off-by: Sam James <sam@gentoo.org>

 bin/install-qa-check.d/90config-impl-decl | 13 +++++++++++++
 1 file changed, 13 insertions(+)
Comment 8 Agostino Sarubbo gentoo-dev 2023-05-24 06:52:58 UTC
ci has reproduced this issue with version 2.76.3 - Updating summary.
Comment 9 Larry the Git Cow gentoo-dev 2023-06-01 01:23:51 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08be91eebdbff0de0e033efe30c633219a9859ca

commit 08be91eebdbff0de0e033efe30c633219a9859ca
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-06-01 01:22:47 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-06-01 01:23:18 +0000

    sys-apps/portage: add 3.0.48
    
    Closes: https://bugs.gentoo.org/722270
    Closes: https://bugs.gentoo.org/879687
    Closes: https://bugs.gentoo.org/898232
    Closes: https://bugs.gentoo.org/898366
    Closes: https://bugs.gentoo.org/905355
    Closes: https://bugs.gentoo.org/905358
    Closes: https://bugs.gentoo.org/905868
    Closes: https://bugs.gentoo.org/906129
    Closes: https://bugs.gentoo.org/906156
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-apps/portage/Manifest              |   1 +
 sys-apps/portage/portage-3.0.48.ebuild | 296 +++++++++++++++++++++++++++++++++
 2 files changed, 297 insertions(+)