I also had the same problem compiling on Fedora 15
$ uname -r
2.6.38.6-27.fc15.x86_64

$ g++ --version
g++ (GCC) 4.6.0 20110509 (Red Hat 4.6.0-7)


g++ -DHAVE_CONFIG_H -I. -I..   -I. -I..  -I/usr/include/libxml2 
-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/libpng12   
-I./tools -O2 -Wno-long-long -MT libtools_a-tDirectories.o -MD -MP -MF 
.deps/libtools_a-tDirectories.Tpo -c -o libtools_a-tDirectories.o `test -f 
'tools/tDirectories.cpp' || echo './'`tools/tDirectories.cpp
tools/tDirectories.cpp:502:26: error: uninitialized const ‘st_Config’ 
[-fpermissive]
tools/tDirectories.cpp:474:7: note: ‘const class tPathConfig’ has no 
user-provided default constructor
tools/tDirectories.cpp:523:24: error: uninitialized const ‘st_Data’ 
[-fpermissive]
tools/tDirectories.cpp:505:7: note: ‘const class tPathData’ has no 
user-provided default constructor
tools/tDirectories.cpp:549:23: error: uninitialized const ‘st_Var’ 
[-fpermissive]
tools/tDirectories.cpp:526:7: note: ‘const class tPathVar’ has no user-provided 
default constructor
tools/tDirectories.cpp:571:30: error: uninitialized const ‘st_Screenshot’ 
[-fpermissive]
tools/tDirectories.cpp:552:7: note: ‘const class tPathScreenshot’ has no 
user-provided default constructor
tools/tDirectories.cpp:633:28: error: uninitialized const ‘st_Resource’ 
[-fpermissive]
tools/tDirectories.h:59:7: note: ‘const class tPathResource’ has no 
user-provided default constructor
make[3]: *** [libtools_a-tDirectories.o] Error 1


Adding default constructors and it now compiles, I also moved the
classes out of the .cpp file and into the .h file - I'm sure there is a
reason why they are there?

I attached this a patch.

** Patch added: "armagetronad-0.2.8.3.1.patch"
   
https://bugs.launchpad.net/ubuntu/+source/armagetronad/+bug/765939/+attachment/2154251/+files/armagetronad-0.2.8.3.1.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/765939

Title:
  armagetronad version 0.2.8.3.1-1 failed to build on i386

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to