[Bug 223758] math/saga: fail build with wxgtk30 - 3.0.3.1

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Jan 21 02:22:38 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223758

--- Comment #6 from commit-hook at freebsd.org ---
A commit references this bug:

Author: jbeich
Date: Sun Jan 21 02:22:17 UTC 2018
New revision: 459566
URL: https://svnweb.freebsd.org/changeset/ports/459566

Log:
  math/saga: unbreak build with wxWidgets 3.0.3

  wksp_tool.cpp: In member function 'virtual wxString
CWKSP_Tool::Get_Description()':
  wksp_tool.cpp:159:61: error: no matching function for call to
'CSG_File::Open(const wxScopedWCharBuffer, ESG_File_Flags_Open)'
     if( Stream.Open(FileName.GetFullPath().wc_str(), SG_FILE_R) &&
Stream.Read(Description, Stream.Length()) )
                                                               ^
  In file included from ../saga_api/geo_tools.h:77:0,
                   from ../saga_api/mat_tools.h:77,
                   from ../saga_api/dataobject.h:84,
                   from ../saga_api/table.h:77,
                   from ../saga_api/grid.h:77,
                   from ../saga_api/parameters.h:77,
                   from ../saga_api/tool.h:76,
                   from ../saga_api/tool_library.h:77,
                   from ../saga_api/saga_api.h:118,
                   from res_commands.h:78,
                   from wksp_tool.cpp:67:
  ../saga_api/api_core.h:955:13: note: candidate: bool CSG_File::Open(const
CSG_String&, int, bool, int)
    bool       Open    (const CSG_String &File_Name, int Mode = SG_FILE_R, bool
bBinary = true, int Encoding = SG_FILE_ENCODING_CHAR);
               ^~~~
  ../saga_api/api_core.h:955:13: note:   no known conversion for argument 1
from 'const wxScopedWCharBuffer {aka const wxScopedCharTypeBuffer<wchar_t>}' to
'const CSG_String&'
  wksp_tool.cpp:166:61: error: no matching function for call to
'CSG_File::Open(const wxScopedWCharBuffer, ESG_File_Flags_Open)'
     if( Stream.Open(FileName.GetFullPath().wc_str(), SG_FILE_R) &&
Stream.Read(Description, Stream.Length()) )
                                                               ^
  In file included from ../saga_api/geo_tools.h:77:0,
                   from ../saga_api/mat_tools.h:77,
                   from ../saga_api/dataobject.h:84,
                   from ../saga_api/table.h:77,
                   from ../saga_api/grid.h:77,
                   from ../saga_api/parameters.h:77,
                   from ../saga_api/tool.h:76,
                   from ../saga_api/tool_library.h:77,
                   from ../saga_api/saga_api.h:118,
                   from res_commands.h:78,
                   from wksp_tool.cpp:67:
  ../saga_api/api_core.h:955:13: note: candidate: bool CSG_File::Open(const
CSG_String&, int, bool, int)
    bool       Open    (const CSG_String &File_Name, int Mode = SG_FILE_R, bool
bBinary = true, int Encoding = SG_FILE_ENCODING_CHAR);
               ^~~~
  ../saga_api/api_core.h:955:13: note:   no known conversion for argument 1
from 'const wxScopedWCharBuffer {aka const wxScopedCharTypeBuffer<wchar_t>}' to
'const CSG_String&'

  PR:           223758
  Submitted by: rozhuk.im at gmail.com
  Obtained from:        upstream
  Approved by:  Rainer Hurling (maintainer)

Changes:
  head/math/saga/Makefile
  head/math/saga/files/patch-git_6e14443b30ce

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list