Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 884027 - media-libs/exempi-2.6.2 - common/DumpFile.cpp:2479:56: error: cannot convert 'std::nullptr_t' to 'XMP_Uns16' {aka 'short unsigned int'} in assignment exif_item_id = NULL; (on musl)
Summary: media-libs/exempi-2.6.2 - common/DumpFile.cpp:2479:56: error: cannot convert ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Freedesktop bugs
URL: https://gitlab.freedesktop.org/libope...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2022-12-02 14:27 UTC by ernsteiswuerfel
Modified: 2023-01-11 23:36 UTC (History)
0 users

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


Attachments
build.log (amd64, 2.6.2) (exempi-2.6.2:20221202-131840.log,548.84 KB, text/plain)
2022-12-02 14:27 UTC, ernsteiswuerfel
Details
emerge --info (file_884027.txt,6.89 KB, text/plain)
2022-12-02 14:27 UTC, ernsteiswuerfel
Details
Alpine Linux patch (musl-1.2.3.patch,1.50 KB, patch)
2022-12-04 16:00 UTC, ernsteiswuerfel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2022-12-02 14:27:03 UTC
Created attachment 839063 [details]
build.log (amd64, 2.6.2)

[...]
/bin/sh ../../libtool  --tag=CXX   --mode=compile x86_64-gentoo-linux-musl-g++ -DPACKAGE_NAME=\"exempi\" -DPACKAGE_TARNAME=\"exempi\" -DPACKAGE_VERSION=\"2.6.2\" -DPACKAGE_STRING=\"exempi\ 2.6.2\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"exempi\" -DVERSION=\"2.6.2\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_CXX11=1 -DCHECKED_ENDIANNESS=1 -DHAVE_ICONV=1 -DICONV_CONST= -DTLS=__thread -DHAVE_NATIVE_TLS=1 -I.  -I../../public/include -I../.. -DUNIX_ENV=1 -D_FILE_OFFSET_BITS=64  -fexceptions -funsigned-char -fPIC -Wno-multichar -Wno-ctor-dtor-privacy -Os -march=znver3 -mtune=znver3 -pipe -fvisibility=hidden -Wchar-subscripts -Wcast-align -Wextra -Wexceptions -Wformat -Werror=class-memaccess -Wformat-security -Wlogical-not-parentheses -Werror=misleading-indentation -Wmissing-noreturn -Werror=missing-field-initializers -Woverloaded-virtual -Wpointer-arith -Wshadow -Wsign-compare -Wno-suggest-attribute=noreturn -Wunreachable-code -Wunused -Wwrite-strings -c -o common/DumpFile.lo common/DumpFile.cpp
libtool: compile:  x86_64-gentoo-linux-musl-g++ -DPACKAGE_NAME=\"exempi\" -DPACKAGE_TARNAME=\"exempi\" -DPACKAGE_VERSION=\"2.6.2\" "-DPACKAGE_STRING=\"exempi 2.6.2\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"exempi\" -DVERSION=\"2.6.2\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_CXX11=1 -DCHECKED_ENDIANNESS=1 -DHAVE_ICONV=1 -DICONV_CONST= -DTLS=__thread -DHAVE_NATIVE_TLS=1 -I. -I../../public/include -I../.. -DUNIX_ENV=1 -D_FILE_OFFSET_BITS=64 -fexceptions -funsigned-char -fPIC -Wno-multichar -Wno-ctor-dtor-privacy -Os -march=znver3 -mtune=znver3 -pipe -fvisibility=hidden -Wchar-subscripts -Wcast-align -Wextra -Wexceptions -Wformat -Werror=class-memaccess -Wformat-security -Wlogical-not-parentheses -Werror=misleading-indentation -Wmissing-noreturn -Werror=missing-field-initializers -Woverloaded-virtual -Wpointer-arith -Wshadow -Wsign-compare -Wno-suggest-attribute=noreturn -Wunreachable-code -Wunused -Wwrite-strings -c common/DumpFile.cpp  -fPIC -DPIC -o common/.libs/DumpFile.o
common/DumpFile.cpp: In function 'std::string convert8Bit(void*, bool, XMP_Uns32)':
common/DumpFile.cpp:57:22: warning: unused variable 'tmp' [-Wunused-variable]
   57 |                 char tmp = ((char*)str)[byteLen - 1];
      |                      ^~~
common/DumpFile.cpp: In function 'std::string convert16Bit(bool, XMP_Uns8*, bool, XMP_Uns32)':
common/DumpFile.cpp:109:22: warning: unused variable 'tmp' [-Wunused-variable]
  109 |                 char tmp = str[byteLen - 1];
      |                      ^~~
common/DumpFile.cpp: In function 'void DumpImageResources(const JpegMarkers&, XMP_Uns8*, const char*)':
common/DumpFile.cpp:1315:28: warning: unused variable 'psirOrigin' [-Wunused-variable]
 1315 |                 XMP_Uns8 * psirOrigin = psirMarkers[i].jpegMarkerPtr;
      |                            ^~~~~~~~~~
In file included from ../../samples/source/common/LargeFileAccess.hpp:27,
                 from ../../samples/source/common/TagTree.h:22,
                 from ../../samples/source/common/DumpFile.h:13,
                 from common/DumpFile.cpp:37:
common/DumpFile.cpp: In function 'void DumpISOBoxes(LFA_FileRef, XMP_Uns32, std::string)':
common/DumpFile.cpp:2479:56: error: cannot convert 'std::nullptr_t' to 'XMP_Uns16' {aka 'short unsigned int'} in assignment
 2479 |                                         exif_item_id = NULL;
      |                                                        ^~~~
common/DumpFile.cpp:2472:51: warning: unused variable 'tiffLength1' [-Wunused-variable]
 2472 |                                         XMP_Uns64 tiffLength1 = (stoi(tree->getValue("meta/iloc/item[" + to_string(exif_item_id) + "]/extent_length")));
      |                                                   ^~~~~~~~~~~
common/DumpFile.cpp:2497:56: error: cannot convert 'std::nullptr_t' to 'XMP_Uns16' {aka 'short unsigned int'} in assignment
 2497 |                                         mime_item_id = NULL;
      |                                                        ^~~~
common/DumpFile.cpp:2532:43: warning: declaration of 'item_id' shadows a previous local [-Wshadow]
 2532 |                                 XMP_Uns32 item_id;
      |                                           ^~~~~~~
common/DumpFile.cpp:2352:35: note: shadowed declaration is here
 2352 |                         XMP_Uns16 item_id;
      |                                   ^~~~~~~
common/DumpFile.cpp:2649:56: error: cannot convert 'std::nullptr_t' to 'XMP_Uns16' {aka 'short unsigned int'} in assignment
 2649 |                                         exif_item_id = NULL;
      |                                                        ^~~~
common/DumpFile.cpp:2642:51: warning: unused variable 'tiffLength1' [-Wunused-variable]
 2642 |                                         XMP_Uns64 tiffLength1 = (stoi(tree->getValue("meta/iloc/item[" + to_string(exif_item_id) + "]/extent_length")));
      |                                                   ^~~~~~~~~~~
common/DumpFile.cpp:2667:56: error: cannot convert 'std::nullptr_t' to 'XMP_Uns16' {aka 'short unsigned int'} in assignment
 2667 |                                         mime_item_id = NULL;
[...]
Comment 1 ernsteiswuerfel archtester 2022-12-02 14:27:29 UTC
Created attachment 839065 [details]
emerge --info
Comment 2 ernsteiswuerfel archtester 2022-12-04 16:00:37 UTC
Created attachment 839843 [details, diff]
Alpine Linux patch

Alpine Linux carries already a patch which works fine on Gentoo musl too.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-17 08:26:50 UTC
Thanks for forwarding upstream pacho!
Comment 4 Larry the Git Cow gentoo-dev 2022-12-17 08:38:29 UTC
The bug has been closed via the following commit(s):

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

commit 7c316588caecf5626e173018439a8c0a94bc78ff
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-12-17 08:24:01 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-12-17 08:37:56 +0000

    media-libs/exempi: add 2.6.3
    
    Closes: https://bugs.gentoo.org/884027
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/exempi/Manifest            |  1 +
 media-libs/exempi/exempi-2.6.3.ebuild | 67 +++++++++++++++++++++++++++++++++++
 2 files changed, 68 insertions(+)