Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 874903

Summary: media-sound/wavegain-1.3.1 - wavegain.c: error: implicit declaration of function getpid [-Werror=implicit-function-declaration]
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Sound Team <sound>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tar.bz2
media-sound:wavegain-1.3.1:20221003-215702.log
temp.tar.bz2

Description Toralf Förster gentoo-dev 2022-10-04 16:25:08 UTC
      |         ^~~~~~~
x86_64-pc-linux-gnu-gcc -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H  -c -o recurse.o recurse.c
x86_64-pc-linux-gnu-gcc -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DHAVE_CONFIG_H -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0  wavegain.c audio.o dither.o gain_analysis.o getopt1.o getopt.o main.o misc.o recurse.o  -lm -o wavegain
wavegain.c: In function write_gains:
wavegain.c:524:36: error: implicit declaration of function getpid [-Werror=implicit-function-declaration]
  524 |                 srand(time(NULL) ^ getpid());
      |                                    ^~~~~~

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

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

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.3.1
 [2] 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 *
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]
3)	Eclipse Temurin JRE 17.0.4.1_p1 [openjdk-jre-bin-17]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm
  [2]   openjdk-bin-17 
  [3]   openjdk-jre-bin-17 

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
  [1]   php7.4
  [2]   php8.0
  [3]   php8.1 *
GNU Make 4.3

  HEAD of ::gentoo
commit 8318ba983519dd04bce35f854effe0132f7a7aae
Merge: cd2643822f1a fc004d0bd212
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Oct 3 21:01:50 2022 +0000

    Merge updates from master

emerge -qpvO media-sound/wavegain
[ebuild  N    ] media-sound/wavegain-1.3.1
Comment 1 Toralf Förster gentoo-dev 2022-10-04 16:25:09 UTC
Created attachment 818605 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-10-04 16:25:11 UTC
Created attachment 818608 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-10-04 16:25:12 UTC
Created attachment 818611 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-10-04 16:25:13 UTC
Created attachment 818614 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-10-04 16:25:15 UTC
Created attachment 818617 [details]
media-sound:wavegain-1.3.1:20221003-215702.log
Comment 6 Toralf Förster gentoo-dev 2022-10-04 16:25:16 UTC
Created attachment 818620 [details]
temp.tar.bz2
Comment 7 Ionen Wolkens gentoo-dev 2022-11-21 00:06:05 UTC
*** Bug 875014 has been marked as a duplicate of this bug. ***
Comment 8 Larry the Git Cow gentoo-dev 2022-11-21 00:20:53 UTC
The bug has been closed via the following commit(s):

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

commit 1e35abf116c5a51e20a78e99ed39b08f8bd136b0
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2022-11-20 23:55:37 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2022-11-21 00:19:01 +0000

    media-sound/wavegain: EAPI7->8, fix build w/ upcoming clang16
    
    Also pass -fno-strict-aliasing wrt bug #860981
    
    Closes: https://bugs.gentoo.org/860981
    Closes: https://bugs.gentoo.org/874903
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 media-sound/wavegain/files/wavegain-1.3.1-clang16.patch   |  8 ++++++++
 .../{wavegain-1.3.1.ebuild => wavegain-1.3.1-r1.ebuild}   | 15 ++++++++-------
 2 files changed, 16 insertions(+), 7 deletions(-)