Problems building SVN

Trying to build your own version of Vega Strike and having problems? Unix users, paste your config.log here (stderr output alone is not helpful).
Post Reply
Nicko
Trader
Trader
Posts: 17
Joined: Wed Aug 23, 2006 1:33 pm
Location: Italy

Problems building SVN

Post by Nicko »

I encountered this problem when building vegastrike from revision 10710
(previous revisions were built successfully)

These are the last lines of the output:

Code: Select all

src/python/vegastrike-unit_exports1.o: In function `UnitWrapper::AutoPilotTo(UnitWrapper, bool)':
src/python/unit_wrapper_class.h:66: undefined reference to `Unit::AutoPilotTo(Unit*, bool, int)'
src/cmd/vegastrike-asteroid.o: In function `GameUnit<Asteroid>::UpdatePhysics2(Transformation const&, Transformation const&, Vector const&, float, Matrix const&, Vector const&, bool, UnitCollection*)':
./src/cmd/unit_physics.cpp:92: undefined reference to `ClientState::ClientState(unsigned short, Transformation, Vector, Vector, unsigned int)'
src/cmd/vegastrike-building.o: In function `GameUnit<Building>::UpdatePhysics2(Transformation const&, Transformation const&, Vector const&, float, Matrix const&, Vector const&, bool, UnitCollection*)':
src/cmd/unit_physics.cpp:92: undefined reference to `ClientState::ClientState(unsigned short, Transformation, Vector, Vector, unsigned int)'
src/cmd/vegastrike-nebula.o: In function `GameUnit<Nebula>::UpdatePhysics2(Transformation const&, Transformation const&, Vector const&, float, Matrix const&, Vector const&, bool, UnitCollection*)':
src/cmd/unit_physics.cpp:92: undefined reference to `ClientState::ClientState(unsigned short, Transformation, Vector, Vector, unsigned int)'
src/cmd/vegastrike-planet.o: In function `GameUnit<Planet>::UpdatePhysics2(Transformation const&, Transformation const&, Vector const&, float, Matrix const&, Vector const&, bool, UnitCollection*)':
src/cmd/unit_physics.cpp:92: undefined reference to `ClientState::ClientState(unsigned short, Transformation, Vector, Vector, unsigned int)'
src/cmd/vegastrike-planet.o: In function `GameUnit<Unit>::UpdatePhysics2(Transformation const&, Transformation const&, Vector const&, float, Matrix const&, Vector const&, bool, UnitCollection*)':
src/cmd/unit_physics.cpp:92: undefined reference to `ClientState::ClientState(unsigned short, Transformation, Vector, Vector, unsigned int)'
src/cmd/vegastrike-unit_factory.o:src/cmd/unit_physics.cpp:92: more undefined references to `ClientState::ClientState(unsigned short, Transformation, Vector, Vector, unsigned int)' follow
libgfx.a(cockpit_generic.o): In function `Cockpit::UpdAutoPilot()':
src/gfx/cockpit_generic.cpp:367: undefined reference to `Unit::AutoPilotTo(Unit*, bool, int)'
libgfx.a(cockpit_generic.o): In function `Cockpit::Autopilot(Unit*)':
src/gfx/cockpit_generic.cpp:274: undefined reference to `Unit::AutoPilotTo(Unit*, bool, int)'
src/gfx/cockpit_generic.cpp:276: undefined reference to `Unit::AutoPilotTo(Unit*, bool, int)'
collect2: ld returned 1 exit status
make: *** [vegastrike] Error 1
If you need to know something else, just tell me...
You do not have the required permissions to view the files attached to this post.
ace123
Lead Network Developer
Lead Network Developer
Posts: 2560
Joined: Sun Jan 12, 2003 9:13 am
Location: Palo Alto CA
Contact:

Post by ace123 »

EDIT: also, the latest revision ATM is 10712, so maybe that fixes this... try updating first

That's very strange...sounds like some files didn't get rebuilt properly.

You may just want to "make clean" and then rebuild from scratch...that is more likely to work.

If you want to delete all the offending .o files, you can try delteing all the .o and .a files in the error messages, but there may be too many and it isn't guarenteed to solve anything.

If it doesn't solve this, what version of GCC do you have (gcc -v)?
Nicko
Trader
Trader
Posts: 17
Joined: Wed Aug 23, 2006 1:33 pm
Location: Italy

Post by Nicko »

I updated to 10712, deleted .o etc. , and I got this error message (it's quite different...)

Code: Select all

make vegastrike
if g++-4.0 -DHAVE_CONFIG_H -I. -I. -I.   -I./boost/1_33    -DHAVE_SDL=1 -DSDL_WINDOWING=1      -DHAVE_AL=1   -DHAVE_OGG   -I/usr/include/python2.4 -DHAVE_PYTHON=1   -I./src  -DBISON -g -O2 -pipe  -falign-loops=2 -falign-jumps=2 -falign-functions=2  -I/usr/include/SDL -D_REENTRANT -pthread -pipe -MT src/cmd/ai/vegastrike-aggressive.o -MD -MP -MF "src/cmd/ai/.deps/vegastrike-aggressive.Tpo" -c -o src/cmd/ai/vegastrike-aggressive.o `test -f 'src/cmd/ai/aggressive.cpp' || echo './'`src/cmd/ai/aggressive.cpp; \
then mv -f "src/cmd/ai/.deps/vegastrike-aggressive.Tpo" "src/cmd/ai/.deps/vegastrike-aggressive.Po"; else rm -f "src/cmd/ai/.deps/vegastrike-aggressive.Tpo"; exit 1; fi
In file included from ./src/cmd/script/msgcenter.h:53,
                 from ./src/cmd/script/mission.h:41,
                 from ./src/cmd/script/flightgroup.h:5,
                 from ./src/cmd/unit_generic.h:49,
                 from src/cmd/ai/aggressive.cpp:9:
./src/SharedPool.h:5:20: error: hash_map: No such file or directory
./src/SharedPool.h:194:35: warning: no newline at end of file
In file included from ./src/cmd/images.h:8,
                 from ./src/gfx/cockpit_generic.h:20,
                 from ./src/cmd/unit_generic.h:54,
                 from src/cmd/ai/aggressive.cpp:9:
./src/cmd/../SharedPool.h:194:35: warning: no newline at end of file
src/cmd/ai/aggressive.cpp: In member function ‘bool Orders::AggressiveAI::ProcessCurrentFgDirective(Flightgroup*)’:
src/cmd/ai/aggressive.cpp:833: warning: converting to ‘int’ from ‘float’
src/cmd/ai/aggressive.cpp:836: warning: converting to ‘int’ from ‘double’
src/cmd/ai/aggressive.cpp:973: warning: converting to ‘int’ from ‘float’
src/cmd/ai/aggressive.cpp:976: warning: converting to ‘int’ from ‘double’
src/cmd/ai/aggressive.cpp: In function ‘Unit* ChooseNavPoint(Unit*, Unit**, float*)’:
src/cmd/ai/aggressive.cpp:1247: warning: converting to ‘int’ from ‘double’
make: *** [src/cmd/ai/vegastrike-aggressive.o] Error 1

It is gcc/g++ 4.0
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Post by klauss »

Oops...
My bad.

I'll try to fix that hash_map issue when I get home.
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
Nicko
Trader
Trader
Posts: 17
Joined: Wed Aug 23, 2006 1:33 pm
Location: Italy

Post by Nicko »

Thanks Klauss for fixing it, you were so fast that I managed to find another problem in 10728 (sorry...) ;)

Code: Select all

if g++-4.0 -DHAVE_CONFIG_H -I. -I. -I.   -I./boost/1_33    -DHAVE_SDL=1 -DSDL_WINDOWING=1      -DHAVE_AL=1   -DHAVE_OGG   -I/usr/include/python2.4 -DHAVE_PYTHON=1   -I./src  -DBISON -g -O2 -pipe  -falign-loops=2 -falign-jumps=2 -falign-functions=2  -I/usr/include/SDL -D_REENTRANT -pthread -pipe -MT src/gfx/nav/vegastrike-drawlist.o -MD -MP -MF "src/gfx/nav/.deps/vegastrike-drawlist.Tpo" -c -o src/gfx/nav/vegastrike-drawlist.o `test -f 'src/gfx/nav/drawlist.cpp' || echo './'`src/gfx/nav/drawlist.cpp; \
then mv -f "src/gfx/nav/.deps/vegastrike-drawlist.Tpo" "src/gfx/nav/.deps/vegastrike-drawlist.Po"; else rm -f "src/gfx/nav/.deps/vegastrike-drawlist.Tpo"; exit 1; fi
src/gfx/nav/drawlist.cpp: In function ‘void drawlistitem(int, float, float, float, Unit*, navscreenoccupied*, bool, bool, float, GFXColor*)’:
src/gfx/nav/drawlist.cpp:453: error: ‘<anonymous enum>’ is/uses anonymous type
src/gfx/nav/drawlist.cpp:453: error:   trying to instantiate ‘template<class T> class SharedPool’
src/gfx/nav/drawlist.cpp:473: error: ‘<anonymous enum>’ is/uses anonymous type
src/gfx/nav/drawlist.cpp:473: error:   trying to instantiate ‘template<class T> class SharedPool’
src/gfx/nav/drawlist.cpp:492: error: ‘<anonymous enum>’ is/uses anonymous type
src/gfx/nav/drawlist.cpp:492: error:   trying to instantiate ‘template<class T> class SharedPool’
src/gfx/nav/drawlist.cpp:512: error: ‘<anonymous enum>’ is/uses anonymous type
src/gfx/nav/drawlist.cpp:512: error:   trying to instantiate ‘template<class T> class SharedPool’
src/gfx/nav/drawlist.cpp:531: error: ‘<anonymous enum>’ is/uses anonymous type
src/gfx/nav/drawlist.cpp:531: error:   trying to instantiate ‘template<class T> class SharedPool’
src/gfx/nav/drawlist.cpp:550: error: ‘<anonymous enum>’ is/uses anonymous type
src/gfx/nav/drawlist.cpp:550: error:   trying to instantiate ‘template<class T> class SharedPool’
src/gfx/nav/drawlist.cpp:578: error: ‘<anonymous enum>’ is/uses anonymous type
src/gfx/nav/drawlist.cpp:578: error:   trying to instantiate ‘template<class T> class SharedPool’
src/gfx/nav/drawlist.cpp:608: error: ‘<anonymous enum>’ is/uses anonymous type
src/gfx/nav/drawlist.cpp:608: error:   trying to instantiate ‘template<class T> class SharedPool’
src/gfx/nav/drawlist.cpp:628: error: ‘<anonymous enum>’ is/uses anonymous type
src/gfx/nav/drawlist.cpp:628: error:   trying to instantiate ‘template<class T> class SharedPool’
src/gfx/nav/drawlist.cpp:646: error: ‘<anonymous enum>’ is/uses anonymous type
src/gfx/nav/drawlist.cpp:646: error:   trying to instantiate ‘template<class T> class SharedPool’
src/gfx/nav/drawlist.cpp:665: error: ‘<anonymous enum>’ is/uses anonymous type
src/gfx/nav/drawlist.cpp:665: error:   trying to instantiate ‘template<class T> class SharedPool’
make: *** [src/gfx/nav/vegastrike-drawlist.o] Error 1
Maybe it's me, I'm unlucky... (or I'd better use precompiled bin on win...)
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Post by klauss »

That's been fixed already, thank Daniel.
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
Post Reply