Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 874414 - sci-libs/hdf-4.2.15-r1 - buffer.c: error: call to undeclared function time; ISO C99 and later do
Summary: sci-libs/hdf-4.2.15-r1 - buffer.c: error: call to undeclared function time; I...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-10-03 07:55 UTC by Toralf Förster
Modified: 2024-04-08 05:24 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,17.79 KB, text/plain)
2022-10-03 07:55 UTC, Toralf Förster
Details
clang.tar.bz2 (clang.tar.bz2,2.44 KB, application/x-bzip)
2022-10-03 07:55 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,52.61 KB, text/plain)
2022-10-03 07:55 UTC, Toralf Förster
Details
environment (environment,100.34 KB, text/plain)
2022-10-03 07:55 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,10.14 KB, application/x-bzip)
2022-10-03 07:55 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,28.00 KB, application/x-bzip)
2022-10-03 07:55 UTC, Toralf Förster
Details
sci-libs:hdf-4.2.15-r1:20221002-225027.log (sci-libs:hdf-4.2.15-r1:20221002-225027.log,107.60 KB, text/plain)
2022-10-03 07:55 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,40.24 KB, application/x-bzip)
2022-10-03 07:56 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-10-03 07:55:51 UTC
                                 ~~                              ^~~~~~~
mkdir testdir
clang -DHAVE_CONFIG_H -I. -I../../hdf/src  -I../../hdf/src -I/usr/include/tirpc  -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -c -o buffer.o buffer.c
clang -DHAVE_CONFIG_H -I. -I../../hdf/src  -I../../hdf/src -I/usr/include/tirpc  -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -c -o fortest.o fortest.c
buffer.c:111:10: error: call to undeclared function 'time'; ISO C99 and later do
      not support implicit function declarations
      [-Werror,-Wimplicit-function-declaration]

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib-j4-20221002-135637

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.2.0 *
clang/llvm (if any):
clang version 15.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
/usr/lib/llvm/15
15.0.1
Python 3.10.7
Available Rust versions:
  [1]   rust-bin-1.64.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm
  [2]   openjdk-bin-17 

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
GNU Make 4.3

  HEAD of ::gentoo
commit e8e29df7377eeab512ce76c90af9d3b810edc07f
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Oct 2 21:17:02 2022 +0000

    2022-10-02 21:17:02 UTC

emerge -qpvO sci-libs/hdf
[ebuild  N    ] sci-libs/hdf-4.2.15-r1  USE="fortran szip -examples -static-libs -test"
Comment 1 Toralf Förster gentoo-dev 2022-10-03 07:55:52 UTC
Created attachment 816412 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-10-03 07:55:53 UTC
Created attachment 816415 [details]
clang.tar.bz2
Comment 3 Toralf Förster gentoo-dev 2022-10-03 07:55:54 UTC
Created attachment 816418 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-10-03 07:55:55 UTC
Created attachment 816421 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-10-03 07:55:56 UTC
Created attachment 816424 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-10-03 07:55:57 UTC
Created attachment 816427 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-10-03 07:55:59 UTC
Created attachment 816430 [details]
sci-libs:hdf-4.2.15-r1:20221002-225027.log
Comment 8 Toralf Förster gentoo-dev 2022-10-03 07:56:00 UTC
Created attachment 816433 [details]
temp.tar.bz2
Comment 9 Larry the Git Cow gentoo-dev 2024-04-08 05:24:06 UTC
The bug has been closed via the following commit(s):

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

commit ddbb1f2c1f53b2fc22b91f7a131e78e7e802335a
Author:     Eli Schwartz <eschwartz93@gmail.com>
AuthorDate: 2024-04-08 03:16:26 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-04-08 05:21:54 +0000

    sci-libs/hdf: big fat gobs of Modern C backporting
    
    Ideally I would like to solve this by updating to a new upstream
    release. Unfortunately, that has a combination of complications:
    - existing patches don't apply
    - upstream changed download site
    - upstream changed up the codebase quite a bit, and notes:
      - XDR is now minimalist internals, and renamed
      - lots of internal headers were dropped, which "may cause codebases to
        stop compiling, so we are bumping the minor version"
    
    It apparently constitutes a major version.
    
    Surprisingly, porting individual Modern C fixes from upstream is *less*
    work.
    
    This message was sponsored by Big Science. Much gratitude. <3
    
    Closes: https://bugs.gentoo.org/874414
    Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 sci-libs/hdf/files/hdf4-c99.patch                  | 371 +++++++++++++++++++++
 .../{hdf-4.2.15-r1.ebuild => hdf-4.2.15-r2.ebuild} |   5 +-
 2 files changed, 375 insertions(+), 1 deletion(-)