Bug 145800 - fxruby doesnt compile against fox 1.2.x using gcc 4.1
Bug#: 145800 Product:  Gentoo Linux Version: 2006.1 Platform: All
OS/Version: Other Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: dberkholz@gentoo.org Reported By: ttilley@gmail.com
Component: Library
URL: 
Summary: fxruby doesnt compile against fox 1.2.x using gcc 4.1
Keywords:  
Status Whiteboard: 
Opened: 2006-08-31 22:01 0000
Description:   Opened: 2006-08-31 22:01 0000
The following error occurs when compiling fxruby 1.2.6 against fox 1.2.18 using
gcc 4.1:

g++ -I. -I. -I/usr/lib64/ruby/1.8/x86_64-linux
-I/var/tmp/portage/fxruby-1.2.6/work/FXRuby-1.2.6/ext/fox12 -DHAVE_SYS_TIME_H
-DHAVE_SIGNAL_H -I/usr/local/include/fxscintilla -I/usr/local/include/fox-1.2 
-I/usr/include/fox-1.2 -I/usr/include/fxscintilla -fPIC -march=k8 -O2 -pipe 
-fPIC -Iinclude -DWITH_FXSCINTILLA   -c core_wrap.cpp
core_wrap.cpp: In function 'VALUE _fxversion()':
core_wrap.cpp:731: error: 'FXStringFormat' was not declared in this scope
make: *** [core_wrap.o] Error 1


patch otw

------- Comment #1 From Travis Tilley 2006-08-31 22:03:18 0000 -------
Created an attachment (id=95614) [details]
gcc 4.1 patch for fox 1.2.x headers

gcc 4.1 fix for fox 1.2.x from debian bug #355983
http://bugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=355983

------- Comment #2 From Donnie Berkholz 2006-08-31 23:08:46 0000 -------
I should probably fix this since I unmasked the new fox stuff.

------- Comment #3 From Travis Tilley 2006-09-01 06:38:05 0000 -------
Created an attachment (id=95642) [details]
gcc 4.1 patch for fox 1.4

instead of opening a new bug for the same issue, here is a similar fix for fox
1.4.x (also obtained from debian)

------- Comment #4 From Travis Tilley 2006-09-01 07:18:33 0000 -------
my bad... I just realized i forgot to run dos2unix on either of those files
after re-downloading them from here and trying to use them. ^^;

------- Comment #5 From M. Edward Borasky 2006-09-03 16:34:32 0000 -------
1. Is this the same bug as 145083??
2. I think I have  the latest fox ebuilds already ... 1.0.53 and 1.2.18. Is
this going to mean another fox update??

------- Comment #6 From M. Edward Borasky 2006-09-03 17:33:56 0000 -------
"gem install fxruby" will give the same error if you ask it to install fxruby
1.2.6. I haven't tried the newer ones, but I'm guessing they break too.
Strangely enough, "gem" finishes the install and claims a successful install!

I filed a bug on RubyForge against the "gem install fxruby" -- I don't think a
compile error should be ignored like that.

------- Comment #7 From Marcin Gryszkalis 2006-09-20 14:14:20 0000 -------
In fact it's dupe of 145083, though here we have some progress...

------- Comment #8 From Marcin Gryszkalis 2006-09-20 14:24:30 0000 -------
As it's mentioned in trail of bug submitted by Ed
http://rubyforge.org/tracker/index.php?func=detail&aid=5615&group_id=300&atid=1223
fxruby-1.2 is not developed anymore, is there any real problem in running
forward fxruby-1.6? Or it's just lack of maintainer/time? 
I'm really new around dev-ruby but it seems that most people need fxruby to
build freeride (only freeride and net-irc/xdcc-fetch) depend on fxruby. Won't
freeride work with latest fxruby?

------- Comment #9 From Donnie Berkholz 2006-09-23 22:08:22 0000 -------
*** Bug 145083 has been marked as a duplicate of this bug. ***

------- Comment #10 From Donnie Berkholz 2006-09-23 22:18:28 0000 -------
(In reply to comment #8)
> Won't freeride work with latest fxruby?

Nope, it currently only works with fox 1.2 series.

------- Comment #11 From Donnie Berkholz 2006-09-23 23:47:23 0000 -------
Fixed in CVS in fox-1.4.34-r1 and fox-1.2.18-r1, thanks!

------- Comment #12 From Jakub Moc (RETIRED) 2006-09-26 03:04:54 0000 -------
*** Bug 149155 has been marked as a duplicate of this bug. ***