Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 880833 - media-video/mpeg-tools-1.5b-r5 - jpeg.c: error: call to undeclared function jcopy_sample_rows; ISO C99
Summary: media-video/mpeg-tools-1.5b-r5 - jpeg.c: error: call to undeclared function j...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-11-10 20:26 UTC by Toralf Förster
Modified: 2024-03-15 03:39 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,18.45 KB, text/plain)
2022-11-10 20:26 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,57.17 KB, text/plain)
2022-11-10 20:27 UTC, Toralf Förster
Details
environment (environment,64.37 KB, text/plain)
2022-11-10 20:27 UTC, Toralf Förster
Details
etc.clang.tar.bz2 (etc.clang.tar.bz2,696 bytes, application/x-bzip)
2022-11-10 20:27 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,39.79 KB, application/x-bzip)
2022-11-10 20:27 UTC, Toralf Förster
Details
media-video:mpeg-tools-1.5b-r5:20221110-195330.log (media-video:mpeg-tools-1.5b-r5:20221110-195330.log,38.67 KB, text/plain)
2022-11-10 20:27 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,20.89 KB, application/x-bzip)
2022-11-10 20:27 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-11-10 20:26:58 UTC
      in all versions of C and is not supported in C2x
      [-Wdeprecated-non-prototype]
ReadJPEG(mf, fp)
^
jpeg.c:586:7: error: call to undeclared function 'jcopy_sample_rows'; 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-20221110-100005

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

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:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.64.0 *
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

php cli (if any):

  HEAD of ::gentoo
commit 1cfadf62e0795b3455c4f3297d7c56fdd989eed3
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Thu Nov 10 19:46:53 2022 +0000

    2022-11-10 19:46:53 UTC

emerge -qpvO media-video/mpeg-tools
[ebuild  N    ] media-video/mpeg-tools-1.5b-r5
Comment 1 Toralf Förster gentoo-dev 2022-11-10 20:26:59 UTC
Created attachment 830575 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-11-10 20:27:00 UTC
Created attachment 830577 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-11-10 20:27:01 UTC
Created attachment 830579 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-11-10 20:27:02 UTC
Created attachment 830581 [details]
etc.clang.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-11-10 20:27:03 UTC
Created attachment 830583 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-11-10 20:27:05 UTC
Created attachment 830585 [details]
media-video:mpeg-tools-1.5b-r5:20221110-195330.log
Comment 7 Toralf Förster gentoo-dev 2022-11-10 20:27:06 UTC
Created attachment 830587 [details]
temp.tar.bz2
Comment 8 Larry the Git Cow gentoo-dev 2024-03-15 03:39:44 UTC
The bug has been closed via the following commit(s):

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

commit 5db915754b1c54eb9bbab1cd3a43fcfc51dd2ae0
Author:     Eli Schwartz <eschwartz93@gmail.com>
AuthorDate: 2024-03-15 02:56:57 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-03-15 03:18:07 +0000

    media-video/mpeg-tools: fix various horribleness related to c99 porting
    
    The project is dead upstream. The server for the homepage doesn't even
    exist. The code is heavily crusty as well, as it uses lots of K&R C and
    implicit-int functions that are implict.
    
    Apply fixes until it caves in and starts building with Modern C.
    
    Closes: https://bugs.gentoo.org/880833
    Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/0001-fix-K-R-C-on-various-counts.patch   | 98 ++++++++++++++++++++++
 ...x-missing-prototype-for-internal-jpeg-ABI.patch | 30 +++++++
 media-video/mpeg-tools/mpeg-tools-1.5b-r5.ebuild   |  4 +-
 3 files changed, 131 insertions(+), 1 deletion(-)