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

Bug 907091

Summary: media-libs/libpgf-7.21.7-r1 - ../.../PGFplatform.h: error: off64_t was not declared in this scope
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo musl team <musl>
Status: RESOLVED FIXED    
Severity: normal CC: ceamac
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 865117, 903611, 920477    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.clang.tar.bz2
etc.portage.tar.bz2
logs.tar.bz2
media-libs:libpgf-7.21.7-r1:20230524-052916.log
temp.tar.bz2

Description Toralf Förster gentoo-dev 2023-05-24 17:53:52 UTC
libtool: compile:  x86_64-gentoo-linux-musl-g++ -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -pipe -march=native -fno-diagnostics-color -c Subband.cpp  -fPIC -DPIC -o .libs/Subband.o
libtool: compile:  x86_64-gentoo-linux-musl-g++ -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -pipe -march=native -fno-diagnostics-color -c PGFimage.cpp  -fPIC -DPIC -o .libs/PGFimage.o
In file included from ../include/PGFtypes.h:32,
                 from Subband.h:32,
                 from Subband.cpp:29:
../include/PGFplatform.h: In function 'OSError GetFPos(HANDLE, UINT64*)':
../include/PGFplatform.h:539:17: error: 'off64_t' was not declared in this scope; did you mean 'off_t'?
  539 |                 off64_t ret;
      |                 ^~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl-j5-20230521-051504

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

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-13 *
clang/llvm (if any):
clang version 16.0.4
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/16/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/16
16.0.4
Python 3.11.3
Available Ruby profiles:
  [1]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.69.0 *
php cli (if any):
go version go1.20.4 linux/amd64

  HEAD of ::gentoo
commit 9022af0d31c7fb2c546062378a3a695083c5f795
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed May 24 02:16:59 2023 +0000

    2023-05-24 02:16:58 UTC

emerge -qpvO media-libs/libpgf
[ebuild  N    ] media-libs/libpgf-7.21.7-r1  USE="-doc"
Comment 1 Toralf Förster gentoo-dev 2023-05-24 17:53:53 UTC
Created attachment 862450 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-05-24 17:53:54 UTC
Created attachment 862451 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2023-05-24 17:53:56 UTC
Created attachment 862452 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-05-24 17:53:56 UTC
Created attachment 862453 [details]
etc.clang.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2023-05-24 17:53:57 UTC
Created attachment 862454 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2023-05-24 17:53:58 UTC
Created attachment 862455 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2023-05-24 17:53:59 UTC
Created attachment 862456 [details]
media-libs:libpgf-7.21.7-r1:20230524-052916.log
Comment 8 Toralf Förster gentoo-dev 2023-05-24 17:54:00 UTC
Created attachment 862457 [details]
temp.tar.bz2
Comment 9 Larry the Git Cow gentoo-dev 2024-03-06 05:58:38 UTC
The bug has been closed via the following commit(s):

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

commit e5ea9207faf58a5468d0e663d1a41b67618ab259
Author:     Viorel Munteanu <ceamac@gentoo.org>
AuthorDate: 2024-03-06 05:50:39 +0000
Commit:     Viorel Munteanu <ceamac@gentoo.org>
CommitDate: 2024-03-06 05:58:25 +0000

    media-libs/libpgf: fix build on musl
    
    Drop off64_t, add AC_SYS_LARGEFILE.
    
    Closes: https://bugs.gentoo.org/907091
    Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>

 .../files/libpgf-7.21.7-remove-off64_t.patch       | 45 +++++++++++++++++
 media-libs/libpgf/libpgf-7.21.7-r2.ebuild          | 58 ++++++++++++++++++++++
 2 files changed, 103 insertions(+)