Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1211277 - mediainfo FTBFS, due to ambiguous 'ToZtring(size_t)'
Summary: mediainfo FTBFS, due to ambiguous 'ToZtring(size_t)'
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: libzen
Version: 23
Hardware: s390
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Vasiliy Glazov
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: ZedoraTracker
TreeView+ depends on / blocked
 
Reported: 2015-04-13 13:42 UTC by Jakub Čajka
Modified: 2016-12-20 13:32 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-20 13:32:21 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Patch (4.29 KB, patch)
2015-04-14 13:28 UTC, Jakub Čajka
no flags Details | Diff

Description Jakub Čajka 2015-04-13 13:42:31 UTC
Build fails due to ambiguous 'ToZtring(size_t)' at CommandLine_Parser.cpp:215:151.

Except form build log:
.
.
.
g++ -DPACKAGE_NAME=\"mediainfo\" -DPACKAGE_TARNAME=\"mediainfo\" -DPACKAGE_VERSION=\"0.7.73\" -DPACKAGE_STRING=\"mediainfo\ 0.7.73\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"mediainfo\" -DVERSION=\"0.7.73\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DUNICODE=1 -I. -I../../../Source -I../../../../MediaInfoLib/Source -I../../../../ZenLib/Source    -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches  -m31 -march=z9-109 -mtune=z10 -O2 -DUNICODE  -DUNICODE  -c -o Core.o `test -f '../../../Source/Common/Core.cpp' || echo './'`../../../Source/Common/Core.cpp
../../../Source/CLI/CommandLine_Parser.cpp: In function 'void CallBack_Set(Core&, void*)':
../../../Source/CLI/CommandLine_Parser.cpp:215:151: error: call of overloaded 'ToZtring(size_t)' is ambiguous
     MI.Menu_Option_Preferences_Option(__T("Event_CallBackFunction"), __T("CallBack=memory://")+ZenLib::Ztring::ToZtring((size_t)Event_CallBackFunction));
                                                                                                                                                       ^
../../../Source/CLI/CommandLine_Parser.cpp:215:151: note: candidates are:
In file included from ../../../Source/CLI/Config.h:12:0,
                 from ../../../Source/CLI/CommandLine_Parser.h:14,
                 from ../../../Source/CLI/CommandLine_Parser.cpp:16:
/usr/include/ZenLib/Ztring.h:303:19: note: static ZenLib::Ztring ZenLib::Ztring::ToZtring(ZenLib::int8s, ZenLib::int8u)
     static Ztring ToZtring  (const int8s    I, int8u Radix=10)                   {return Ztring().From_Number(I, Radix);};
                   ^
/usr/include/ZenLib/Ztring.h:304:19: note: static ZenLib::Ztring ZenLib::Ztring::ToZtring(ZenLib::int8u, ZenLib::int8u)
     static Ztring ToZtring  (const int8u    I, int8u Radix=10)                   {return Ztring().From_Number(I, Radix);};
                   ^
/usr/include/ZenLib/Ztring.h:305:19: note: static ZenLib::Ztring ZenLib::Ztring::ToZtring(ZenLib::int16s, ZenLib::int8u)
     static Ztring ToZtring  (const int16s   I, int8u Radix=10)                   {return Ztring().From_Number(I, Radix);};
                   ^
/usr/include/ZenLib/Ztring.h:306:19: note: static ZenLib::Ztring ZenLib::Ztring::ToZtring(ZenLib::int16u, ZenLib::int8u)
     static Ztring ToZtring  (const int16u   I, int8u Radix=10)                   {return Ztring().From_Number(I, Radix);};
                   ^
/usr/include/ZenLib/Ztring.h:307:19: note: static ZenLib::Ztring ZenLib::Ztring::ToZtring(ZenLib::int32s, ZenLib::int8u)
     static Ztring ToZtring  (const int32s   I, int8u Radix=10)                   {return Ztring().From_Number(I, Radix);};
                   ^
/usr/include/ZenLib/Ztring.h:308:19: note: static ZenLib::Ztring ZenLib::Ztring::ToZtring(ZenLib::int32u, ZenLib::int8u)
     static Ztring ToZtring  (const int32u   I, int8u Radix=10)                   {return Ztring().From_Number(I, Radix);};
                   ^
/usr/include/ZenLib/Ztring.h:309:19: note: static ZenLib::Ztring ZenLib::Ztring::ToZtring(ZenLib::int64s, ZenLib::int8u)
     static Ztring ToZtring  (const int64s   I, int8u Radix=10)                   {return Ztring().From_Number(I, Radix);};
                   ^
/usr/include/ZenLib/Ztring.h:310:19: note: static ZenLib::Ztring ZenLib::Ztring::ToZtring(ZenLib::int64u, ZenLib::int8u)
     static Ztring ToZtring  (const int64u   I, int8u Radix=10)                   {return Ztring().From_Number(I, Radix);};
                   ^
/usr/include/ZenLib/Ztring.h:311:19: note: static ZenLib::Ztring ZenLib::Ztring::ToZtring(ZenLib::int128u, ZenLib::int8u)
     static Ztring ToZtring  (const int128u  I, int8u Radix=10)                   {return Ztring().From_Number(I, Radix);};
                   ^
/usr/include/ZenLib/Ztring.h:312:19: note: static ZenLib::Ztring ZenLib::Ztring::ToZtring(ZenLib::float32, ZenLib::int8u)
     static Ztring ToZtring  (const float32  F, int8u AfterComma=3)               {return Ztring().From_Number(F, AfterComma);};
                   ^
/usr/include/ZenLib/Ztring.h:313:19: note: static ZenLib::Ztring ZenLib::Ztring::ToZtring(ZenLib::float64, ZenLib::int8u)
     static Ztring ToZtring  (const float64  F, int8u AfterComma=3)               {return Ztring().From_Number(F, AfterComma);};
                   ^
/usr/include/ZenLib/Ztring.h:314:19: note: static ZenLib::Ztring ZenLib::Ztring::ToZtring(ZenLib::float80, ZenLib::int8u)
     static Ztring ToZtring  (const float80  F, int8u AfterComma=3)               {return Ztring().From_Number(F, AfterComma);};
.
.
.

Failed build:
http://s390.koji.fedoraproject.org/koji/taskinfo?taskID=1776664


This seems to be caused by missing size_t conversion in Ztring in libzen(Ztring& Ztring::From_Number (const size_t I, int8u Radix)), as it's build conditionally. Making it unconditional seems to fix this issue. I have build mediainfo with patched libzen on x86_64 and s390(x) successfully, but haven't done any further testing.

Comment 1 Vasiliy Glazov 2015-04-13 13:54:47 UTC
Created upstream bugreport https://sourceforge.net/p/mediainfo/bugs/910/

I can use you patch if upstream not quckly respond.

Please attach your patch.

Comment 2 Jakub Čajka 2015-04-14 13:28:10 UTC
Created attachment 1014314 [details]
Patch

Patch removes size_t long check from build system(as is used only for conversion function) and makes building of Ztring size_t conversion function unconditional.

Comment 3 Vasiliy Glazov 2015-04-14 19:08:19 UTC
Please patch from here http://sourceforge.net/p/mediainfo/bugs/910/

If all good it will be in next release and I will add patch to current release.

Comment 4 Jan Kurik 2015-07-15 14:17:03 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 23 development cycle.
Changing version to '23'.

(As we did not run this process for some time, it could affect also pre-Fedora 23 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 23 End Of Life. Thank you.)

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora23

Comment 5 Fedora End Of Life 2016-11-24 11:41:47 UTC
This message is a reminder that Fedora 23 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 23. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '23'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 23 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 6 Fedora End Of Life 2016-12-20 13:32:21 UTC
Fedora 23 changed to end-of-life (EOL) status on 2016-12-20. Fedora 23 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.