Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 874447 - media-libs/libquicktime-1.2.4-r3 - /.../qtpng.c: error: call to undeclared library function memcpy with type void (void , const vo
Summary: media-libs/libquicktime-1.2.4-r3 - /.../qtpng.c: error: call to undeclared li...
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-10-03 08:00 UTC by Toralf Förster
Modified: 2022-10-25 12:15 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.51 KB, text/plain)
2022-10-03 08:00 UTC, Toralf Förster
Details
clang.tar.bz2 (clang.tar.bz2,2.79 KB, application/x-bzip)
2022-10-03 08:00 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,138.13 KB, text/plain)
2022-10-03 08:00 UTC, Toralf Förster
Details
environment (environment,82.41 KB, text/plain)
2022-10-03 08:00 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,18.24 KB, application/x-bzip)
2022-10-03 08:00 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,12.34 KB, application/x-bzip)
2022-10-03 08:00 UTC, Toralf Förster
Details
media-libs:libquicktime-1.2.4-r3:20221002-235217.log (media-libs:libquicktime-1.2.4-r3:20221002-235217.log,175.64 KB, text/plain)
2022-10-03 08:00 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,32.10 KB, application/x-bzip)
2022-10-03 08:00 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-03 08:00:10 UTC
too long lines were shrinked:

/bin/sh ../../libtool --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-libs/libquicktime-1.2.4-r3/work/libquicktime-1.2.4/plugins/png -I../.. -I/var/tmp/portage/media-libs/libquicktime-1.2.4-r3/work/libquicktime-1.2.4/include -I../../include   -I/usr/include/libpng16  -DL
/bin/sh ../../libtool --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-libs/libquicktime-1.2.4-r3/work/libquicktime-1.2.4/plugins/png -I../.. -I/var/tmp/portage/media-libs/libquicktime-1.2.4-r3/work/libquicktime-1.2.4/include -I../../include   -I/usr/include/libpng16  -DL
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-libs/libquicktime-1.2.4-r3/work/libquicktime-1.2.4/plugins/png -I../.. -I/var/tmp/portage/media-libs/libquicktime-1.2.4-r3/work/libquicktime-1.2.4/include -I../../include -I/usr/include/libpng16 -DLOCALE_DIR=\"/usr/share/locale\" 
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-libs/libquicktime-1.2.4-r3/work/libquicktime-1.2.4/plugins/png -I../.. -I/var/tmp/portage/media-libs/libquicktime-1.2.4-r3/work/libquicktime-1.2.4/include -I../../include -I/usr/include/libpng16 -DLOCALE_DIR=\"/usr/share/locale\" 
/var/tmp/portage/media-libs/libquicktime-1.2.4-r3/work/libquicktime-1.2.4/plugins/png/qtpng.c:74:5: error: call to undeclared library function 'memcpy' with type 'void *(void *, const void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-functio
    memcpy(data, codec->buffer + codec->buffer_position, length);
    ^

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

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

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

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]   ruby30 *
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 f0563c90e636da833af43e4a5334c6ebddd3cf6a
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Oct 2 22:16:57 2022 +0000

    2022-10-02 22:16:57 UTC

emerge -qpvO media-libs/libquicktime
[ebuild  N    ] media-libs/libquicktime-1.2.4-r3  USE="X aac alsa encode gtk jpeg opengl png vorbis x264 -doc -dv -ffmpeg -lame -static-libs" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="mmx"
Comment 1 Toralf Förster gentoo-dev 2022-10-03 08:00:11 UTC
Created attachment 816652 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-10-03 08:00:12 UTC
Created attachment 816655 [details]
clang.tar.bz2
Comment 3 Toralf Förster gentoo-dev 2022-10-03 08:00:14 UTC
Created attachment 816658 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-10-03 08:00:15 UTC
Created attachment 816661 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-10-03 08:00:16 UTC
Created attachment 816664 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-10-03 08:00:17 UTC
Created attachment 816667 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-10-03 08:00:19 UTC
Created attachment 816670 [details]
media-libs:libquicktime-1.2.4-r3:20221002-235217.log
Comment 8 Toralf Förster gentoo-dev 2022-10-03 08:00:21 UTC
Created attachment 816673 [details]
temp.tar.bz2
Comment 9 Ionen Wolkens gentoo-dev 2022-10-15 19:37:18 UTC
Maybe(?) trivial but should probably be last-rited alongside transcode & dead friends rather than spent time on. Some configure tests (like vorbis') also fail on amd64 with lld due to -L/usr/lib with config.log having e.g.

ld.lld: error: /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../lib64/Scrt1.o is incompatible with elf32-i386
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-25 12:15:18 UTC
I went ahead and did the trivial bit for now but agree these will have to go at some point.

I did once have ambitions of fixing ogg and friends' m4 but..
Comment 11 Larry the Git Cow gentoo-dev 2022-10-25 12:15:44 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=298dd9d4630a90736e56d059481a99036b2ac1a2

commit 298dd9d4630a90736e56d059481a99036b2ac1a2
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-10-25 12:14:07 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-10-25 12:15:25 +0000

    media-libs/libquicktime: fix build w/ Clang 16
    
    Closes: https://bugs.gentoo.org/874447
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/libquicktime-1.2.4-implicit-func-decl.patch         | 11 +++++++++++
 ...quicktime-1.2.4-r3.ebuild => libquicktime-1.2.4-r4.ebuild} |  5 +++--
 2 files changed, 14 insertions(+), 2 deletions(-)