View Bug Details

IDProjectCategoryView StatusLast Update
0001714DCP-o-maticPackagingpublic2023-09-01 21:48
Reportermarkusk Assigned Tocarl  
PrioritynormalSeverityblockReproducibilityalways
Status closedResolutionfixed 
Platform64-bitOSLinuxOS VersionArch
Product Version2.14.15 
Summary0001714: error: no matching function for call to ‘sub::STLBinaryReader::STLBinaryReader(FILE*&)’
Description

trying to compile 2.14.25 it looks like it would need a new libsub too as the current (non git version =1.4.14) does not have STLBinary ?

Additional Information

[156/348] Compiling src/wx/job_manager_view.cc
../src/lib/string_text_file.cc: In constructor ‘StringTextFile::StringTextFile(boost::shared_ptr<const StringTextFileContent>)’:
../src/lib/string_text_file.cc:56:40: error: no matching function for call to ‘sub::STLBinaryReader::STLBinaryReader(FILE&)’
56 | reader = new sub::STLBinaryReader (f);
| ^
In file included from ../src/lib/string_text_file.cc:27:
/usr/include/libsub-1.0/sub/stl_binary_reader.h:35:2: note: candidate: ‘sub::STLBinaryReader::STLBinaryReader(std::istream&)’
35 | STLBinaryReader (std::istream &);
| ^~~~~~~
/usr/include/libsub-1.0/sub/stl_binary_reader.h:35:19: note: no known conversion for argument 1 from ‘FILE
’ {aka ‘_IO_FILE’} to ‘std::istream&’ {aka ‘std::basic_istream<char>&’}
35 | STLBinaryReader (std::istream &);
| ^~~~~~
/usr/include/libsub-1.0/sub/stl_binary_reader.h:32:7: note: candidate: ‘sub::STLBinaryReader::STLBinaryReader(const sub::STLBinaryReader&)’
32 | class STLBinaryReader : public Reader
| ^~~~~~~
/usr/include/libsub-1.0/sub/stl_binary_reader.h:32:7: note: no known conversion for argument 1 from ‘FILE
’ {aka ‘_IO_FILE*’} to ‘const sub::STLBinaryReader&’

../src/wx/kdm_cpl_panel.cc: In member function ‘void KDMCPLPanel::cpl_browse_clicked()’:
../src/wx/kdm_cpl_panel.cc:146:17: warning: catching polymorphic type ‘class cxml::Error’ by value [-Wcatch-value=]
146 | } catch (cxml::Error) {
| ^~~~~

In file included from /usr/include/wx-3.0/wx/wx.h:24,
from ../src/wx/wx_util.h:29,
from ../src/wx/kdm_output_panel.h:22,
from ../src/wx/kdm_output_panel.cc:25:
/usr/include/wx-3.0/wx/filepicker.h: In member function ‘virtual void wxFilePickerCtrl::DoConnect(wxControl, wxFileDirPickerCtrlBase)’:
/usr/include/wx-3.0/wx/event.h:88:59: warning: cast between incompatible pointer to member types from ‘void (wxEvtHandler::)(wxFileDirPickerEvent&)’ to ‘wxEventFunction’ {aka ‘void (wxEvtHandler::)(wxEvent&)’} [-Wcast-function-type]
88 | #define wxStaticCastEvent(type, val) static_cast<type>(val)
| ^
/usr/include/wx-3.0/wx/event.h:148:49: note: in expansion of macro ‘wxStaticCastEvent’
148 | ( wxObjectEventFunction )( wxEventFunction )wxStaticCastEvent( functype, &func )
| ^~~~~
/usr/include/wx-3.0/wx/filepicker.h:71:5: note: in expansion of macro ‘wxEVENT_HANDLER_CAST’
71 | wxEVENT_HANDLER_CAST(wxFileDirPickerEventFunction, func)
| ^~~~~~~~
/usr/include/wx-3.0/wx/filepicker.h:281:13: note: in expansion of macro ‘wxFileDirPickerEventHandler’
281 | wxFileDirPickerEventHandler( wxFileDirPickerCtrlBase::OnFileDirChange ),
| ^~~~~~~
/usr/include/wx-3.0/wx/filepicker.h: In member function ‘virtual void wxDirPickerCtrl::DoConnect(wxControl, wxFileDirPickerCtrlBase)’:
/usr/include/wx-3.0/wx/event.h:88:59: warning: cast between incompatible pointer to member types from ‘void (wxEvtHandler::)(wxFileDirPickerEvent&)’ to ‘wxEventFunction’ {aka ‘void (wxEvtHandler::)(wxEvent&)’} [-Wcast-function-type]
88 | #define wxStaticCastEvent(type, val) static_cast<type>(val)
| ^
/usr/include/wx-3.0/wx/event.h:148:49: note: in expansion of macro ‘wxStaticCastEvent’
148 | ( wxObjectEventFunction )( wxEventFunction )wxStaticCastEvent( functype, &func )
| ^~~~~
/usr/include/wx-3.0/wx/filepicker.h:71:5: note: in expansion of macro ‘wxEVENT_HANDLER_CAST’
71 | wxEVENT_HANDLER_CAST(wxFileDirPickerEventFunction, func)
| ^~~~~~~~
/usr/include/wx-3.0/wx/filepicker.h:381:13: note: in expansion of macro ‘wxFileDirPickerEventHandler’
381 | wxFileDirPickerEventHandler( wxFileDirPickerCtrlBase::OnFileDirChange ),
| ^~~~~~~

Build failed
-> task in 'libdcpomatic2' failed with exit status 1 (run with -v to display more information)
==> ERROR: A failure occurred in build().
Aborting...

TagsNo tags attached.
Branch
Estimated weeks required
Estimated work required

Activities

carl

2020-02-02 21:43

administrator   ~0003719

Sorry, yes, 1.4.18 of libsub should fix it; I just uploaded it.

Bug History

Date Modified Username Field Change
2020-02-01 04:55 markusk New Bug
2020-02-02 21:43 carl Assigned To => carl
2020-02-02 21:43 carl Status new => resolved
2020-02-02 21:43 carl Resolution open => fixed
2020-02-02 21:43 carl Note Added: 0003719
2023-09-01 21:48 carl Status resolved => closed