Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 851669 - sci-biology/mosaik-2.2.30 - ../.../SafeFunctions.h: error: localtime was not declared in this scope
Summary: sci-biology/mosaik-2.2.30 - ../.../SafeFunctions.h: error: localtime was not ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Science Biology related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-12
  Show dependency tree
 
Reported: 2022-06-13 07:15 UTC by Toralf Förster
Modified: 2022-06-13 12:10 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,19.15 KB, text/plain)
2022-06-13 07:16 UTC, Toralf Förster
Details
emerge-history.txt.bz2 (emerge-history.txt.bz2,66.17 KB, application/x-bzip)
2022-06-13 07:16 UTC, Toralf Förster
Details
environment (environment,77.44 KB, text/plain)
2022-06-13 07:16 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,29.92 KB, application/x-bzip)
2022-06-13 07:16 UTC, Toralf Förster
Details
sci-biology:mosaik-2.2.30:20220612-233153.log (sci-biology:mosaik-2.2.30:20220612-233153.log,72.50 KB, text/plain)
2022-06-13 07:16 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-06-13 07:15:59 UTC
                 from ../../CommonSource/DataStructures/Alignment.h:17,
                 from ConvertSswToAlignment.h:1,
                 from ConvertSswToAlignment.cpp:1:
../../CommonSource/Utilities/SafeFunctions.h: In function errno_t localtime_s(tm*, const time_t*)’:
../../CommonSource/Utilities/SafeFunctions.h:59:21: error: localtime’ was not declared in this scope; did you mean localtime_s’?
   59 |         memcpy(_tm, localtime(time), sizeof(*_tm));
      |                     ^~~~~~~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib_systemd-j4-20220609-050004

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.1.1 *
clang/llvm (if any):
clang version 14.0.5
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/14/bin
/usr/lib/llvm/14
14.0.5
Python 3.9.13
Available Rust versions:
  [1]   rust-1.61.0 *
The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:
  [1]   php8.1 *

  HEAD of ::gentoo
commit cff7f59b4f79005deaa20d1362c3923a8b8b874a
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Jun 12 23:03:02 2022 +0000

    2022-06-12 23:03:02 UTC

emerge -qpvO sci-biology/mosaik
[ebuild  N    ] sci-biology/mosaik-2.2.30
Comment 1 Toralf Förster gentoo-dev 2022-06-13 07:16:00 UTC
Created attachment 784544 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-06-13 07:16:02 UTC
Created attachment 784547 [details]
emerge-history.txt.bz2
Comment 3 Toralf Förster gentoo-dev 2022-06-13 07:16:03 UTC
Created attachment 784550 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-06-13 07:16:04 UTC
Created attachment 784553 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-06-13 07:16:06 UTC
Created attachment 784556 [details]
sci-biology:mosaik-2.2.30:20220612-233153.log
Comment 6 Larry the Git Cow gentoo-dev 2022-06-13 12:10:22 UTC
The bug has been closed via the following commit(s):

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

commit 3a8ddd083f460ba38a0950f1da70ff0ac2108bff
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-13 12:09:55 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-13 12:10:16 +0000

    sci-biology/mosaik: fix build with GCC 12
    
    Closes: https://bugs.gentoo.org/851669
    Signed-off-by: Sam James <sam@gentoo.org>

 sci-biology/mosaik/files/mosaik-2.2.30-gcc12-time.patch | 11 +++++++++++
 sci-biology/mosaik/mosaik-2.2.30.ebuild                 |  1 +
 2 files changed, 12 insertions(+)