Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 890553 - media-libs/exempi-2.6.2 - 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 (on musl)
Summary: media-libs/exempi-2.6.2 - In function 'void DumpISOBoxes(LFA_FileRef, XMP_Uns...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: Normal normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on: 892725
Blocks: musl-porting
  Show dependency tree
 
Reported: 2023-01-11 23:27 UTC by ernsteiswuerfel
Modified: 2023-02-07 19:51 UTC (History)
0 users

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


Attachments
build.log (exempi-2.6.2:20230111-230836.log,555.93 KB, text/plain)
2023-01-11 23:27 UTC, ernsteiswuerfel
Details
emerge --info (file_890553.txt,6.84 KB, text/plain)
2023-01-11 23:27 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2023-01-11 23:27:01 UTC
Created attachment 848289 [details]
build.log

[...]
libtool: compile:  powerpc-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 -DWORDS_BIGENDIAN=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 -mcpu=7450 -mtune=7450 -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:1391:38: warning: comparison of integer expressions of different signedness: 'XMP_Uns32' {aka 'unsigned int'} and 'int' [-Wsign-compare]
 1391 |                 if (irOffset + irLen > (psirMarkers[i].jpegMarkerPtr - dataStart) + psirMarkers[i].jpegMarkerLen) {
      |                     ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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;
      |                                                        ^~~~
common/DumpFile.cpp: In function 'XMP_Uns64 parseRF64(LFA_FileRef, DataSize64Chunk*)':
common/DumpFile.cpp:3825:19: warning: unused variable 'chunkPos' [-Wunused-variable]
 3825 |         XMP_Int64 chunkPos = LFA_Tell(file);
      |                   ^~~~~~~~
common/DumpFile.cpp: In function 'void DumpRIFFChunk(LFA_FileRef, XMP_Int64, std::string, bool, DataSize64Chunk*)':
common/DumpFile.cpp:3926:43: warning: declaration of 'tmp' shadows a previous local [-Wshadow]
 3926 |                                 XMP_Uns32 tmp = tree->digest32u(file, "", true);
      |                                           ^~~
common/DumpFile.cpp:3912:35: note: shadowed declaration is here
 3912 |                         XMP_Uns32 tmp = tree->digest32u(file, "", true);
      |                                   ^~~
common/DumpFile.cpp:3977:59: warning: declaration of 'tmp' shadows a previous local [-Wshadow]
 3977 |                                                 XMP_Uns32 tmp = tree->digest32u(file, "", true);
      |                                                           ^~~
common/DumpFile.cpp:3912:35: note: shadowed declaration is here
 3912 |                         XMP_Uns32 tmp = tree->digest32u(file, "", true);
      |                                   ^~~
common/DumpFile.cpp:3978:59: warning: declaration of 'chunkID' shadows a previous local [-Wshadow]
 3978 |                                                 XMP_Uns32 chunkID = GetUns32BE(&tmp); // flip if necessary for LE systems
      |                                                           ^~~~~~~
common/DumpFile.cpp:3913:35: note: shadowed declaration is here
 3913 |                         XMP_Uns32 chunkID = GetUns32BE(&tmp); // flip if necessary for LE systems
      |                                   ^~~~~~~
common/DumpFile.cpp: In function 'void DumpPS(LFA_FileRef, XMP_Uns32)':
common/DumpFile.cpp:4400:36: warning: unused parameter 'fileLen' [-Wunused-parameter]
 4400 | DumpPS(LFA_FileRef file, XMP_Uns32 fileLen)
      |                          ~~~~~~~~~~^~~~~~~
common/DumpFile.cpp: In function 'void DumpID3v22Frames(LFA_FileRef, XMP_Uns8, XMP_Uns32, XMP_Uns32)':
common/DumpFile.cpp:5489:57: warning: unused parameter 'vMajor' [-Wunused-parameter]
 5489 | static void DumpID3v22Frames(LFA_FileRef file, XMP_Uns8 vMajor, XMP_Uns32 framePos, XMP_Uns32 frameEnd) {
      |                                                ~~~~~~~~~^~~~~~
make[2]: *** [Makefile:639: common/DumpFile.lo] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-libs/exempi-2.6.2/work/exempi-2.6.2/samples/source'
make[1]: *** [Makefile:418: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/media-libs/exempi-2.6.2/work/exempi-2.6.2/samples'
make: *** [Makefile:453: all-recursive] Error 1
 * ERROR: media-libs/exempi-2.6.2::gentoo failed (compile phase):
 *   emake failed
Comment 1 ernsteiswuerfel archtester 2023-01-11 23:27:32 UTC
Created attachment 848291 [details]
emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-11 23:36:32 UTC
We should just stable 2.6.3.
Comment 3 ernsteiswuerfel archtester 2023-01-15 17:34:30 UTC
Yes, 2.6.3 just builds fine on musl ppc.