Problem with libnet?

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
RDX

Problem with libnet?

Post by RDX »

make[3]: Entering directory `/tmp/vegastrike-0.4.1-installer/vegastrike/src'
c++ -pipe -O2 -fexpensive-optimizations -fomit-frame-pointer -Wall -ffast-math -I/usr/include/SDL -D_REENTRANT -pipe -L/usr/X11R6/lib -L/usr/X11R6/lib -o vegastrike posh.o stardate.o star_system_xml.o star_system_generic.o universe_generic.o universe_util_generic.o galaxy.o galaxy_xml.o galaxy_gen.o faction_generic.o hashtable.o configxml.o easydom.o xml_serializer.o xml_support.o lin_time.o endianness.o faction_util_generic.o load_mission.o savegame.o vs_globals.o vs_path.o debug_vs.o gfxlib_struct.o in_joystick.o force_feedback.o faction_util.o in_kb.o in_sdl.o in_mouse.o in_main.o in_handler.o main_loop.o physics.o star_system_jump.o star_system.o universe.o universe_util.o config_xml.o macosx_math.o cg_global.o main.o networking/netserver_devices.o aldrv/libaldrv.a common/libvscommon.a networking/libnetclient.a networking/lowlevel/libnetlowlevel.a cmd/script/script_call_briefing.o cmd/script/libscript.a cmd/script/c_alike/libc_alike.a python/briefing_wrapper.o cmd/libcmd.a cmd/base_init.o python/libpython.a gfx/libgfx.a gldrv/libgldrv.a cmd/ai/libai.a gui/libgui.a networking/libnet.a cmd/collide/libcollide.a boost129/libboost_python.a boost/libboost_python.a gfx/nav/libnav.a -lpthread -lz -lutil -L/usr/lib -lSDL -lpthread -lSDL_mixer -lGL -lGLU -lglut -lXi -lXmu -lexpat -lpng -ljpeg -lopenal -lpython2.3 -Xlinker -export-dynamic
networking/libnetclient.a(netclient.o)(.text+0x1e69): In function `NetClient::PacketLoop(Cmd)':
: undefined reference to `displayCmd(Cmd)'
networking/libnetclient.a(netclient.o)(.text+0x344f): In function `NetClient::recvMsg(Packet*)':
: undefined reference to `operator<<(std::basic_ostream<char, std::char_traits<char> >&, Cmd)'
networking/libnetclient.a(netclient.o)(.text+0x3fcc): In function `NetClient::recvMsg(Packet*)':
: undefined reference to `operator<<(std::basic_ostream<char, std::char_traits<char> >&, Cmd)'
networking/libnetclient.a(netserver.o)(.text+0x6d73): In function `NetServer::processPacket(boost::shared_ptr<Client>, unsigned char, AddressIP const&, Packet&)':
: undefined reference to `operator<<(std::basic_ostream<char, std::char_traits<char> >&, Cmd)'
networking/libnetclient.a(zonemgr.o)(.text+0x140e): In function `ZoneMgr::broadcast(boost::weak_ptr<Client>, Packet*)':
: undefined reference to `operator<<(std::basic_ostream<char, std::char_traits<char> >&, Cmd)'
networking/lowlevel/libnetlowlevel.a(packet.o)(.text+0x1120): In function `Packet::create(Cmd, unsigned short, char*, unsigned, int, AddressIP const*, SOCKETALT const&, char const*, int)':
: undefined reference to `operator<<(std::basic_ostream<char, std::char_traits<char> >&, Cmd)'
networking/lowlevel/libnetlowlevel.a(packet.o)(.text+0x1560): more undefined references to `operator<<(std::basic_ostream<char, std::char_traits<char> >&, Cmd)' follow
collect2: ld returned 1 exit status
make[3]: *** [vegastrike] Error 1
make[3]: Leaving directory `/tmp/vegastrike-0.4.1-installer/vegastrike/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/vegastrike-0.4.1-installer/vegastrike/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/vegastrike-0.4.1-installer/vegastrike'
make: *** [all-recursive-am] Error 2
[radek@localhost vegastrike]$





I get this error and I don't know what is wrong. I suppose that there is a problrm with libnet. :?:

Thank you for help
RDX

Post by RDX »

I have -Mandrake linux 9.2; gcc ver 3.3.1
hellcatv
Developer
Developer
Posts: 3980
Joined: Fri Jan 03, 2003 4:53 am
Location: Stanford, CA
Contact:

Post by hellcatv »

not sure ...try make clean all from the src/networking dir
Vega Strike Lead Developer
http://vegastrike.sourceforge.net/
RDX

Post by RDX »

thanks I made it.

Great game!!!!!
Post Reply