poedit: ICU 59.1 breaks compilation

GCC 7.1 + libboost 1.64 + wxwidgets 3.0.2 👍

[51s] g++ -DPACKAGE_NAME=\"poedit\" -DPACKAGE_TARNAME=\"poedit\" -DPACKAGE_VERSION=\"2.0.2\" -DPACKAGE_STRING=\"poedit\ 2.0.2\" -DPACKAGE_BUGREPORT=\"help@poedit.net\" -DPACKAGE_URL=\"\" -DPACKAGE=\"poedit\" -DVERSION=\"2.0.2\" -DHAVE_CXX14=1 -DHAVE_BOOST=/\*\*/ -DHAVE_BOOST_SYSTEM=/\*\*/ -DHAVE_BOOST_REGEX=/\*\*/ -DHAVE_BOOST_THREAD=/\*\*/ -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_BOOST_IOSTREAMS=/\*\*/ -DHAVE_MKDTEMP=1 -DHAVE_CLD2_PUBLIC_COMPACT_LANG_DET_H=1 -DHAVE_CLD2=1 -I.     -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -g -fno-strict-aliasing -pthread -I/usr/include -I/usr/lib64/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DwxDEBUG_LEVEL=0 -DWXUSINGDLL -D__WXGTK__ -pthread  -pthread -I/usr/include/gtkspell-2.0 -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/lucene++ -Wall -Wextra  -DwxNO_UNSAFE_WXSTRING_CONV=1 "-DPOEDIT_PREFIX=\"/usr\"" -c -o catalog.o catalog.cpp
[   56s] In file included from /usr/include/wx-3.0/wx/strconv.h:17:0,                                                  
[   56s]                  from /usr/include/wx-3.0/wx/strvararg.h:20,                                                  
[   56s]                  from /usr/include/wx-3.0/wx/string.h:46,                                                     
[   56s]                  from language.h:29,              
[   56s]                  from catalog.h:29,               
[   56s]                  from language.h:29,              
[   56s]                  from catalog.h:29,               
[   56s]                  from cat_sorting.h:29,           
[   56s]                  from cat_sorting.cpp:27:         
[   56s] /usr/include/wx-3.0/wx/buffer.h: In instantiation of 'static const wxScopedCharTypeBuffer<T> wxScopedCharTypeBuffer<T>::CreateOwned(wxScopedCharTypeBuffer<T>::CharType*, size_t) [with T = char16_t; wxScopedCharTypeBuffer<T>::CharType = char16_t; size_t = long unsigned int]':
[   56s] str_helpers.h:176:37:   required from here        
[   56s] /usr/include/wx-3.0/wx/buffer.h:99:27: error: invalid conversion from 'wxScopedCharTypeBuffer<char16_t>::CharType* {aka char16_t*}' to 'const wxChar16* {aka const short unsigned int*}' [-fpermissive]
[   56s]              len = wxStrlen(str);                 
[   56s]                    ~~~~~~~~^~~~~                  
[   56s] In file included from /usr/include/wx-3.0/wx/string.h:45:0,                                                   
[   56s]                  from language.h:29,              
[   56s]                  from catalog.h:29,               
[   56s]                  from cat_sorting.h:29,           
[   56s]                  from cat_sorting.cpp:27:         
[   56s] /usr/include/wx-3.0/wx/wxcrtbase.h:678:32: note:   initializing argument 1 of 'size_t wxStrlen(const wxChar16*)'                                                 
[   56s]         WXDLLIMPEXP_BASE size_t wxStrlen(const wxChar16 *s );                                                 
[   56s]                                 ^~~~~~~~          
[   56s] make[1]: *** [Makefile:696: cat_sorting.o] Error 1                                                            
[   56s] make[1]: *** Waiting for unfinished jobs....      
[   68s] make[1]: Leaving directory '/home/abuild/rpmbuild/BUILD/poedit-2.0.2/src'                                     

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 27 (17 by maintainers)

Commits related to this issue

Most upvoted comments

@mimi1vx Try make CPPFLAGS+=' -DUCHAR_TYPE=uint16_t'