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

Bug 842123

Summary: media-libs/libfpx-1.3.1_p10 - expdf.cxx: error: cast from std::nullptr_t to DWORD {aka unsigned int} loses precision [-fpermissive
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 839975    
Attachments: emerge-info.txt
emerge-history.txt.bz2
environment
etc.portage.tar.bz2
logs.tar.bz2
media-libs:libfpx-1.3.1_p10:20220501-232048.log
temp.tar.bz2

Description Toralf Förster gentoo-dev 2022-05-02 07:09:29 UTC
libtool: compile:  x86_64-gentoo-linux-musl-g++ -DHAVE_CONFIG_H -I. -I.. -I../oless -I../oless/h -D_UNIX -pipe -march=native -fno-diagnostics-color -O2 -c expst.cxx  -fPIC -DPIC -o .libs/expst.o
/bin/sh ../libtool  --tag=CXX   --mode=compile x86_64-gentoo-linux-musl-g++ -DHAVE_CONFIG_H -I. -I..  -I../oless -I../oless/h -D_UNIX   -pipe -march=native -fno-diagnostics-color -O2 -c -o fat.lo fat.cxx
libtool: compile:  x86_64-gentoo-linux-musl-g++ -DHAVE_CONFIG_H -I. -I.. -I../oless -I../oless/h -D_UNIX -pipe -march=native -fno-diagnostics-color -O2 -c fat.cxx  -fPIC -DPIC -o .libs/fat.o
expdf.cxx: In member function 'SCODE CExposedDocFile::MoveElementTo(const WCHAR*, IStorage*, const TCHAR*, DWORD)':
expdf.cxx:911:34: error: cast from 'std::nullptr_t' to 'DWORD' {aka 'unsigned int'} loses precision [-fpermissive]
  911 |                      (SNBW)NULL, (DWORD)NULL, &pstgsrc);
      |                                  ^

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl-j4-20220428-210012

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

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-11.3.0 *
clang/llvm (if any):
clang version 14.0.3
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/14/bin
/usr/lib/llvm/14
14.0.3
Python 3.9.12
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.60.0
  [2]   rust-1.60.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 11.0.14_p9 [openjdk-bin-11]
Available Java Virtual Machines:
  [1]   openjdk-bin-11  system-vm

php cli:
  [1]   php7.4
  [2]   php8.0
  [3]   php8.1 *

  HEAD of ::gentoo
commit aff2022d4abd637e567861857c0cffb81e863305
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun May 1 22:04:03 2022 +0000

    2022-05-01 22:04:02 UTC

emerge -qpvO media-libs/libfpx
[ebuild  N    ] media-libs/libfpx-1.3.1_p10  USE="-static-libs"
Comment 1 Toralf Förster gentoo-dev 2022-05-02 07:09:30 UTC
Created attachment 775925 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-05-02 07:09:31 UTC
Created attachment 775928 [details]
emerge-history.txt.bz2
Comment 3 Toralf Förster gentoo-dev 2022-05-02 07:09:33 UTC
Created attachment 775931 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-05-02 07:09:34 UTC
Created attachment 775934 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-05-02 07:09:35 UTC
Created attachment 775937 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-05-02 07:09:36 UTC
Created attachment 775940 [details]
media-libs:libfpx-1.3.1_p10:20220501-232048.log
Comment 7 Toralf Förster gentoo-dev 2022-05-02 07:09:37 UTC
Created attachment 775943 [details]
temp.tar.bz2
Comment 8 Larry the Git Cow gentoo-dev 2022-08-06 03:54:45 UTC
The bug has been closed via the following commit(s):

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

commit d8be3b508507f3671e6494108337ec92abdeda7a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-08-06 03:54:33 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-08-06 03:54:33 +0000

    media-libs/libfpx: fix build w/ musl 1.2.3 (and maybe libcxx)
    
    Closes: https://bugs.gentoo.org/842123
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/libfpx-1.3.1_p10-musl-1.2.3-null.patch   | 51 ++++++++++++++++++++++
 media-libs/libfpx/libfpx-1.3.1_p10.ebuild          |  1 +
 2 files changed, 52 insertions(+)