# Build troubles on fedora 11

**URL:** <https://www.ruby-forum.com/t/build-troubles-on-fedora-11/174517>\
**Category:** wxRuby\
**Created:** [August 27, 2009, 11:51pm UTC](https://www.ruby-forum.com/t/build-troubles-on-fedora-11/174517 "2009-08-27T23:51:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dmitry\_aSU](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/59ef9b/32.png) [@Dmitry\_aSU](https://www.ruby-forum.com/u/Dmitry_aSU)\
**Post date:** [August 27, 2009, 11:51pm UTC](https://www.ruby-forum.com/t/build-troubles-on-fedora-11/174517/1 "2009-08-27T23:51:58Z")

</div>

Because of “official” wxruby gem won’t work on Fedora 11 distro

eveel@notazik{/usr/lib/ruby/gems/1.8/gems/wxruby-2.0.0-x86-linux/samples  
/minimal}% ./minimal.rb  
/usr/lib/ruby/gems/1.8/gems/wxruby-2.0.0-x86-linux/lib/wxruby2.so:  
/usr/lib  
/ruby/gems/1.8/gems/wxruby-2.0.0-x86-linux/lib/wxruby2.so: symbol  
\_ZN13wxAuiNotebook16AdvanceSelectionEb, version WXU\_2.8.5 not defined in  
file  
libwx\_gtk2u\_aui-2.8.so.0 with link time reference -  
/usr/lib/ruby/gems/1.8/gems  
/wxruby-2.0.0-x86-linux/lib/wxruby2.so (LoadError)  
from /usr/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:31:in  
`require' from /usr/lib/ruby/gems/1.8/gems/wxruby-2.0.0-x86-linux/lib/wx.rb:12 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in`gem\_original\_require’  
from /usr/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:36:in  
`require’  
from ./minimal.rb:8

I’ve decided to build wxruby by myself, but all my positive wishes are  
absolutely failed because of some issues.

eveel{~/wxruby}% rake  
(in /home/eveel/wxruby)  
Enabling DYNAMIC build  
Enabling RELEASE build  
Enabling UNICODE build  
The following wxWidgets features are not available and will be skipped:  
PrinterDC  
g++ -c -I/usr/lib/wx/include/gtk2-unicode-release-2.8  
-I/usr/include/wx-2.8  
-D\_FILE\_OFFSET\_BITS=64 -D\_LARGE\_FILES -D\_\_WXGTK\_\_  
-DwxABI\_VERSION=208010 -O2  
-g -pipe -Wall -Wp,-D\_FORTIFY\_SOURCE=2 -fexceptions -fstack-protector  
–param=ssp-buffer-size=4 -m32 -march=i586 -mtune=generic  
-fasynchronous-unwind-  
tables -fno-strict-aliasing -fPIC -Wno-unused-function -I. -I  
/usr/lib/ruby/1.8/i386-linux -o obj/AboutDialogInfo.o  
src/AboutDialogInfo.cpp  
{ some g++ invocations }  
swig -I/usr/lib/wx/include/gtk2-unicode-release-2.8  
-I/usr/include/wx-2.8  
-D\_FILE\_OFFSET\_BITS=64 -D\_LARGE\_FILES -D\_\_WXGTK\_\_  
-DwxABI\_VERSION=208010 -Iswig/custom -w401 -w801 -w515 -c++ -ruby -o  
src/AnimationCtrl.cpp swig/classes  
/AnimationCtrl.i  
ruby swig/renamer.rb src/AnimationCtrl.cpp  
ruby swig/fixplatform.rb src/AnimationCtrl.cpp  
ruby swig/fixmodule.rb src/AnimationCtrl.cpp  
Class: AnimationCtrl  
: Control  
ERROR! swig/fixmodule.rb Didn’t find swig class  
rake aborted!  
Command failed with status (1): [ruby swig/fixmodule.rb  
src/AnimationCtrl.c…]

(See full trace by running task with --trace)

What’s wrong?

gcc: 4.4.1  
ruby: 1.8.6 (p369)  
swig: 1.3.39  
wx: 2.8.10  
wxruby: trunk (last updated before this post were written)

---

<div class="post-metadata">

**Author:** ![Dmitry\_aSU](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/59ef9b/32.png) [@Dmitry\_aSU](https://www.ruby-forum.com/u/Dmitry_aSU)\
**Post date:** [August 28, 2009, 5:17am UTC](https://www.ruby-forum.com/t/build-troubles-on-fedora-11/174517/2 "2009-08-28T05:17:47Z")

</div>

Dmitry a. Ustalov wrote:

> I’ve decided to build wxruby by myself, but all my positive wishes are  
> absolutely failed because of some issues

> …

> gcc: 4.4.1  
> ruby: 1.8.6 (p369)  
> swig: 1.3.39  
> wx: 2.8.10  
> wxruby: trunk (last updated before this post were written)

Your SWIG is too new. Since we released 1.0.1, SWIG released a new  
version that broke some features of the generated code we rely on.  
Please try downgrading to 1.3.38.

alex

---

<div class="post-metadata">

**Author:** ![Dmitry\_aSU](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/59ef9b/32.png) [@Dmitry\_aSU](https://www.ruby-forum.com/u/Dmitry_aSU)\
**Post date:** [August 30, 2009, 8:48pm UTC](https://www.ruby-forum.com/t/build-troubles-on-fedora-11/174517/3 "2009-08-30T20:48:13Z")

</div>

Alex F. wrote:

> Your SWIG is too new. Since we released 1.0.1, SWIG released a new  
> version that broke some features of the generated code we rely on.  
> Please try downgrading to 1.3.38.
> 
> alex

Very well, I’ve downloaded and installed the SWIG 1.3.38, but rake  
fails:

obj/wx.o: In function `wxRuby_IterateTracking': /usr/include/wx-2.8/wx/geometry.h:753: multiple definition of `cWxEvtHandler’  
obj/EvtHandler.o:/usr/include/wx-2.8/wx/geometry.h:112: first defined  
here  
obj/wx.o: In function `wxRuby_IterateTracking': /usr/include/wx-2.8/wx/thread.h:594: multiple definition of `cWxEvent’  
obj/Event.o:/usr/include/wx-2.8/wx/thread.h:554: first defined here  
obj/wx.o: In function `wxRuby_IterateTracking': /usr/include/wx-2.8/wx/thread.h:554: multiple definition of `cWxWindow’  
obj/Window.o:/usr/lib/ruby/1.8/i386-linux/ruby.h:696: first defined here  
obj/wx.o: In function  
`PtrToRbObjHash_wxImplementation_HashTable::begin()': /usr/include/wx-2.8/wx/geometry.h:113: multiple definition of `cWxTopLevelWindow’  
obj/TopLevelWindow.o:/usr/include/wx-2.8/wx/thread.h:554: first defined  
here  
obj/wx.o: In function `_wxHashTableBase2::GetFirstNode(unsigned int, _wxHashTable_NodeBase**)': /usr/include/wx-2.8/wx/geometry.h:107: multiple definition of `cWxSize’  
obj/Size.o:/usr/include/wx-2.8/wx/thread.h:554: first defined here

It’s sad ☹
