Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 874084 - media-libs/portmidi-234-r2 - call to undeclared function find_default_device; ISO C99 and later do
Summary: media-libs/portmidi-234-r2 - call to undeclared function find_default_device;...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Professional Audio Applications Maintainers
URL:
Whiteboard:
Keywords:
: 882233 903878 (view as bug list)
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-10-02 14:48 UTC by Toralf Förster
Modified: 2023-04-29 05:55 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.30 KB, text/plain)
2022-10-02 14:48 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,111.08 KB, text/plain)
2022-10-02 14:48 UTC, Toralf Förster
Details
environment (environment,165.03 KB, text/plain)
2022-10-02 14:48 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,12.28 KB, application/x-bzip)
2022-10-02 14:48 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,4.03 KB, application/x-bzip)
2022-10-02 14:48 UTC, Toralf Förster
Details
media-libs:portmidi-234-r2:20221002-142335.log (media-libs:portmidi-234-r2:20221002-142335.log,16.99 KB, text/plain)
2022-10-02 14:48 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-02 14:48:14 UTC
too long lines were shrinked:

8 warnings generated.
[ 28%] Building C object pm_dylib/CMakeFiles/portmidi-dynamic.dir/__/pm_linux/pmlinux.c.o
cd /var/tmp/portage/media-libs/portmidi-234-r2/work/portmedia-code-r234/portmidi/trunk_build/pm_dylib && /var/tmp/portage/media-libs/portmidi-234-r2/temp/clang -Dportmidi_dynamic_EXPORTS -I/var/tmp/portage/media-libs/portmidi-234-r2/work/portmedia-code-r234/portmidi/trunk/pm_common -I/var/tmp/portag
/var/tmp/portage/media-libs/portmidi-234-r2/work/portmedia-code-r234/portmidi/trunk/pm_linux/pmlinux.c:45:34: error: 
      call to undeclared function 'find_default_device'; 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_desktop_gnome_systemd-j4-20221001-224558

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

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 Ruby profiles:
  [1]   ruby27 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.64.0 *
GENTOO_VM=  CLASSPATH="" JAVA_HOME="/etc/java-config-2/current-system-vm"
JAVACFLAGS="" COMPILER=""
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
2)	Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   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

  HEAD of ::gentoo
commit ffd974ef87604e20495370342e9dbcb42a4dbc82
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Oct 2 11:31:48 2022 +0000

    2022-10-02 11:31:48 UTC

emerge -qpvO media-libs/portmidi
[ebuild  N    ] media-libs/portmidi-234-r2  USE="-debug -doc -java -static-libs -test-programs"
Comment 1 Toralf Förster gentoo-dev 2022-10-02 14:48:15 UTC
Created attachment 815632 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-10-02 14:48:16 UTC
Created attachment 815635 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-10-02 14:48:18 UTC
Created attachment 815638 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-10-02 14:48:19 UTC
Created attachment 815641 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-10-02 14:48:20 UTC
Created attachment 815644 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-10-02 14:48:21 UTC
Created attachment 815647 [details]
media-libs:portmidi-234-r2:20221002-142335.log
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-11-20 21:27:48 UTC
*** Bug 882233 has been marked as a duplicate of this bug. ***
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-05 18:22:09 UTC
*** Bug 903878 has been marked as a duplicate of this bug. ***
Comment 9 Alec Ari 2023-04-26 19:38:02 UTC
How do I finish building a Gentoo system at least temporarily for now?
Comment 10 Larry the Git Cow gentoo-dev 2023-04-29 05:46:24 UTC
The bug has been closed via the following commit(s):

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

commit 7f9196dacbbfcfbfcb3744d13f0ff41e2a9b32c1
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-04-29 05:38:49 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-04-29 05:45:45 +0000

    media-libs/portmidi: add 2.0.4
    
    Switch to new repo on github (linked to from sourceforge). This is _not_ the
    Tenacity fork.
    
    Drop Java support as it's deprecated upstream.
    
    Note that this compares lower than 236 (2.0.4 < 236) but this is a newer version;
    234 will be renamed to 0.234 to reflect this.
    
    Bug: https://bugs.gentoo.org/810577
    Closes: https://bugs.gentoo.org/735170
    Closes: https://bugs.gentoo.org/874084
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/portmidi/Manifest                       |  1 +
 .../portmidi/files/portmidi-2.0.4-cmake.patch      | 11 +++
 media-libs/portmidi/portmidi-2.0.4.ebuild          | 82 ++++++++++++++++++++++
 3 files changed, 94 insertions(+)
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-29 05:55:31 UTC
(In reply to Alec Ari from comment #9)
> How do I finish building a Gentoo system at least temporarily for now?

Workaround for bugs like these is CFLAGS="... -Wno-error=implicit-function-declaration" but *please* report bugs for them if one isn't already filed because they're serious errors.

But this one is fixed now, thanks for the ping.