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

Bug 874918

Summary: media-video/setpwc-1.3 - setpwc.c: error: type of fd defaults to int [-Werror=implicit-int]
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Media-video project <media-video>
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-video:setpwc-1.3:20221003-233046.log
temp.tar.bz2

Description Toralf Förster gentoo-dev 2022-10-04 16:25:56 UTC
>>> Compiling source in /var/tmp/portage/media-video/setpwc-1.3/work/setpwc-1.3 ...
make -j4 
x86_64-pc-linux-gnu-gcc -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -Wall -DVERSION=\"1.3\" -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0  setpwc.c   -o setpwc
setpwc.c: In function query_pan_tilt_status:
setpwc.c:349:6: error: type of fd defaults to int [-Werror=implicit-int]
  349 | void query_pan_tilt_status(fd)
      |      ^~~~~~~~~~~~~~~~~~~~~

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

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

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

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 *
The following VMs are available for generation-2:
1)	OpenJDK 17.0.5_p5 [openjdk-17]
*)	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-17 
  [2]   openjdk-bin-8 
  [3]   openjdk-bin-17  system-vm

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

  HEAD of ::gentoo
commit c0fda7042c7f92f6bb638b24e1afd982e4e6cfb1
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Oct 3 22:47:23 2022 +0000

    2022-10-03 22:47:23 UTC

emerge -qpvO media-video/setpwc
[ebuild  N    ] media-video/setpwc-1.3
Comment 1 Toralf Förster gentoo-dev 2022-10-04 16:25:57 UTC
Created attachment 818680 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-10-04 16:25:58 UTC
Created attachment 818683 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-10-04 16:25:59 UTC
Created attachment 818686 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-10-04 16:26:00 UTC
Created attachment 818689 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-10-04 16:26:02 UTC
Created attachment 818692 [details]
media-video:setpwc-1.3:20221003-233046.log
Comment 6 Toralf Förster gentoo-dev 2022-10-04 16:26:03 UTC
Created attachment 818695 [details]
temp.tar.bz2
Comment 7 Larry the Git Cow gentoo-dev 2022-11-21 00:38:17 UTC
The bug has been closed via the following commit(s):

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

commit 50cea264a8727a5c672e07efd935a6a21410890b
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2022-11-21 00:26:57 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2022-11-21 00:37:24 +0000

    media-video/setpwc: fix build w/ upcoming clang16
    
    Closes: https://bugs.gentoo.org/874918
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 media-video/setpwc/files/setpwc-1.3-clang16.patch | 8 ++++++++
 media-video/setpwc/setpwc-1.3.ebuild              | 7 +++++--
 2 files changed, 13 insertions(+), 2 deletions(-)