#4217 closed defect (wontfix)
BUG: rb-wxruby fails compilation.
Reported by: | andersl@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.0 |
Keywords: | Cc: | donnie@…,markd@… | |
Port: |
Description
I tried to compile it with both 4.0 and 3.3 My system is Tiger which was upgraded from Panther
Error message below.
$ sudo port install -v rb-wxruby ---> Building rb-wxruby with target all g++ -fno-common -O -pipe -I/opt/local/include -fno-common -pipe -fno-common `wx-config -- cxxflags` -I. -I/opt/local/lib/ruby/1.8/powerpc-darwin8.2.0 -I/opt/local/lib/ruby/1.8/powerpc- darwin8.2.0 -I. -O -pipe -I/opt/local/include -x objective-c++ -c htmlprocessor.cpp htmlprocessor.cpp: In static member function `static VALUE
WxHtmlProcessor::Process(int, VALUE*, long unsigned int)':
htmlprocessor.cpp:82: error: ambiguous overload for `wxString& = char*'
operator
/usr/include/wx-2.5/wx/string.h:643: error: candidates are: wxString&
wxString::operator=(int) <near match>
/usr/include/wx-2.5/wx/string.h:857: error: wxString&
wxString::operator=(wchar_t) <near match>
/usr/include/wx-2.5/wx/string.h:864: error: wxString&
wxString::operator=(const wxWCharBuffer&) <near match>
/usr/include/wx-2.5/wx/string.h:919: error: wxString&
wxString::operator=(const wxString&) <near match>
htmlprocessor.cpp:86: error: cannot convert wxString' to
const char*' for
argument
1' to
VALUE rb_str_new2(const char*)'
htmlprocessor.cpp: In member function `virtual wxString
wxHtmlProcessorHelper::Process(const wxString&) const':
htmlprocessor.cpp:164: error: cannot convert const wxString' to
const char*'
for argument
1' to
VALUE rb_str_new2(const char*)'
htmlprocessor.cpp:166: error: call of overloaded `wxString(char*)' is ambiguous /usr/include/wx-2.5/wx/string.h:676: error: candidates are:
wxString::wxString(const wxWCharBuffer&) <near match>
/usr/include/wx-2.5/wx/string.h:660: error:
wxString::wxString(wchar_t, long unsigned int = 1) <near match>
/usr/include/wx-2.5/wx/string.h:657: error:
wxString::wxString(const wxString&) <near match>
/usr/include/wx-2.5/wx/string.h:649: error:
wxString::wxString(int) <near match>
make: * [htmlprocessor.o] Error 1
Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/
file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_ruby_rb-wxruby/
work/wxruby-0.6-src/src" && make all RUBY="/opt/local/bin/ruby -rvendor-specific"" returned error 2
Command output: g++ -fno-common -O -pipe -I/opt/local/include -fno-common -pipe -fno-
common wx-config --cxxflags
-I. -I/opt/local/lib/ruby/1.8/powerpc-darwin8.2.0 -I/opt/local/
lib/ruby/1.8/powerpc-darwin8.2.0 -I. -O -pipe -I/opt/local/include -x objective-c++ -c
htmlprocessor.cpp
htmlprocessor.cpp: In static member function `static VALUE
WxHtmlProcessor::Process(int, VALUE*, long unsigned int)':
htmlprocessor.cpp:82: error: ambiguous overload for `wxString& = char*'
operator
/usr/include/wx-2.5/wx/string.h:643: error: candidates are: wxString&
wxString::operator=(int) <near match>
/usr/include/wx-2.5/wx/string.h:857: error: wxString&
wxString::operator=(wchar_t) <near match>
/usr/include/wx-2.5/wx/string.h:864: error: wxString&
wxString::operator=(const wxWCharBuffer&) <near match>
/usr/include/wx-2.5/wx/string.h:919: error: wxString&
wxString::operator=(const wxString&) <near match>
htmlprocessor.cpp:86: error: cannot convert wxString' to
const char*' for
argument
1' to
VALUE rb_str_new2(const char*)'
htmlprocessor.cpp: In member function `virtual wxString
wxHtmlProcessorHelper::Process(const wxString&) const':
htmlprocessor.cpp:164: error: cannot convert const wxString' to
const char*'
for argument
1' to
VALUE rb_str_new2(const char*)'
htmlprocessor.cpp:166: error: call of overloaded `wxString(char*)' is ambiguous /usr/include/wx-2.5/wx/string.h:676: error: candidates are:
wxString::wxString(const wxWCharBuffer&) <near match>
/usr/include/wx-2.5/wx/string.h:660: error:
wxString::wxString(wchar_t, long unsigned int = 1) <near match>
/usr/include/wx-2.5/wx/string.h:657: error:
wxString::wxString(const wxString&) <near match>
/usr/include/wx-2.5/wx/string.h:649: error:
wxString::wxString(int) <near match>
make: * [htmlprocessor.o] Error 1
Warning: the following items did not execute (for rb-wxruby): com.apple.activate com.apple.build com.apple.destroot com.apple.archive com.apple.install
Change History (8)
comment:1 Changed 19 years ago by lists@…
comment:2 Changed 19 years ago by lists@…
didn't solve my problem. :( I have the same error as above. Also have a Tiger system upgraded from Panther. Below is my environment, is my LD_LIBRARY_PATH supposed to be that?
MANPATH=/opt/local/share/man: TERM_PROGRAM=Apple_Terminal TERM=xterm-color SHELL=/bin/bash TERM_PROGRAM_VERSION=133 USER=derek LD_LIBRARY_PATH=/usr/local/lib CF_USER_TEXT_ENCODING=0x1F5:0:0 PATH=/Users/derek/bin/:/opt/local/bin:/usr/local/bin:/usr/local/mysql/bin:/bin:/sbin:/usr/bin:/usr/ sbin PWD=/Users/derek EDITOR=/usr/bin/vi SHLVL=1 HOME=/Users/derek LC_CTYPE=en_US.UTF-8 INFOPATH=/opt/local/share/info: _=/usr/bin/env
comment:3 Changed 19 years ago by mww@…
Summary: | port rb-wxruby fails compilation. → BUG: rb-wxruby fails compilation. |
---|
comment:4 Changed 19 years ago by donnie@…
Cc: | donnie@… added |
---|
I also have the same build problems, but I have Tiger from a new laptop, not an upgrade from Panter. Here is the output:
$ sudo port -v install rb-wxruby
---> Building rb-wxruby with target all
g++ -fno-common -O -pipe -I/opt/local/include -fno-common -pipe -fno-common wx-config --cxxflags
-I. -I/opt/local/lib/ruby/1.8/powerpc-darwin8.4.0 -I/opt/local/lib/ruby/1.8/powerpc-darwin8.4.0 -I. -O -pipe -I/opt/local/include -x objective-c++ -c htmlprocessor.cpp
htmlprocessor.cpp: In static member function `static VALUE WxHtmlProcessor::Process(int, VALUE*, VALUE)':
htmlprocessor.cpp:82: error: ambiguous overload for 'operator=' in 'cppParm0 = rb_str2cstr(rubyParm0, 0u)'
/usr/include/wx-2.5/wx/string.h:643: note: candidates are: wxString& wxString::operator=(int) <near match>
/usr/include/wx-2.5/wx/string.h:856: note: wxString& wxString::operator=(wxChar) <near match>
/usr/include/wx-2.5/wx/string.h:863: note: wxString& wxString::operator=(const wxWCharBuffer&) <near match>
/usr/include/wx-2.5/wx/string.h:919: note: wxString& wxString::operator=(const wxString&) <near match>
htmlprocessor.cpp:86: error: cannot convert 'wxString' to 'const char*' for argument '1' to 'VALUE rb_str_new2(const char*)'
htmlprocessor.cpp: In member function `virtual wxString wxHtmlProcessorHelper::Process(const wxString&) const':
htmlprocessor.cpp:164: error: cannot convert 'const wxString' to 'const char*' for argument '1' to 'VALUE rb_str_new2(const char*)'
htmlprocessor.cpp:166: error: call of overloaded 'wxString(char*)' is ambiguous
/usr/include/wx-2.5/wx/string.h:676: note: candidates are: wxString::wxString(const wxWCharBuffer&) <near match>
/usr/include/wx-2.5/wx/string.h:659: note: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.5/wx/string.h:657: note: wxString::wxString(const wxString&) <near match>
/usr/include/wx-2.5/wx/string.h:649: note: wxString::wxString(int) <near match>
make: * [htmlprocessor.o] Error 1
Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_ruby_rb-wxruby/work/wxruby-0.6-src/src" && make all RUBY="/opt/local/bin/ruby -rvendor-specific"" returned error 2
Command output: g++ -fno-common -O -pipe -I/opt/local/include -fno-common -pipe -fno-common wx-config --cxxflags
-I. -I/opt/local/lib/ruby/1.8/powerpc-darwin8.4.0 -I/opt/local/lib/ruby/1.8/powerpc-darwin8.4.0 -I. -O -pipe -I/opt/local/include -x objective-c++ -c htmlprocessor.cpp
htmlprocessor.cpp: In static member function `static VALUE WxHtmlProcessor::Process(int, VALUE*, VALUE)':
htmlprocessor.cpp:82: error: ambiguous overload for 'operator=' in 'cppParm0 = rb_str2cstr(rubyParm0, 0u)'
/usr/include/wx-2.5/wx/string.h:643: note: candidates are: wxString& wxString::operator=(int) <near match>
/usr/include/wx-2.5/wx/string.h:856: note: wxString& wxString::operator=(wxChar) <near match>
/usr/include/wx-2.5/wx/string.h:863: note: wxString& wxString::operator=(const wxWCharBuffer&) <near match>
/usr/include/wx-2.5/wx/string.h:919: note: wxString& wxString::operator=(const wxString&) <near match>
htmlprocessor.cpp:86: error: cannot convert 'wxString' to 'const char*' for argument '1' to 'VALUE rb_str_new2(const char*)'
htmlprocessor.cpp: In member function `virtual wxString wxHtmlProcessorHelper::Process(const wxString&) const':
htmlprocessor.cpp:164: error: cannot convert 'const wxString' to 'const char*' for argument '1' to 'VALUE rb_str_new2(const char*)'
htmlprocessor.cpp:166: error: call of overloaded 'wxString(char*)' is ambiguous
/usr/include/wx-2.5/wx/string.h:676: note: candidates are: wxString::wxString(const wxWCharBuffer&) <near match>
/usr/include/wx-2.5/wx/string.h:659: note: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.5/wx/string.h:657: note: wxString::wxString(const wxString&) <near match>
/usr/include/wx-2.5/wx/string.h:649: note: wxString::wxString(int) <near match>
make: * [htmlprocessor.o] Error 1
Warning: the following items did not execute (for rb-wxruby): com.apple.activate com.apple.build com.apple.destroot com.apple.archive com.apple.install Error: /opt/local/bin/port: Status 1 encountered during processing.
comment:5 Changed 18 years ago by pipping@…
Milestone: | → Available Ports |
---|
comment:6 Changed 18 years ago by pipping@…
Milestone: | Available Ports → Port Bugs |
---|
comment:7 Changed 18 years ago by markd@…
Cc: | markd@… added |
---|---|
Resolution: | → wontfix |
Status: | new → closed |
This port has been deleted because it is outdated and incompatible with latest wxWidgets. Someone needs to port wxruby2.
htmlprocessor.cpp is part of wxWidgets[1] and is required to build rb-wxruby, but it's not picked up as a dependency.
try "sudo port install -v wxWidgets" first.
http://www.wxwidgets.org/