Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 723022 - dev-libs/log4cpp: fails tests with glibc-2.31 (error: ‘stime’ was not declared in this scope; did you mean ‘ctime’?)
Summary: dev-libs/log4cpp: fails tests with glibc-2.31 (error: ‘stime’ was not declare...
Status: RESOLVED FIXED
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: PullRequest
Depends on:
Blocks: glibc-2.31
  Show dependency tree
 
Reported: 2020-05-14 15:31 UTC by Agostino Sarubbo
Modified: 2020-07-11 17:34 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,131.68 KB, text/plain)
2020-05-14 15:31 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 2020-05-14 15:31:31 UTC
This is an auto-filled bug because dev-libs/log4cpp fails tests.
The issue was originally discovered on amd64, but it may be reproducible on other arches as well.
If you think that a different summary clarifies the issue better, feel free to change it.
Attached build log and emerge --info.

NOTE:
If you need further logs, feel free to ask..
Comment 1 Agostino Sarubbo gentoo-dev 2020-05-14 15:31:41 UTC
Created attachment 638988 [details]
build.log

build log and emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-05-14 15:38:10 UTC
/var/tmp/portage/dev-libs/log4cpp-1.1.3/work/log4cpp/tests/testDailyRollingFileAppender.cpp:235:7: error: ‘stime’ was not declared in this scope; did you mean ‘ctime’?
  235 |   if (stime(&now) == -1) {
      |       ^~~~~
      |       ctime

This is the key here. stime was removed in glibc 2.31. Should be a simple fix.

https://wiki.gentoo.org/wiki/Glibc_2.31_porting_notes/stime_removal
Comment 3 Larry the Git Cow gentoo-dev 2020-07-11 17:34:22 UTC
The bug has been closed via the following commit(s):

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

commit aed371a9e678b50b7a0998d1c7a91cae9c48aa32
Author:     Stephan Hartmann <stha09@googlemail.com>
AuthorDate: 2020-07-11 17:22:31 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2020-07-11 17:34:07 +0000

    dev-libs/log4cpp: fix test with glibc-2.31
    
    Closes: https://bugs.gentoo.org/723022
    Package-Manager: Portage-2.3.99, Repoman-2.3.23
    Signed-off-by: Stephan Hartmann <stha09@googlemail.com>
    Closes: https://github.com/gentoo/gentoo/pull/16667
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 .../log4cpp/files/log4cpp-1.1-glibc-2.31.patch     | 22 ++++++++++++++++++++++
 dev-libs/log4cpp/log4cpp-1.1.3.ebuild              |  3 ++-
 2 files changed, 24 insertions(+), 1 deletion(-)