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

Bug 880807

Summary: media-sound/shorten-3.6.1 - fixio.c: error: call to undeclared function swab; ISO C99 and later do
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.clang.tar.bz2
etc.portage.tar.bz2
logs.tar.bz2
media-sound:shorten-3.6.1:20221110-192647.log.bz2
temp.tar.bz2
var.tmp.clang.tar.bz2

Description Toralf Förster gentoo-dev 2022-11-10 20:11:44 UTC
      in all versions of C and is not supported in C2x
      [-Wdeprecated-non-prototype]
int fread_type(data, ftype, nchan, nitem, stream, datalen) slong **data;
    ^
fixio.c:101:7: error: call to undeclared function 'swab'; 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-j4-20221109-200005

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

GNUMAKEFLAGS="$GNUMAKEFLAGS --shuffle"
CC=clang
CXX=clang++
gcc-config -l:
 [1] x86_64-pc-linux-gnu-12 *
clang/llvm (if any):
clang version 15.0.4
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/15
15.0.4
Python 3.10.8
Available Ruby profiles:
  [1]   ruby27 (with Rubygems)
  [2]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.64.0 *
php cli (if any):
  (none found)

  HEAD of ::gentoo
commit f80188f73da656ba570bd521ba865d631264dea6
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Thu Nov 10 18:50:27 2022 +0000

    2022-11-10 18:50:27 UTC

emerge -qpvO media-sound/shorten
[ebuild  N    ] media-sound/shorten-3.6.1
Comment 1 Toralf Förster gentoo-dev 2022-11-10 20:11:45 UTC
Created attachment 830377 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-11-10 20:11:46 UTC
Created attachment 830379 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-11-10 20:11:47 UTC
Created attachment 830381 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-11-10 20:11:48 UTC
Created attachment 830383 [details]
etc.clang.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-11-10 20:11:49 UTC
Created attachment 830385 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-11-10 20:11:50 UTC
Created attachment 830387 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-11-10 20:11:51 UTC
Created attachment 830389 [details]
media-sound:shorten-3.6.1:20221110-192647.log.bz2
Comment 8 Toralf Förster gentoo-dev 2022-11-10 20:11:53 UTC
Created attachment 830391 [details]
temp.tar.bz2
Comment 9 Toralf Förster gentoo-dev 2022-11-10 20:11:53 UTC
Created attachment 830393 [details]
var.tmp.clang.tar.bz2
Comment 10 Larry the Git Cow gentoo-dev 2023-05-11 03:29:34 UTC
The bug has been closed via the following commit(s):

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

commit 82932b4379e2695b4f5a52e2989d933d43cd00f1
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-05-11 02:49:53 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-05-11 03:15:45 +0000

    media-sound/shorten: fix modern C issues
    
    Closes: https://bugs.gentoo.org/880807
    Signed-off-by: Sam James <sam@gentoo.org>

 media-sound/shorten/files/shorten-3.6.1-modern-c.patch    | 15 +++++++++++++++
 .../{shorten-3.6.1.ebuild => shorten-3.6.1-r1.ebuild}     |  9 ++++++---
 2 files changed, 21 insertions(+), 3 deletions(-)