Bug 223757 - sysutils/passwordsafe: fix build with wxgtk30 - 3.0.3.1
Summary: sysutils/passwordsafe: fix build with wxgtk30 - 3.0.3.1
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Bernard Spil
URL:
Keywords:
Depends on:
Blocks: 220932
  Show dependency treegraph
 
Reported: 2017-11-20 00:19 UTC by Ivan Rozhuk
Modified: 2017-11-20 10:41 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (brnrd)


Attachments
build fix (1.10 KB, patch)
2017-11-20 00:19 UTC, Ivan Rozhuk
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Rozhuk 2017-11-20 00:19:46 UTC
Created attachment 188129 [details]
build fix

...
clang++ -c -o GCCUnicodeRelease/passwordsubset.o -O2 -pipe -fstack-protector -fno-strict-aliasing  --stdlib=libc++ -I/usr/local/include `/usr/local/bin/wxgtk2u-3.0-config --debug=no --unicode=yes --inplace --cxxflags` -DUNICODE -DNDEBUG -I../.. -fPIC  -O -Wall -DUSE_XML_LIBRARY=XERCES -DWCHAR_INCOMPATIBLE_XMLCH -DNO_YUBI  -std=c++11 passwordsubset.cpp
passwordsubset.cpp:243:27: error: no matching constructor for initialization of 'std::wistringstream' (aka 'basic_istringstream<wchar_t>')
      std::wistringstream is(pos_str.wc_str());
                          ^  ~~~~~~~~~~~~~~~~
/usr/include/c++/v1/iosfwd:120:33: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const wxScopedWCharBuffer' (aka 'const wxScopedCharTypeBuffer<wchar_t>') to 'const std::__1::basic_istringstream<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> >' for 1st argument
    class _LIBCPP_TYPE_VIS_ONLY basic_istringstream;
                                ^
/usr/include/c++/v1/sstream:639:14: note: candidate constructor not viable: no known conversion from 'const wxScopedWCharBuffer' (aka 'const wxScopedCharTypeBuffer<wchar_t>') to 'ios_base::openmode' (aka 'unsigned int') for 1st argument
    explicit basic_istringstream(ios_base::openmode __wch = ios_base::in);
             ^
/usr/include/c++/v1/sstream:640:14: note: candidate constructor not viable: no known conversion from 'const wxScopedWCharBuffer' (aka 'const wxScopedCharTypeBuffer<wchar_t>') to 'const string_type' (aka 'const basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> >') for 1st argument
    explicit basic_istringstream(const string_type& __s,
             ^
/usr/include/c++/v1/sstream:643:5: note: candidate constructor not viable: no known conversion from 'const wxScopedWCharBuffer' (aka 'const wxScopedCharTypeBuffer<wchar_t>') to 'std::__1::basic_istringstream<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> >' for 1st argument
    basic_istringstream(basic_istringstream&& __rhs);
    ^
passwordsubset.cpp:283:42: error: no viable conversion from 'const wxScopedWCharBuffer' (aka 'const wxScopedCharTypeBuffer<wchar_t>') to 'const StringX' (aka 'const basic_string<wchar_t, std::char_traits<wchar_t>, S_Alloc::SecureAlloc<wchar_t> >')
    PWSclipboard::GetInstance()->SetData(reduced_str.wc_str());
                                         ^~~~~~~~~~~~~~~~~~~~
...
Comment 1 commit-hook freebsd_committer freebsd_triage 2017-11-20 10:41:14 UTC
A commit references this bug:

Author: brnrd
Date: Mon Nov 20 10:40:58 UTC 2017
New revision: 454537
URL: https://svnweb.freebsd.org/changeset/ports/454537

Log:
  sysutils/passwordsafe: Fix build with wx 3.0.3.1

  PR:		223757
  Submitted by:	rozhuk im gmail.com

Changes:
  head/sysutils/passwordsafe/files/patch-src_ui_wxWidgets_passwordsubset.cpp
Comment 2 Bernard Spil freebsd_committer freebsd_triage 2017-11-20 10:41:49 UTC
Committed, THANKS!