From owner-freebsd-ports@FreeBSD.ORG Sun Aug 29 18:48:28 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 14F0D106566B for ; Sun, 29 Aug 2010 18:48:28 +0000 (UTC) (envelope-from rhurlin@gwdg.de) Received: from amailer.gwdg.de (amailer.gwdg.de [134.76.10.18]) by mx1.freebsd.org (Postfix) with ESMTP id 421FB8FC18 for ; Sun, 29 Aug 2010 18:48:27 +0000 (UTC) Received: from p578b68b8.dip0.t-ipconnect.de ([87.139.104.184] helo=krabat.raven.hur) by mailer.gwdg.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1OpmvY-0000gu-PR for freebsd-ports@freebsd.org; Sun, 29 Aug 2010 20:48:25 +0200 Message-ID: <4C7AAB74.7040103@gwdg.de> Date: Sun, 29 Aug 2010 20:48:20 +0200 From: Rainer Hurling User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; de-DE; rv:1.9.2.8) Gecko/20100806 Thunderbird/3.1.2 MIME-Version: 1.0 To: "freebsd-ports@freebsd.org" References: <4C769F2A.7020003@gwdg.de> In-Reply-To: <4C769F2A.7020003@gwdg.de> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated: Id:rhurlin X-Spam-Level: - X-Virus-Scanned: (clean) by exiscan+sophie Subject: Re: [SOLVED] Work on update for math/saga X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Aug 2010 18:48:28 -0000 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.. > -D"MODULE_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.. > -D"MODULE_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 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:362: 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:368: 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:369: 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:370: 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:371: 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:372: 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: In member function 'bool > CModule_Library::_Get_CMD(CSG_Parameters*)': > module_library.cpp:420: 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:424: 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:432: 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:440: error: call of overloaded 'Set_Value(const > wxChar*)' is ambiguous > ../saga_api/parameters.h:1018: note: candidates are: bool > CSG_Parameter::Set_Value(int) > ../saga_api/parameters.h:1020: note: bool > CSG_Parameter::Set_Value(void*) > module_library.cpp:447: 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:454: 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:459: 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:466: 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:468: error: call of overloaded 'Set_Value(const > wxChar*)' is ambiguous > ../saga_api/parameters.h:1018: note: candidates are: bool > CSG_Parameter::Set_Value(int) > ../saga_api/parameters.h:1020: note: bool > CSG_Parameter::Set_Value(void*) > module_library.cpp:473: 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:487: error: call of overloaded 'Set_Value(const > wxChar*)' is ambiguous > ../saga_api/parameters.h:1018: note: candidates are: bool > CSG_Parameter::Set_Value(int) > ../saga_api/parameters.h:1020: note: bool > CSG_Parameter::Set_Value(void*) > module_library.cpp:493: 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:502: error: call of overloaded 'Set_Value(const > wxChar*)' is ambiguous > ../saga_api/parameters.h:1018: note: candidates are: bool > CSG_Parameter::Set_Value(int) > ../saga_api/parameters.h:1020: note: bool > CSG_Parameter::Set_Value(void*) > module_library.cpp:507: 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:520: 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:521: 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:522: 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:523: 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:524: 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: In member function 'bool > CModule_Library::_Create_DataObjects(CSG_Parameters*)': > module_library.cpp:575: 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:583: error: no matching function for call to > 'Print_Error(const wchar_t*, wxString&)' > callback.h:92: note: candidates are: void Print_Error(const wchar_t*) > callback.h:93: note: void Print_Error(const wchar_t*, const wchar_t*) > module_library.cpp:594: 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: In member function 'bool > CModule_Library::_Create_DataObject(CSG_Parameter*, const wxChar*)': > module_library.cpp:625: error: cannot convert 'const wxChar*' to 'const > wchar_t*' for argument '1' to 'bool SG_File_Exists(const wchar_t*)' > module_library.cpp: In member function 'bool > CModule_Library::_Create_DataObject_List(CSG_Parameter*, wxString)': > module_library.cpp:717: error: no matching function for call to > 'Print_Error(const wchar_t*, wxString&)' > callback.h:92: note: candidates are: void Print_Error(const wchar_t*) > callback.h:93: note: void Print_Error(const wchar_t*, const wchar_t*) > module_library.cpp: In member function 'bool > CModule_Library::_Destroy_DataObjects(bool, CSG_Parameters*)': > module_library.cpp:775: 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*, ...) > *** Error code 1 > Stop in /usr/ports/math/saga/work/saga-2.0.5/src/saga_core/saga_cmd.