Author Topic: In the source code are error?  (Read 2381 times)

gamelaster

  • PGP
  • Posts: 29
In the source code are error?
« on: May 13, 2012, 11:06:35 AM »
Hi , i compile the PB2 Dedicated server and this is errors:
Code: [Select]
make release
Compiling >> qcommon/cmd.c
Compiling >> qcommon/cmodel.c
Compiling >> qcommon/common.c
Compiling >> qcommon/crc.c
Compiling >> qcommon/cvar.c
Compiling >> qcommon/files.c
Compiling >> qcommon/md4.c
Compiling >> qcommon/net_common.c
Compiling >> qcommon/net_chan.c
Compiling >> server/sv_ccmds.c
Compiling >> server/sv_ents.c
Compiling >> server/sv_game.c
server/sv_game.c: In function âSV_InitGameProgsâ:
server/sv_game.c:358: warning: assignment from incompatible pointer type
Compiling >> server/sv_init.c
Compiling >> server/sv_main.c
Compiling >> server/sv_send.c
Compiling >> server/sv_user.c
Compiling >> server/sv_world.c
server/sv_world.c: In function âSV_AreaEdicts_râ:
server/sv_world.c:389: warning: cast from pointer to integer of different size
Compiling >> linux/q_shlinux.c
Compiling >> linux/sys_linux.c
Compiling >> linux/glob.c
Compiling >> linux/net_udp.c
Compiling >> linux/net_tcp.c
Compiling >> game/q_shared.c
Compiling >> qcommon/pmove.c
Compiling >> server/null/cl_null.c
Compiling >> server/null/cd_null.c
Compiling >> qcommon/md5.c

**Built Paintball2 dedicated client with cflags:
-I/usr/local/include -I/usr/X11R6/include -Dstricmp=strcasecmp -D_inline= -DSleep=usleep -DGAME_NAME='game.so' -DPAINTBALL2_VERSION='2.0' -DBUILD_VERSION='35' -Wno-pointer-sign -D_THREAD_SAFE -fno-stack-protector -DC_ONLY -O2 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -fno-strict-aliasing

**Now linking Paintball2 dedicated client with flags:
-L/usr/local/lib -lm -ldl -lrt

build_release/ded/cmd.o: In function `Cmd_ExecuteString':
cmd.c:(.text+0x1ad7): undefined reference to `e'
build_release/ded/pmove.o: In function `PM_StepSlideMove':
pmove.c:(.text+0x2c84): undefined reference to `g_stepheight'
build_release/ded/pmove.o: In function `Pmove':
pmove.c:(.text+0x356d): undefined reference to `g_stepheight'
collect2: ld returned 1 exit status
make[1]: *** [/root/paintball2/pb2-ded] Error 1
make: [release] Error 2 (ignored)

I have Linux Debian 6 64bit...
Download source code:
http://hosting-future.tk/paintball2.zip

pvtjimmy

  • Committee Member
  • Autococker
  • Posts: 2098
Re: In the source code are error?
« Reply #1 on: May 13, 2012, 11:21:36 AM »
I have no idea about the programming part, but may I ask what you are trying to achieve by (re-)compiling the game and publishing source code?

gamelaster

  • PGP
  • Posts: 29
Re: In the source code are error?
« Reply #2 on: May 13, 2012, 11:30:53 AM »
Im edited source code on the server directory... I sendet link to source code im sendet for check the errors... Edited files:
makefile
/server/ccmds.c
P.S. Its for my server :)

prozajik

  • Autococker
  • Posts: 761
Re: In the source code are error?
« Reply #3 on: May 15, 2012, 12:22:36 PM »
So you have used source code which jitspoe provides here?
http://digitalpaint.org/files/
Quote
Paintball 2.0 Alpha build035 Source Code
    paintball20_alpha035_src_20120109.zip - 1.62MB
Or you have decompiled it somehow? Just surprised you are posting link of .zip here while everyone can download it.

gamelaster

  • PGP
  • Posts: 29
Re: In the source code are error?
« Reply #4 on: May 15, 2012, 01:28:40 PM »
Yea, i downloadet paintball20_alpha035_src_20120109.zip

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: In the source code are error?
« Reply #5 on: May 15, 2012, 07:48:16 PM »
I don't build the standalone dedicated server, but I see what the problem is - I had the g_stepheight defined in a client .c file, so it works when you build the whole thing but won't work for a dedicated server.  If you change "extern float g_stepheight;" to "float g_stepheight = 0.0f", it should work.

gamelaster

  • PGP
  • Posts: 29
Re: In the source code are error?
« Reply #6 on: May 16, 2012, 01:18:55 PM »
Its ok, also what dont compile game386.so?(I musted edit the cmd.c and line 1274 and 1275 set to comments(haved error..)) Also verry thanx :)

//P.S. Thanx for reply for my mail ;)

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: In the source code are error?
« Reply #7 on: May 17, 2012, 03:50:25 PM »
What, exactly, are you trying to add?