Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 870706 - media-libs/volpack-1.0_p7-r1 - makevolume.c: error: call to undeclared function open; ISO C99 and later
Summary: media-libs/volpack-1.0_p7-r1 - makevolume.c: error: call to undeclared functi...
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: https://sourceforge.net/p/amide/mailm...
Whiteboard:
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-09-17 13:54 UTC by Toralf Förster
Modified: 2022-12-05 03:55 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,18.07 KB, text/plain)
2022-09-17 13:54 UTC, Toralf Förster
Details
clang.tar.bz2 (clang.tar.bz2,8.88 KB, application/x-bzip)
2022-09-17 13:54 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,148.49 KB, text/plain)
2022-09-17 13:54 UTC, Toralf Förster
Details
environment (environment,26.69 KB, text/plain)
2022-09-17 13:54 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,8.17 KB, application/x-bzip)
2022-09-17 13:54 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,7.64 KB, application/x-bzip)
2022-09-17 13:54 UTC, Toralf Förster
Details
media-libs:volpack-1.0_p7-r1:20220917-114700.log (media-libs:volpack-1.0_p7-r1:20220917-114700.log,98.98 KB, text/plain)
2022-09-17 13:54 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,24.65 KB, application/x-bzip)
2022-09-17 13:54 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-09-17 13:54:32 UTC
      prototype in C2x, conflicting with a previous declaration
      [-Wdeprecated-non-prototype]
    void *malloc();
          ^
makevolume.c:80:23: error: call to undeclared function 'open'; 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-j4-20220915-203738

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

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

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
  [1]   php8.1 *
GNU Make 4.3.90

  HEAD of ::gentoo
commit 2be4f11d1103e9d0fe6cdcf770492a7d6c7ab1e5
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Sep 17 11:01:50 2022 +0000

    2022-09-17 11:01:49 UTC

emerge -qpvO media-libs/volpack
[ebuild  N    ] media-libs/volpack-1.0_p7-r1  USE="-doc -examples -static-libs"
Comment 1 Toralf Förster gentoo-dev 2022-09-17 13:54:33 UTC
Created attachment 807244 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-09-17 13:54:34 UTC
Created attachment 807247 [details]
clang.tar.bz2
Comment 3 Toralf Förster gentoo-dev 2022-09-17 13:54:35 UTC
Created attachment 807250 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-09-17 13:54:37 UTC
Created attachment 807253 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-09-17 13:54:38 UTC
Created attachment 807256 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-09-17 13:54:39 UTC
Created attachment 807259 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-09-17 13:54:40 UTC
Created attachment 807262 [details]
media-libs:volpack-1.0_p7-r1:20220917-114700.log
Comment 8 Toralf Förster gentoo-dev 2022-09-17 13:54:42 UTC
Created attachment 807265 [details]
temp.tar.bz2
Comment 9 Larry the Git Cow gentoo-dev 2022-09-29 05:31:09 UTC
The bug has been closed via the following commit(s):

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

commit 7943e2bcc08484d66e982da0c73792b766cc5c95
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2022-09-29 05:18:02 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2022-09-29 05:28:24 +0000

    media-libs/volpack: fix build with clang16 by not building examples
    
    These were installed (full with .libs/* and .o files) in /usr/share,
    /and/ also failed with clang16.
    
    Unfortunately by not fixing the sources they will continue to be
    poor examples for all.
    
    Closes: https://bugs.gentoo.org/870706
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 .../volpack/files/volpack-1.0_p7-skip-examples.patch     | 16 ++++++++++++++++
 media-libs/volpack/volpack-1.0_p7-r2.ebuild              |  4 ++++
 2 files changed, 20 insertions(+)
Comment 10 Larry the Git Cow gentoo-dev 2022-10-11 03:17:43 UTC
The bug has been referenced in the following commit(s):

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

commit bcfdddb51006ad429082201cb2436ab684a544dd
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2022-10-11 02:57:01 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2022-10-11 03:17:19 +0000

    media-libs/volpack: further fix w/ upcoming clang16 + -std=gnu89
    
    Forgot the patch for the missing int last time and
    only fixed examples.
    
    Bug: https://bugs.gentoo.org/870706
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 media-libs/volpack/files/volpack-1.0_p7-clang16.patch       | 8 ++++++++
 media-libs/volpack/files/volpack-1.0_p7-skip-examples.patch | 4 ++--
 media-libs/volpack/volpack-1.0_p7-r2.ebuild                 | 9 +++++++++
 3 files changed, 19 insertions(+), 2 deletions(-)
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-05 03:55:39 UTC
There's https://sourceforge.net/p/amide/mailman/message/37743362/ now to fix up the examples but from the sounds of it, not really sure it's worth applying.