Bugs: Browse | Submit New | Admin

[#5615] gcc 4.1.1 on Gentoo Linux gets a compile error installing the 1.2.6 gem

Date:
2006-09-03 20:28
Priority:
3
Submitted By:
Ed Borasky (znmeb)
Assigned To:
Lyle Johnson (lyle)
Category:
Core
State:
Closed
Summary:
gcc 4.1.1 on Gentoo Linux gets a compile error installing the 1.2.6 gem

Detailed description
When I typed "gem install fxruby" and selected the 1.2.6 non-Windows version on my Gentoo Linux box with gcc
4.1.1, this is what happened:


Select which gem to install for your platform (i686-linux)
 1. fxruby 1.6.1 (ruby)
 2. fxruby 1.6.1 (mswin32)
 3. fxruby 1.6.0 (mswin32)
 4. fxruby 1.6.0 (ruby)
 5. fxruby 1.4.6 (ruby)
 6. fxruby 1.4.6 (mswin32)
 7. fxruby 1.4.5 (ruby)
 8. fxruby 1.4.5 (mswin32)
 9. fxruby 1.4.4 (ruby)
 10. fxruby 1.4.4 (mswin32)
 11. fxruby 1.4.3 (ruby)
 12. fxruby 1.4.3 (mswin32)
 13. fxruby 1.4.2 (mswin32)
 14. fxruby 1.4.2 (ruby)
 15. fxruby 1.4.1 (mswin32)
 16. fxruby 1.4.1 (ruby)
 17. fxruby 1.4.0 (ruby)
 18. fxruby 1.2.6 (mswin32)
 19. fxruby 1.2.6 (ruby)
 20. fxruby 1.2.5 (ruby)
 21. fxruby 1.2.5 (mswin32)
 22. fxruby 1.2.4 (ruby)
 23. fxruby 1.2.4 (mswin32)
 24. fxruby 1.2.3 (ruby)
 25. fxruby 1.2.3 (mswin32)
 26. fxruby 1.2.2 (ruby)
 27. fxruby 1.2.2 (mswin32)
 28. fxruby 1.2.1 (mswin32)
 29. fxruby 1.2.1 (ruby)
 30. Cancel installation
> 19

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
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
Building native extensions.  This could take a while...
ruby extconf.rb install fxruby
checking for sys/time.h... yes
checking for signal.h... yes
checking for png_create_read_struct() in -lpng... yes
checking for deflate() in -lz... yes
checking for jpeg_mem_init() in -ljpeg... yes
checking for TIFFSetErrorHandler() in -ltiff... yes
checking for XShmQueryVersion() in -lXext... yes
checking for XFindContext() in -lX11... yes
checking for glXCreateContext() in -lGL... yes
checking for gluNewQuadric() in -lGLU... yes
creating Makefile

make
i686-pc-linux-gnu-gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -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 -O3 -march=pentium3  -
fPIC -O0 -Iinclude -DWITH_FXSCINTILLA  -c librb.c
g++ -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -DHAVE_SYS_TIME_H -DHAVE_SIGNAL_H
 -I/usr/local/include/fxscintilla -I/usr/local/include/fox-1.2  -I/usr/include/f
ox-1.2 -I/usr/include/fxscintilla -fPIC -O3 -march=pentium3  -fPIC -O0 -Iinclude
 -DWITH_FXSCINTILLA   -c core_wrap.cpp

make install
g++ -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -DHAVE_SYS_TIME_H -DHAVE_SIGNAL_H
 -I/usr/local/include/fxscintilla -I/usr/local/include/fox-1.2  -I/usr/include/f
ox-1.2 -I/usr/include/fxscintilla -fPIC -O3 -march=pentium3  -fPIC -O0 -Iinclude
 -DWITH_FXSCINTILLA   -c core_wrap.cpp

make clean
Successfully installed fxruby-1.2.6
Installing ri documentation for fxruby-1.2.6...
Installing RDoc documentation for fxruby-1.2.6...

-----------------------------------------------------------------------
So what happened? It seems to have thought it installed, but it got an error. Is this a clean install??

Add A Comment: Notepad

Please login


Followup

Message
Date: 2006-09-08 21:15
Sender: Lyle Johnson

It is not a clean install, due to the compile errors for core_wrap.cpp
(and I suspect others of the C++ FXRuby source files). I'm pretty
sure the problem that you're seeing can be traced to changes
in the GCC 4.0 release series (i.e. when FXRuby 1.2.6 was released
in April 2005, it did compile correctly under the current version
of GCC at that time).

If upgrading to the latest version of FOX and FXRuby isn't an
option for you, you might check with the FOX users mailing list
for suggestions about how to work around this problem; but I'm
not going to be making any more changes to the FXRuby 1.2.x code
base since it's a couple of generations old.

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

Field Old Value Date By
status_idOpen2006-10-14 13:27lyle
close_date2006-10-14 13:272006-10-14 13:27lyle
resolution_idNone2006-09-08 21:15lyle