Re: [SOLVED] Work on update for math/saga
On 26.08.2010 19:06 (UTC+1), Rainer Hurling wrote: Now it is time to update math/saga from version 2.0.4 to 2.0.5. In the actual state the port is able to fetch the source, to patch and then to start make. The build process stops with the following error messages. Obviously there is a problem with converting 'wxString' to 'const wchar_t*'. The described error depends on a small inaccuracy with unicode handling in the original linux sources. It is identified and will be corrected. In the meantime I am working with a small extra patch. The updated port is basically ready and running now ;-) I have no clue what to do next. Some help is greatly appreciated. Thanks in advance, Rainer Hurling -- Making all in saga_cmd Making all in man c++ -DPACKAGE_NAME=\saga\ -DPACKAGE_TARNAME=\saga\ -DPACKAGE_VERSION=\2.0.5\ -DPACKAGE_STRING=\saga\ 2.0.5\ -DPACKAGE_BUGREPORT=\BUG-REPORT-ADDRESS\ -DPACKAGE=\saga\ -DVERSION=\2.0.5\ -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/\ -DSTDC_HEADERS=1 -DHAVE_FLOAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_STDLIB_H=1 -DHAVE_REALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_MEMMOVE=1 -DHAVE_MEMSET=1 -DHAVE_MODF=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRRCHR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -I. -fPIC `/usr/local/bin/wxgtk2-2.8-config --unicode=no --cxxflags` -D_SAGA_LINUX -D_SAGA_UNICODE -D_TYPEDEF_BYTE -D_TYPEDEF_WORD -I.. -DMODULE_LIBRARY_PATH=\/usr/local/lib/saga\ -O2 -pipe -I/usr/local/include -fno-strict-aliasing -MT callback.o -MD -MP -MF .deps/callback.Tpo -c -o callback.o callback.cpp mv -f .deps/callback.Tpo .deps/callback.Po c++ -DPACKAGE_NAME=\saga\ -DPACKAGE_TARNAME=\saga\ -DPACKAGE_VERSION=\2.0.5\ -DPACKAGE_STRING=\saga\ 2.0.5\ -DPACKAGE_BUGREPORT=\BUG-REPORT-ADDRESS\ -DPACKAGE=\saga\ -DVERSION=\2.0.5\ -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/\ -DSTDC_HEADERS=1 -DHAVE_FLOAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_STDLIB_H=1 -DHAVE_REALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_MEMMOVE=1 -DHAVE_MEMSET=1 -DHAVE_MODF=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRRCHR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -I. -fPIC `/usr/local/bin/wxgtk2-2.8-config --unicode=no --cxxflags` -D_SAGA_LINUX -D_SAGA_UNICODE -D_TYPEDEF_BYTE -D_TYPEDEF_WORD -I.. -DMODULE_LIBRARY_PATH=\/usr/local/lib/saga\ -O2 -pipe -I/usr/local/include -fno-strict-aliasing -MT module_library.o -MD -MP -MF .deps/module_library.Tpo -c -o module_library.o module_library.cpp module_library.cpp: In member function 'bool CModule_Library::Create(const wchar_t*, const wchar_t*)': module_library.cpp:139: error: cannot convert 'wxString' to 'const wchar_t*' in argument passing module_library.cpp: In member function 'void CModule_Library::_Set_CMD(CSG_Parameters*, bool)': module_library.cpp:320: error: no matching function for call to 'wxString::Format(const wchar_t*)' /usr/local/include/wx-2.8/wx/string.h:1208: note: candidates are: static wxString wxString::Format(const wxChar*, ...) module_library.cpp:333: error: no matching function for call to 'wxString::Format(const wchar_t*)' /usr/local/include/wx-2.8/wx/string.h:1208: note: candidates are: static wxString wxString::Format(const wxChar*, ...) module_library.cpp:337: error: no matching function for call to 'wxString::Format(const wchar_t*)' /usr/local/include/wx-2.8/wx/string.h:1208: note: candidates are: static wxString wxString::Format(const wxChar*, ...) module_library.cpp:342: error: no matching function for call to 'wxString::Format(const wchar_t*)' /usr/local/include/wx-2.8/wx/string.h:1208: note: candidates are: static wxString wxString::Format(const wxChar*, ...) module_library.cpp:347: error: no matching function for call to 'wxString::Format(const wchar_t*)' /usr/local/include/wx-2.8/wx/string.h:1208: note: candidates are: static wxString wxString::Format(const wxChar*, ...) module_library.cpp:351: error: no matching function for call to 'wxString::Format(const wchar_t*)' /usr/local/include/wx-2.8/wx/string.h:1208: note: candidates are: static wxString wxString::Format(const wxChar*, ...) module_library.cpp:352: error: no matching function for call to 'wxString::Format(const wchar_t*)' /usr/local/include/wx-2.8/wx/string.h:1208: note: candidates are: static wxString wxString::Format(const wxChar*, ...) module_library.cpp:358: error: no
Work on update for math/saga
I am almost a newbie in creating and maintaining ports. With help of ports@ ML I had been able to create math/saga (and math/ggobi) some months ago. Now it is time to update math/saga from version 2.0.4 to 2.0.5. I made some changes to Makefile, especially PORTVERSION, WRKSRC and the post-patch area. In the actual state the port is able to fetch the source, to patch and then to start make. The build process stops with the following error messages. Obviously there is a problem with converting 'wxString' to 'const wchar_t*'. I have no clue what to do next. Some help is greatly appreciated. Thanks in advance, Rainer Hurling -- Making all in saga_cmd Making all in man c++ -DPACKAGE_NAME=\saga\ -DPACKAGE_TARNAME=\saga\ -DPACKAGE_VERSION=\2.0.5\ -DPACKAGE_STRING=\saga\ 2.0.5\ -DPACKAGE_BUGREPORT=\BUG-REPORT-ADDRESS\ -DPACKAGE=\saga\ -DVERSION=\2.0.5\ -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/\ -DSTDC_HEADERS=1 -DHAVE_FLOAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_STDLIB_H=1 -DHAVE_REALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_MEMMOVE=1 -DHAVE_MEMSET=1 -DHAVE_MODF=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRRCHR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -I. -fPIC `/usr/local/bin/wxgtk2-2.8-config --unicode=no --cxxflags` -D_SAGA_LINUX -D_SAGA_UNICODE -D_TYPEDEF_BYTE -D_TYPEDEF_WORD -I.. -DMODULE_LIBRARY_PATH=\/usr/local/lib/saga\ -O2 -pipe -I/usr/local/include -fno-strict-aliasing -MT callback.o -MD -MP -MF .deps/callback.Tpo -c -o callback.o callback.cpp mv -f .deps/callback.Tpo .deps/callback.Po c++ -DPACKAGE_NAME=\saga\ -DPACKAGE_TARNAME=\saga\ -DPACKAGE_VERSION=\2.0.5\ -DPACKAGE_STRING=\saga\ 2.0.5\ -DPACKAGE_BUGREPORT=\BUG-REPORT-ADDRESS\ -DPACKAGE=\saga\ -DVERSION=\2.0.5\ -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/\ -DSTDC_HEADERS=1 -DHAVE_FLOAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_STDLIB_H=1 -DHAVE_REALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_MEMMOVE=1 -DHAVE_MEMSET=1 -DHAVE_MODF=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRRCHR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -I. -fPIC `/usr/local/bin/wxgtk2-2.8-config --unicode=no --cxxflags` -D_SAGA_LINUX -D_SAGA_UNICODE -D_TYPEDEF_BYTE -D_TYPEDEF_WORD -I.. -DMODULE_LIBRARY_PATH=\/usr/local/lib/saga\ -O2 -pipe -I/usr/local/include -fno-strict-aliasing -MT module_library.o -MD -MP -MF .deps/module_library.Tpo -c -o module_library.o module_library.cpp module_library.cpp: In member function 'bool CModule_Library::Create(const wchar_t*, const wchar_t*)': module_library.cpp:139: error: cannot convert 'wxString' to 'const wchar_t*' in argument passing module_library.cpp: In member function 'void CModule_Library::_Set_CMD(CSG_Parameters*, bool)': module_library.cpp:320: error: no matching function for call to 'wxString::Format(const wchar_t*)' /usr/local/include/wx-2.8/wx/string.h:1208: note: candidates are: static wxString wxString::Format(const wxChar*, ...) module_library.cpp:333: error: no matching function for call to 'wxString::Format(const wchar_t*)' /usr/local/include/wx-2.8/wx/string.h:1208: note: candidates are: static wxString wxString::Format(const wxChar*, ...) module_library.cpp:337: error: no matching function for call to 'wxString::Format(const wchar_t*)' /usr/local/include/wx-2.8/wx/string.h:1208: note: candidates are: static wxString wxString::Format(const wxChar*, ...) module_library.cpp:342: error: no matching function for call to 'wxString::Format(const wchar_t*)' /usr/local/include/wx-2.8/wx/string.h:1208: note: candidates are: static wxString wxString::Format(const wxChar*, ...) module_library.cpp:347: error: no matching function for call to 'wxString::Format(const wchar_t*)' /usr/local/include/wx-2.8/wx/string.h:1208: note: candidates are: static wxString wxString::Format(const wxChar*, ...) module_library.cpp:351: error: no matching function for call to 'wxString::Format(const wchar_t*)' /usr/local/include/wx-2.8/wx/string.h:1208: note: candidates are: static wxString wxString::Format(const wxChar*, ...) module_library.cpp:352: error: no matching function for call to 'wxString::Format(const wchar_t*)' /usr/local/include/wx-2.8/wx/string.h:1208: note: candidates are: static wxString wxString::Format(const wxChar*, ...) module_library.cpp:358: error: no