Forums

Full Version: Compilation error on Fedora core 5
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
joevenzon Wrote:Yep, that's exactly it. Can you try R1922?

Code:
bash-3.1$ svn co http://svn.vdrift.net/repos/vdrift trunk
Am I right?
I think this will take a while because of my dial up connection
Yeah I guess we keep forgetting that you don't have SVN checked out. Smile here are the files you need to patch what you've got:
Code:
$ svn diff --old=http://svn.vdrift.net/repos/vdrift/tags/release_12-26-2007 --new=. |grep +++
+++ VDrift.kdevses      (working copy)
+++ include/k1999.h     (revision 1925)
+++ include/sound.h     (working copy)
+++ include/pch.h       (working copy)
+++ include/unittest.h  (working copy)
+++ include/bezier.h    (working copy)
+++ VDrift.kdevelop     (working copy)
+++ SConstruct  (working copy)
+++ src/k1999.cpp       (revision 1925)
+++ src/shader.cpp      (working copy)
+++ src/game.cpp        (working copy)
+++ src/bezier.cpp      (working copy)
+++ src/graphics.cpp    (working copy)
+++ src/track.cpp       (working copy)
+++ src/vamos/body/Gl_Car.cc    (working copy)
+++ src/SConscript      (working copy)
+++ src/sound.cpp       (working copy)
Thanks Thelusiv....

updated those files and compiled fine but the segfault persist.
Code:
bash-3.1$ gdb ./vdrift
GNU gdb Red Hat Linux (6.3.0.0-1.134.fc5rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) run
Starting program: /home/madbad/Desktop/vdrift/vdrift
Reading symbols from shared object read from target memory...done.
Loaded system supplied DSO at 0x68a000
[Thread debugging using libthread_db enabled]
[New Thread -1208236336 (LWP 8186)]
BinReloc successfully initialized.
Executable path: /home/madbad/Desktop/vdrift/vdrift
Data dir: /home/madbad/Desktop/data
Localedir: /home/madbad/Desktop/share/locale
No data_dir found in VDrift.config, using /home/madbad/Desktop/data
/home/madbad/Desktop/data/settings/VDrift.config not found. Attempting to load data from /home/madbad/Desktop/vdrift/data
Found config file /home/madbad/.vdrift/controls.
Found config file /home/madbad/.vdrift/VDrift.config.
No data_dir found in VDrift.config, using /home/madbad/Desktop/vdrift/data
Version of game: development-full
Skin name not found in config file...
/home/madbad/Desktop/share/locale
Directory /home/madbad/Desktop/vdrift/data/skins/SConscript/menus does not exist! Skin SConscript not loaded.
Warning: option-47 is missing its default value. Assuming "".
Run with -verbose for troubleshooting.
Run with -nosound to disable sound.
Run with -benchmark to play a replay and output benchmark data.
0 joystick(s) found:
Card supports: drawbuf4 auxbuf0 antialiasing anisotropy16 cubemapping shaders multitexturing16(8) texture_rectangle depth_texture shadow framebuffer_objects
Card does not support:
Status: Using GLEW 1.5.0
Fragment shaders enabled
109
----- Start Shader Log for simple -----
Link successful. The GLSL vertex shader will run in hardware. The GLSL fragment shader will run in hardware.
----- End Shader Log for simple -----
Loaded shader package simple
109
----- Start Shader Log for full -----
Link successful. The GLSL vertex shader will run in hardware. The GLSL fragment shader will run in hardware.
----- End Shader Log for full -----
Loaded shader package full
109
----- Start Shader Log for full-noshadow -----
Link successful. The GLSL vertex shader will run in hardware. The GLSL fragment shader will run in hardware.
----- End Shader Log for full-noshadow -----
Loaded shader package full-noshadow
197
----- Start Shader Log for blurpass -----
Link successful. The GLSL vertex shader will run in software due to the GLSL fragment shader running in software. The GLSL fragment shader will run in software - unsupported language element used.
----- End Shader Log for blurpass -----
Loaded shader package blurpass
109
----- Start Shader Log for depthgen -----
Link successful. The GLSL vertex shader will run in hardware. The GLSL fragment shader will run in hardware.
----- End Shader Log for depthgen -----
Loaded shader package depthgen
Framebuffer object complete
Framebuffer object complete
[New Thread 34962320 (LWP 8189)]
Obtained audio device:
Frequency: 44100
Format: 32784
Bits per sample: 16
Channels: 2
Silence: 0
Samples: 512
Size: 2048

[Thread 34962320 (zombie) exited]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208236336 (LWP 8186)]
0x00000000 in ?? ()
Code:
(gdb) backtrace
#0  0x00000000 in ?? ()
#1  0x08112149 in ~SHADER (this=0x9a29204) at src/shader.cpp:213
#2  0x08054e75 in ~pair (this=0x9a29200)
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/bits/stl_pair.h:69
#3  0x08054ec5 in __gnu_cxx::new_allocator<std::pair<std> >::destroy (this=0xbfdc8523, __p=0x9a29200)
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/ext/new_allocator.h:107
#4  0x08054ef9 in std::_Rb_tree<std::string, std::pair<std>, std::_Select1st<std::pair<std> >, std::less<std>, std::allocator<std::pair<std> > >::destroy_node (
    this=0x8227bf0, __p=0x9a291f0) at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/bits/stl_tree.h:391
#5  0x08054f7e in std::_Rb_tree<std::string, std::pair<std>, std::_Select1st<std::pair<std> >, std::less<std>, std::allocator<std::pair<std> > >::_M_erase (this=0x8227bf0,
    __x=0x9a291f0) at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/bits/stl_tree.h:1266
#6  0x08054f5e in std::_Rb_tree<std::string, std::pair<std>, std::_Select1st<std::pair<std> >, std::less<std>, std::allocator<std::pair<std> > >::_M_erase (this=0x8227bf0,
    __x=0x9a2b630) at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/bits/stl_tree.h:1264
#7  0x08114bd1 in std::_Rb_tree<std::string, std::pair<std>, std::_Select1st<std::pair<std> >, std::less<std>, std::allocator<std::pair<std> > >::clear (this=0x8227bf0)
    at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/bits/stl_tree.h:692
#8  0x08114c37 in std::map<std::string, SHADER, std::less<std>, std::allocator<std::pair<std> > >::clear (this=0x8227bf0) at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/bits/stl_map.h:501
#9  0x081132ed in SHADER_MANAGER::DeInit (this=0x8227bf0) at src/shader.cpp:15
#10 0x08055012 in ~SHADER_MANAGER (this=0x8227bf0) at include/shader.h:41
#11 0x080553ec in ~GRAPHICS (this=0x8227adc) at include/graphics.h:69
#12 0x0805659c in ~GAME (this=0x8225d60) at include/game.h:58
#13 0x08050b1c in __tcf_1 () at src/main.cpp:14
#14 0x0013ec59 in exit () from /lib/libc.so.6
#15 0x00129254 in __libc_start_main () from /lib/libc.so.6
#16 0x08050a01 in _start ()
(gdb)
Joe, any more ideas?
Okay, should be really fixed this time, R1929.

By the way, MADBAD, you should just check out the SVN code. The SVN source repository is separate from the data repository so it's tiny. You should be able to continue to use your existing data for a while. Just do:

svn checkout http://svn.vdrift.net/repos/vdrift/trunk vdrift

More info:

http://wiki.vdrift.net/Getting_the_development_version
That's the svn version
Quote:bash-3.1$ svn checkout http://svn.vdrift.net/repos/vdrift/trunk vdrift
Estratta revisione 1929.
bash-3.1$

And the segfault on exit is still there
Code:
bash-3.1$ gdb ./vdrift
GNU gdb Red Hat Linux (6.3.0.0-1.134.fc5rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...Dwarf Error: Could not find abbrev number 152812 [in module /home/madbad/Desktop/vdriftCVS/vdrift/vdrift]
Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) run
Starting program: /home/madbad/Desktop/vdriftCVS/vdrift/vdrift
Reading symbols from shared object read from target memory...(no debugging symbols found)...done.
Loaded system supplied DSO at 0xfdf000
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1208891696 (LWP 8826)]
BinReloc successfully initialized.
Executable path: /home/madbad/Desktop/vdriftCVS/vdrift/vdrift
Data dir: /home/madbad/Desktop/vdriftCVS/data
Localedir: /home/madbad/Desktop/vdriftCVS/share/locale
No data_dir found in VDrift.config, using /home/madbad/Desktop/vdriftCVS/data
/home/madbad/Desktop/vdriftCVS/data/settings/VDrift.config not found. Attempting to load data from /home/madbad/Desktop/vdriftCVS/vdrift/data
Found config file /home/madbad/.vdrift/controls.
Found config file /home/madbad/.vdrift/VDrift.config.
No data_dir found in VDrift.config, using /home/madbad/Desktop/vdriftCVS/vdrift/data
Version of game: development-full
Skin name not found in config file...
/home/madbad/Desktop/vdriftCVS/share/locale
Directory /home/madbad/Desktop/vdriftCVS/vdrift/data/skins/SConscript/menus does not exist! Skin SConscript not loaded.
Warning: option-47 is missing its default value. Assuming "".
Run with -verbose for troubleshooting.
Run with -nosound to disable sound.
Run with -benchmark to play a replay and output benchmark data.
0 joystick(s) found:
Card supports: drawbuf4 auxbuf0 antialiasing anisotropy16 cubemapping shaders multitexturing16(8) texture_rectangle depth_texture shadow framebuffer_objects
Card does not support:
Status: Using GLEW 1.5.0
Fragment shaders enabled
109
----- Start Shader Log for simple -----
Link successful. The GLSL vertex shader will run in hardware. The GLSL fragment shader will run in hardware.
----- End Shader Log for simple -----
Loaded shader package simple
109
----- Start Shader Log for full -----
Link successful. The GLSL vertex shader will run in hardware. The GLSL fragment shader will run in hardware.
----- End Shader Log for full -----
Loaded shader package full
109
----- Start Shader Log for full-noshadow -----
Link successful. The GLSL vertex shader will run in hardware. The GLSL fragment shader will run in hardware.
----- End Shader Log for full-noshadow -----
Loaded shader package full-noshadow
197
----- Start Shader Log for blurpass -----
Link successful. The GLSL vertex shader will run in software due to the GLSL fragment shader running in software. The GLSL fragment shader will run in software - unsupported language element used.
----- End Shader Log for blurpass -----
Loaded shader package blurpass
109
----- Start Shader Log for depthgen -----
Link successful. The GLSL vertex shader will run in hardware. The GLSL fragment shader will run in hardware.
----- End Shader Log for depthgen -----
Loaded shader package depthgen
Framebuffer object complete
Framebuffer object complete
[New Thread 37018512 (LWP 8829)]
Obtained audio device:
Frequency: 44100
Format: 32784
Bits per sample: 16
Channels: 2
Silence: 0
Samples: 512
Size: 2048

[Thread 37018512 (zombie) exited]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208891696 (LWP 8826)]
0x00000000 in ?? ()
(gdb) backtrace
#0  0x00000000 in ?? ()
#1  0x08112185 in ?? ()
#2  0x80000001 in ?? ()
#3  0x00780958 in archfname () from /lib/libc.so.6
#4  0x00796120 in __after_morecore_hook () from /lib/libc.so.6
#5  0x0a920e98 in ?? ()
#6  0x00658ca0 in _dl_argv_internal () from /lib/ld-linux.so.2
#7  0x00000000 in ?? ()
(gdb)
Ah, now it's segfaulting somewhere else. But... I have no idea where... the backtrace unfortunately isn't very helpful.
Pages: 1 2