Replacing a quake3 function

nexus024
Posts: 148
Joined: Fri Oct 06, 2006 7:26 pm

Post by nexus024 »

Ok I am coming across my first errors during make.

Code: Select all

cc1: warnings being treated as errors
..//client/cl_main.c: In function ‘CL_CheckForResend’:
..//client/cl_main.c:1546: warning: pointer targets in passing argument 3 of ‘NET_OutOfBandData’ differ in signedness
make[1]: *** [debugi386-glibc/client/cl_main.o] Error 1
make[1]: Leaving directory `/home/nick/Desktop/quake3-1.32b/code/unix'
make: *** [build_debug] Error 2
Also do I need to add -static -g to the CFLAGS in the Makefile?
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Post by ^misantropia^ »

Yep, and you can remove -Werror (and possibly -pedantic-errors) from it.
nexus024
Posts: 148
Joined: Fri Oct 06, 2006 7:26 pm

Post by nexus024 »

I couldn't find pedantic-errors option within the Makefile, but I did remove Werror.

Code: Select all

..//unix/unix_net.c: In function ‘Sys_GetPacket’:
..//unix/unix_net.c:179: warning: pointer targets in passing argument 6 of ‘recvfrom’ differ in signedness
/usr/bin/gcc -pipe -fsigned-char -g  -Wall -static -DNO_MOUSEGRAB -O -o debugi386-glibc/client/unix_shared.o -c ..//unix/unix_shared.c
make[1]: *** No rule to make target `..//ft2/ahoptim.c', needed by `debugi386-glibc/client/ahoptim.o'.  Stop.
make[1]: Leaving directory `/home/nick/Desktop/quake3-1.32b/code/unix'
make: *** [build_debug] Error 2
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Post by ^misantropia^ »

Are you sure you are using this? The file that seems to be missing is something from the FreeType2-library, which isn't included in the stock Q3 source. It does come with some of the spin-offs though.
nexus024
Posts: 148
Joined: Fri Oct 06, 2006 7:26 pm

Post by nexus024 »

Yes, I downloaded that file from the same link you provided.
nexus024
Posts: 148
Joined: Fri Oct 06, 2006 7:26 pm

Post by nexus024 »

I am using the Makefile that is in the /unix sub directory. The makefile in the /code directory doesn't work... complains about cons.
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Post by ^misantropia^ »

Ah, right. Install it from your distro's repository, e.g. `apt-get install scons` on Debian.
nexus024
Posts: 148
Joined: Fri Oct 06, 2006 7:26 pm

Post by nexus024 »

It seems I am still missing something.

Code: Select all

nick@nick-desktop:~/Desktop/quake3-1.32b/code$ scons

scons: *** No SConstruct file found.
File "/usr/lib/python2.4/site-packages/SCons/Script/__init__.py", line 870, in _main
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Post by ^misantropia^ »

You don't have to type `scons` yourself. Type `make` in the code/ directory and the Makefile will invoke scons for you in the appropriate way.
nexus024
Posts: 148
Joined: Fri Oct 06, 2006 7:26 pm

Post by nexus024 »

Code: Select all

nick@nick-desktop:~/Desktop/quake3-1.32b/code$ make
if [ `hostname` == sparkle ] ; then ./unix/pcons-2.3.1 -j4 -- novm noso ; else ./unix/cons ; fi
: No such file or directory
make: *** [all] Error 127
Hmm that is all that it says in the Makefile as well...
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Post by ^misantropia^ »

If I were to venture a guess, I'd say unix/cons isn't executable. `chmod +x unix/cons` ought to fix that.
nexus024
Posts: 148
Joined: Fri Oct 06, 2006 7:26 pm

Post by nexus024 »

Code: Select all

nick@nick-desktop:~/Desktop/quake3-1.32b/code$ make
if [ `hostname` == sparkle ] ; then ./unix/pcons-2.3.1 -j4 -- novm noso ; else ./unix/cons ; fi
/bin/sh: ./unix/cons: Permission denied
make: *** [all] Error 126
I have tried with sudo as well and still get the same 'permission denied'
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Post by ^misantropia^ »

Hmm, what does `ls -l unix/cons` produce?
nexus024
Posts: 148
Joined: Fri Oct 06, 2006 7:26 pm

Post by nexus024 »

It said that cons file only had rw but not x permission. So I did a chmod 777 to the file so it had all permissions. Now when I execute the make command it says that there is "no such file or directory."
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Post by ^misantropia^ »

Well, you could try manually executing the file (it's just a Perl script, after all): `perl unix/cons`
nexus024
Posts: 148
Joined: Fri Oct 06, 2006 7:26 pm

Post by nexus024 »

Ok, after removing the -Werror from the CFLAGS in the Construct file I am now getting this error message when I execute 'perl unix/cons'.

Code: Select all

nick@nick-desktop:~/Desktop/quake3-1.32b/code$ perl unix/cons
GCC version: gcc (GCC) 4.0.3 (Ubuntu 4.0.3-1ubuntu5) - i486-linux-gnu
cpu : x86
OS  : Linux
libc: 2.3
configured for debug build
CFLAGS: -pipe -fsigned-char -g -Wall -O
[perl] &build_tools('q3lcc')
cc -g -c -Isrc -o /tmp/dagcheck.o /tmp/dagcheck.c
/tmp/dagcheck.c:5: error: syntax error before 'int'
/tmp/dagcheck.c:6: warning: parameter names (without types) in function declaration
/tmp/dagcheck.c:728: error: syntax error before 'int'
/tmp/dagcheck.c:729: error: syntax error before 'int'
/tmp/dagcheck.c:730: error: syntax error before 'int'
/tmp/dagcheck.c:731: error: syntax error before 'int'
/tmp/dagcheck.c:732: error: syntax error before 'int'
/tmp/dagcheck.c:733: error: syntax error before 'int'
/tmp/dagcheck.c:734: error: syntax error before 'int'
/tmp/dagcheck.c:736: error: syntax error before 'a'
/tmp/dagcheck.c: In function '_closure_P':
/tmp/dagcheck.c:737: error: 'a' undeclared (first use in this function)
/tmp/dagcheck.c:737: error: (Each undeclared identifier is reported only once
/tmp/dagcheck.c:737: error: for each function it appears in.)
/tmp/dagcheck.c:737: warning: initialization makes pointer from integer without a cast
/tmp/dagcheck.c:738: error: 'c' undeclared (first use in this function)
/tmp/dagcheck.c: At top level:
/tmp/dagcheck.c:745: error: syntax error before 'a'
/tmp/dagcheck.c: In function '_closure_V':
/tmp/dagcheck.c:746: error: 'a' undeclared (first use in this function)
/tmp/dagcheck.c:746: warning: initialization makes pointer from integer without a cast
/tmp/dagcheck.c:747: error: 'c' undeclared (first use in this function)
/tmp/dagcheck.c: At top level:
/tmp/dagcheck.c:758: error: syntax error before 'a'
/tmp/dagcheck.c: In function '_closure_bogus':
/tmp/dagcheck.c:759: error: 'a' undeclared (first use in this function)
/tmp/dagcheck.c:759: warning: initialization makes pointer from integer without a cast
/tmp/dagcheck.c:760: error: 'c' undeclared (first use in this function)
/tmp/dagcheck.c: At top level:
/tmp/dagcheck.c:792: error: syntax error before 'a'
/tmp/dagcheck.c: In function '_closure_I':
/tmp/dagcheck.c:793: error: 'a' undeclared (first use in this function)
/tmp/dagcheck.c:793: warning: initialization makes pointer from integer without a cast
/tmp/dagcheck.c:794: error: 'c' undeclared (first use in this function)
/tmp/dagcheck.c: At top level:
/tmp/dagcheck.c:801: error: syntax error before 'a'
/tmp/dagcheck.c: In function '_closure_U':
/tmp/dagcheck.c:802: error: 'a' undeclared (first use in this function)
/tmp/dagcheck.c:802: warning: initialization makes pointer from integer without a cast
/tmp/dagcheck.c:803: error: 'c' undeclared (first use in this function)
/tmp/dagcheck.c: At top level:
/tmp/dagcheck.c:810: error: syntax error before 'a'
/tmp/dagcheck.c: In function '_closure_F':
/tmp/dagcheck.c:811: error: 'a' undeclared (first use in this function)
/tmp/dagcheck.c:811: warning: initialization makes pointer from integer without a cast
/tmp/dagcheck.c:812: error: 'c' undeclared (first use in this function)
/tmp/dagcheck.c: At top level:
/tmp/dagcheck.c:819: error: syntax error before 'a'
/tmp/dagcheck.c: In function '_closure_B':
/tmp/dagcheck.c:820: error: 'a' undeclared (first use in this function)
/tmp/dagcheck.c:820: warning: initialization makes pointer from integer without a cast
/tmp/dagcheck.c:821: error: 'c' undeclared (first use in this function)
/tmp/dagcheck.c: At top level:
/tmp/dagcheck.c:828: error: syntax error before 'a'
/tmp/dagcheck.c: In function '_label':
/tmp/dagcheck.c:832: error: 'a' undeclared (first use in this function)
/tmp/dagcheck.c:834: error: 'FUNC' undeclared (first use in this function)
/tmp/dagcheck.c:834: warning: assignment makes pointer from integer without a cast
/tmp/dagcheck.c:834: error: invalid lvalue in assignment
/tmp/dagcheck.c:881: error: invalid type argument of '->'
/tmp/dagcheck.c:891: error: invalid type argument of '->'
/tmp/dagcheck.c:901: error: invalid type argument of '->'
/tmp/dagcheck.c:911: error: invalid type argument of '->'
/tmp/dagcheck.c:921: error: invalid type argument of '->'
/tmp/dagcheck.c:932: error: invalid type argument of '->'
/tmp/dagcheck.c:932: error: invalid type argument of '->'
/tmp/dagcheck.c:943: error: invalid type argument of '->'
/tmp/dagcheck.c:943: error: invalid type argument of '->'
/tmp/dagcheck.c:954: error: invalid type argument of '->'
/tmp/dagcheck.c:954: error: invalid type argument of '->'
/tmp/dagcheck.c:965: error: invalid type argument of '->'
/tmp/dagcheck.c:965: error: invalid type argument of '->'
/tmp/dagcheck.c:976: error: invalid type argument of '->'
/tmp/dagcheck.c:976: error: invalid type argument of '->'
/tmp/dagcheck.c:986: error: invalid type argument of '->'
/tmp/dagcheck.c:992: error: invalid type argument of '->'
/tmp/dagcheck.c:1002: error: invalid type argument of '->'
/tmp/dagcheck.c:1008: error: invalid type argument of '->'
/tmp/dagcheck.c:1018: error: invalid type argument of '->'
/tmp/dagcheck.c:1024: error: invalid type argument of '->'
/tmp/dagcheck.c:1034: error: invalid type argument of '->'
/tmp/dagcheck.c:1040: error: invalid type argument of '->'
/tmp/dagcheck.c:1050: error: invalid type argument of '->'
/tmp/dagcheck.c:1056: error: invalid type argument of '->'
/tmp/dagcheck.c:1066: error: invalid type argument of '->'
/tmp/dagcheck.c:1076: error: invalid type argument of '->'
/tmp/dagcheck.c:1086: error: invalid type argument of '->'
/tmp/dagcheck.c:1096: error: invalid type argument of '->'
/tmp/dagcheck.c:1106: error: invalid type argument of '->'
/tmp/dagcheck.c:1116: error: invalid type argument of '->'
/tmp/dagcheck.c:1126: error: invalid type argument of '->'
/tmp/dagcheck.c:1136: error: invalid type argument of '->'
/tmp/dagcheck.c:1146: error: invalid type argument of '->'
/tmp/dagcheck.c:1156: error: invalid type argument of '->'
/tmp/dagcheck.c:1166: error: invalid type argument of '->'
/tmp/dagcheck.c:1176: error: invalid type argument of '->'
/tmp/dagcheck.c:1186: error: invalid type argument of '->'
/tmp/dagcheck.c:1192: error: invalid type argument of '->'
/tmp/dagcheck.c:1202: error: invalid type argument of '->'
/tmp/dagcheck.c:1208: error: invalid type argument of '->'
/tmp/dagcheck.c:1218: error: invalid type argument of '->'
/tmp/dagcheck.c:1224: error: invalid type argument of '->'
/tmp/dagcheck.c:1234: error: invalid type argument of '->'
/tmp/dagcheck.c:1240: error: invalid type argument of '->'
/tmp/dagcheck.c:1250: error: invalid type argument of '->'
/tmp/dagcheck.c:1261: error: invalid type argument of '->'
/tmp/dagcheck.c:1261: error: invalid type argument of '->'
/tmp/dagcheck.c:1271: error: invalid type argument of '->'
/tmp/dagcheck.c:1281: error: invalid type argument of '->'
/tmp/dagcheck.c:1291: error: invalid type argument of '->'
/tmp/dagcheck.c:1301: error: invalid type argument of '->'
/tmp/dagcheck.c:1344: error: invalid type argument of '->'
/tmp/dagcheck.c:1344: error: invalid type argument of '->'
/tmp/dagcheck.c:1355: error: invalid type argument of '->'
/tmp/dagcheck.c:1355: error: invalid type argument of '->'
/tmp/dagcheck.c:1366: error: invalid type argument of '->'
/tmp/dagcheck.c:1366: error: invalid type argument of '->'
/tmp/dagcheck.c:1377: error: invalid type argument of '->'
/tmp/dagcheck.c:1377: error: invalid type argument of '->'
/tmp/dagcheck.c:1384: error: invalid type argument of '->'
/tmp/dagcheck.c:1384: error: invalid type argument of '->'
/tmp/dagcheck.c:1391: error: invalid type argument of '->'
/tmp/dagcheck.c:1391: error: invalid type argument of '->'
/tmp/dagcheck.c:1398: error: invalid type argument of '->'
/tmp/dagcheck.c:1398: error: invalid type argument of '->'
/tmp/dagcheck.c:1409: error: invalid type argument of '->'
/tmp/dagcheck.c:1409: error: invalid type argument of '->'
/tmp/dagcheck.c:1420: error: invalid type argument of '->'
/tmp/dagcheck.c:1420: error: invalid type argument of '->'
/tmp/dagcheck.c:1431: error: invalid type argument of '->'
/tmp/dagcheck.c:1431: error: invalid type argument of '->'
/tmp/dagcheck.c:1442: error: invalid type argument of '->'
/tmp/dagcheck.c:1442: error: invalid type argument of '->'
/tmp/dagcheck.c:1449: error: invalid type argument of '->'
/tmp/dagcheck.c:1449: error: invalid type argument of '->'
/tmp/dagcheck.c:1460: error: invalid type argument of '->'
/tmp/dagcheck.c:1460: error: invalid type argument of '->'
/tmp/dagcheck.c:1471: error: invalid type argument of '->'
/tmp/dagcheck.c:1471: error: invalid type argument of '->'
/tmp/dagcheck.c:1482: error: invalid type argument of '->'
/tmp/dagcheck.c:1482: error: invalid type argument of '->'
/tmp/dagcheck.c:1493: error: invalid type argument of '->'
/tmp/dagcheck.c:1493: error: invalid type argument of '->'
/tmp/dagcheck.c:1504: error: invalid type argument of '->'
/tmp/dagcheck.c:1504: error: invalid type argument of '->'
/tmp/dagcheck.c:1515: error: invalid type argument of '->'
/tmp/dagcheck.c:1515: error: invalid type argument of '->'
/tmp/dagcheck.c:1526: error: invalid type argument of '->'
/tmp/dagcheck.c:1526: error: invalid type argument of '->'
/tmp/dagcheck.c:1537: error: invalid type argument of '->'
/tmp/dagcheck.c:1537: error: invalid type argument of '->'
/tmp/dagcheck.c:1547: error: invalid type argument of '->'
/tmp/dagcheck.c:1557: error: invalid type argument of '->'
/tmp/dagcheck.c:1568: error: invalid type argument of '->'
/tmp/dagcheck.c:1568: error: invalid type argument of '->'
/tmp/dagcheck.c:1579: error: invalid type argument of '->'
/tmp/dagcheck.c:1579: error: invalid type argument of '->'
/tmp/dagcheck.c:1590: error: invalid type argument of '->'
/tmp/dagcheck.c:1590: error: invalid type argument of '->'
/tmp/dagcheck.c:1601: error: invalid type argument of '->'
/tmp/dagcheck.c:1601: error: invalid type argument of '->'
/tmp/dagcheck.c:1612: error: invalid type argument of '->'
/tmp/dagcheck.c:1612: error: invalid type argument of '->'
/tmp/dagcheck.c:1623: error: invalid type argument of '->'
/tmp/dagcheck.c:1623: error: invalid type argument of '->'
/tmp/dagcheck.c:1634: error: invalid type argument of '->'
/tmp/dagcheck.c:1634: error: invalid type argument of '->'
/tmp/dagcheck.c:1645: error: invalid type argument of '->'
/tmp/dagcheck.c:1645: error: invalid type argument of '->'
/tmp/dagcheck.c:1656: error: invalid type argument of '->'
/tmp/dagcheck.c:1656: error: invalid type argument of '->'
/tmp/dagcheck.c:1667: error: invalid type argument of '->'
/tmp/dagcheck.c:1667: error: invalid type argument of '->'
/tmp/dagcheck.c:1678: error: invalid type argument of '->'
/tmp/dagcheck.c:1678: error: invalid type argument of '->'
/tmp/dagcheck.c:1689: error: invalid type argument of '->'
/tmp/dagcheck.c:1689: error: invalid type argument of '->'
/tmp/dagcheck.c:1700: error: invalid type argument of '->'
/tmp/dagcheck.c:1700: error: invalid type argument of '->'
/tmp/dagcheck.c:1711: error: invalid type argument of '->'
/tmp/dagcheck.c:1711: error: invalid type argument of '->'
/tmp/dagcheck.c:1722: error: invalid type argument of '->'
/tmp/dagcheck.c:1722: error: invalid type argument of '->'
/tmp/dagcheck.c:1733: error: invalid type argument of '->'
/tmp/dagcheck.c:1733: error: invalid type argument of '->'
/tmp/dagcheck.c:1744: error: invalid type argument of '->'
/tmp/dagcheck.c:1744: error: invalid type argument of '->'
/tmp/dagcheck.c:1755: error: invalid type argument of '->'
/tmp/dagcheck.c:1755: error: invalid type argument of '->'
/tmp/dagcheck.c:1766: error: invalid type argument of '->'
/tmp/dagcheck.c:1766: error: invalid type argument of '->'
/tmp/dagcheck.c:1777: error: invalid type argument of '->'
/tmp/dagcheck.c:1777: error: invalid type argument of '->'
/tmp/dagcheck.c:1788: error: invalid type argument of '->'
/tmp/dagcheck.c:1788: error: invalid type argument of '->'
/tmp/dagcheck.c:1799: error: invalid type argument of '->'
/tmp/dagcheck.c:1799: error: invalid type argument of '->'
/tmp/dagcheck.c:1810: error: invalid type argument of '->'
/tmp/dagcheck.c:1810: error: invalid type argument of '->'
/tmp/dagcheck.c:1821: error: invalid type argument of '->'
/tmp/dagcheck.c:1821: error: invalid type argument of '->'
/tmp/dagcheck.c:1832: error: invalid type argument of '->'
/tmp/dagcheck.c:1832: error: invalid type argument of '->'
/tmp/dagcheck.c:1843: error: invalid type argument of '->'
/tmp/dagcheck.c:1843: error: invalid type argument of '->'
/tmp/dagcheck.c:1854: error: invalid type argument of '->'
/tmp/dagcheck.c:1854: error: invalid type argument of '->'
/tmp/dagcheck.c:1865: error: invalid type argument of '->'
/tmp/dagcheck.c:1865: error: invalid type argument of '->'
/tmp/dagcheck.c:1875: error: invalid type argument of '->'
/tmp/dagcheck.c: At top level:
/tmp/dagcheck.c:1895: error: syntax error before 'p'
/tmp/dagcheck.c: In function '_kids':
/tmp/dagcheck.c:1896: error: 'p' undeclared (first use in this function)
/tmp/dagcheck.c:1898: error: 'kids' undeclared (first use in this function)
/tmp/dagcheck.c:1900: error: 'eruleno' undeclared (first use in this function)
/tmp/dagcheck.c: At top level:
/tmp/dagcheck.c:2034: error: syntax error before 'p'
/tmp/dagcheck.c: In function 'reduce':
/tmp/dagcheck.c:2035: error: 'p' undeclared (first use in this function)
/tmp/dagcheck.c:2035: error: 'goalnt' undeclared (first use in this function)
/tmp/dagcheck.c:2037: error: 'NODEPTR_TYPE' undeclared (first use in this function)
/tmp/dagcheck.c:2037: error: syntax error before 'kids'
/tmp/dagcheck.c:2040: error: 'kids' undeclared (first use in this function)
/tmp/dagcheck.c:2045: error: 'I' undeclared (first use in this function)
/tmp/dagcheck.c:2046: error: 'U' undeclared (first use in this function)
/tmp/dagcheck.c:2047: error: 'chartype' undeclared (first use in this function)
/tmp/dagcheck.c:2048: error: 'shorttype' undeclared (first use in this function)
/tmp/dagcheck.c:2049: error: 'inttype' undeclared (first use in this function)
/tmp/dagcheck.c:2050: error: 'longtype' undeclared (first use in this function)
/tmp/dagcheck.c:2051: error: 'longlong' undeclared (first use in this function)
/tmp/dagcheck.c:2053: error: 'F' undeclared (first use in this function)
/tmp/dagcheck.c:2054: error: 'floattype' undeclared (first use in this function)
/tmp/dagcheck.c:2055: error: 'doubletype' undeclared (first use in this function)
/tmp/dagcheck.c:2056: error: 'longdouble' undeclared (first use in this function)
/tmp/dagcheck.c:2058: error: 'P' undeclared (first use in this function)
/tmp/dagcheck.c:2059: error: 'voidptype' undeclared (first use in this function)
/tmp/dagcheck.c:2060: error: 'funcptype' undeclared (first use in this function)
/tmp/dagcheck.c:2062: error: 'V' undeclared (first use in this function)
/tmp/dagcheck.c:2063: error: 'B' undeclared (first use in this function)
/tmp/dagcheck.c: At top level:
/tmp/dagcheck.c:2070: error: syntax error before 'p'
/tmp/dagcheck.c: In function 'check':
/tmp/dagcheck.c:2073: error: 'p' undeclared (first use in this function)
make: *** [/tmp/dagcheck.o] Error 1
cp: cannot stat `/tmp/lcc': No such file or directory
cp: cannot stat `/tmp/rcc': No such file or directory
cp: cannot stat `/tmp/cpp': No such file or directory
q3lcc -DQ3_VM -DCGAME -S -Wf-target=bytecode -Wf-g -Icgame -Igame -Iq3_ui -c debug-x86-Linux-2.3/Q3/cgame/cgame/cg_main.c -o debug-x86-Linux-2.3/Q3/cgame/cgame/cg_main.asm
cons: failed to execute "q3lcc" (No such file or directory). Is this an executable on path "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games:./qvmtools"?
cons: *** [debug-x86-Linux-2.3/Q3/cgame/cgame/cg_main.asm] Error 2
cons: errors constructing debug-x86-Linux-2.3/Q3/cgame/cgame/cg_main.asm
I did some googling and found that I need to do a 'make all' within the quake3-1.32b/lcc folder in order to install q3lcc onto my system.
Unfortunately it also is giving errors that weren't solved in other forums. The other people in the forums getting the same errors thought that they might be missing some libs.... but weren't sure.

Code: Select all

nick@nick-desktop:~/Desktop/quake3-1.32b/lcc$ make all
cc -g -c -Isrc -o /tmp/dagcheck.o /tmp/dagcheck.c
/tmp/dagcheck.c:5: error: syntax error before ‘int’
/tmp/dagcheck.c:6: warning: parameter names (without types) in function declaration
/tmp/dagcheck.c:728: error: syntax error before ‘int’
/tmp/dagcheck.c:729: error: syntax error before ‘int’
/tmp/dagcheck.c:730: error: syntax error before ‘int’
/tmp/dagcheck.c:731: error: syntax error before ‘int’
/tmp/dagcheck.c:732: error: syntax error before ‘int’
/tmp/dagcheck.c:733: error: syntax error before ‘int’
/tmp/dagcheck.c:734: error: syntax error before ‘int’
/tmp/dagcheck.c:736: error: syntax error before ‘a’
/tmp/dagcheck.c: In function ‘_closure_P’:
/tmp/dagcheck.c:737: error: ‘a’ undeclared (first use in this function)
/tmp/dagcheck.c:737: error: (Each undeclared identifier is reported only once
/tmp/dagcheck.c:737: error: for each function it appears in.)
/tmp/dagcheck.c:737: warning: initialization makes pointer from integer without a cast
/tmp/dagcheck.c:738: error: ‘c’ undeclared (first use in this function)
/tmp/dagcheck.c: At top level:
/tmp/dagcheck.c:745: error: syntax error before ‘a’
/tmp/dagcheck.c: In function ‘_closure_V’:
/tmp/dagcheck.c:746: error: ‘a’ undeclared (first use in this function)
/tmp/dagcheck.c:746: warning: initialization makes pointer from integer without a cast
/tmp/dagcheck.c:747: error: ‘c’ undeclared (first use in this function)
/tmp/dagcheck.c: At top level:
/tmp/dagcheck.c:758: error: syntax error before ‘a’
/tmp/dagcheck.c: In function ‘_closure_bogus’:
/tmp/dagcheck.c:759: error: ‘a’ undeclared (first use in this function)
/tmp/dagcheck.c:759: warning: initialization makes pointer from integer without a cast
/tmp/dagcheck.c:760: error: ‘c’ undeclared (first use in this function)
/tmp/dagcheck.c: At top level:
/tmp/dagcheck.c:792: error: syntax error before ‘a’
/tmp/dagcheck.c: In function ‘_closure_I’:
/tmp/dagcheck.c:793: error: ‘a’ undeclared (first use in this function)
/tmp/dagcheck.c:793: warning: initialization makes pointer from integer without a cast
/tmp/dagcheck.c:794: error: ‘c’ undeclared (first use in this function)
/tmp/dagcheck.c: At top level:
/tmp/dagcheck.c:801: error: syntax error before ‘a’
/tmp/dagcheck.c: In function ‘_closure_U’:
/tmp/dagcheck.c:802: error: ‘a’ undeclared (first use in this function)
/tmp/dagcheck.c:802: warning: initialization makes pointer from integer without a cast
/tmp/dagcheck.c:803: error: ‘c’ undeclared (first use in this function)
/tmp/dagcheck.c: At top level:
/tmp/dagcheck.c:810: error: syntax error before ‘a’
/tmp/dagcheck.c: In function ‘_closure_F’:
/tmp/dagcheck.c:811: error: ‘a’ undeclared (first use in this function)
/tmp/dagcheck.c:811: warning: initialization makes pointer from integer without a cast
/tmp/dagcheck.c:812: error: ‘c’ undeclared (first use in this function)
/tmp/dagcheck.c: At top level:
/tmp/dagcheck.c:819: error: syntax error before ‘a’
/tmp/dagcheck.c: In function ‘_closure_B’:
/tmp/dagcheck.c:820: error: ‘a’ undeclared (first use in this function)
/tmp/dagcheck.c:820: warning: initialization makes pointer from integer without a cast
/tmp/dagcheck.c:821: error: ‘c’ undeclared (first use in this function)
/tmp/dagcheck.c: At top level:
/tmp/dagcheck.c:828: error: syntax error before ‘a’
/tmp/dagcheck.c: In function ‘_label’:
/tmp/dagcheck.c:832: error: ‘a’ undeclared (first use in this function)
/tmp/dagcheck.c:834: error: ‘FUNC’ undeclared (first use in this function)
/tmp/dagcheck.c:834: warning: assignment makes pointer from integer without a cast
/tmp/dagcheck.c:834: error: invalid lvalue in assignment
/tmp/dagcheck.c:881: error: invalid type argument of ‘->’
/tmp/dagcheck.c:891: error: invalid type argument of ‘->’
/tmp/dagcheck.c:901: error: invalid type argument of ‘->’
/tmp/dagcheck.c:911: error: invalid type argument of ‘->’
/tmp/dagcheck.c:921: error: invalid type argument of ‘->’
/tmp/dagcheck.c:932: error: invalid type argument of ‘->’
/tmp/dagcheck.c:932: error: invalid type argument of ‘->’
/tmp/dagcheck.c:943: error: invalid type argument of ‘->’
/tmp/dagcheck.c:943: error: invalid type argument of ‘->’
/tmp/dagcheck.c:954: error: invalid type argument of ‘->’
/tmp/dagcheck.c:954: error: invalid type argument of ‘->’
/tmp/dagcheck.c:965: error: invalid type argument of ‘->’
/tmp/dagcheck.c:965: error: invalid type argument of ‘->’
/tmp/dagcheck.c:976: error: invalid type argument of ‘->’
/tmp/dagcheck.c:976: error: invalid type argument of ‘->’
/tmp/dagcheck.c:986: error: invalid type argument of ‘->’
/tmp/dagcheck.c:992: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1002: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1008: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1018: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1024: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1034: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1040: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1050: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1056: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1066: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1076: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1086: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1096: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1106: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1116: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1126: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1136: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1146: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1156: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1166: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1176: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1186: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1192: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1202: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1208: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1218: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1224: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1234: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1240: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1250: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1261: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1261: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1271: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1281: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1291: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1301: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1344: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1344: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1355: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1355: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1366: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1366: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1377: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1377: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1384: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1384: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1391: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1391: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1398: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1398: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1409: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1409: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1420: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1420: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1431: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1431: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1442: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1442: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1449: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1449: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1460: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1460: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1471: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1471: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1482: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1482: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1493: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1493: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1504: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1504: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1515: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1515: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1526: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1526: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1537: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1537: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1547: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1557: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1568: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1568: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1579: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1579: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1590: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1590: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1601: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1601: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1612: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1612: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1623: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1623: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1634: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1634: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1645: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1645: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1656: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1656: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1667: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1667: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1678: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1678: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1689: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1689: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1700: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1700: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1711: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1711: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1722: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1722: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1733: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1733: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1744: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1744: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1755: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1755: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1766: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1766: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1777: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1777: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1788: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1788: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1799: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1799: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1810: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1810: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1821: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1821: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1832: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1832: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1843: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1843: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1854: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1854: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1865: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1865: error: invalid type argument of ‘->’
/tmp/dagcheck.c:1875: error: invalid type argument of ‘->’
/tmp/dagcheck.c: At top level:
/tmp/dagcheck.c:1895: error: syntax error before ‘p’
/tmp/dagcheck.c: In function ‘_kids’:
/tmp/dagcheck.c:1896: error: ‘p’ undeclared (first use in this function)
/tmp/dagcheck.c:1898: error: ‘kids’ undeclared (first use in this function)
/tmp/dagcheck.c:1900: error: ‘eruleno’ undeclared (first use in this function)
/tmp/dagcheck.c: At top level:
/tmp/dagcheck.c:2034: error: syntax error before ‘p’
/tmp/dagcheck.c: In function ‘reduce’:
/tmp/dagcheck.c:2035: error: ‘p’ undeclared (first use in this function)
/tmp/dagcheck.c:2035: error: ‘goalnt’ undeclared (first use in this function)
/tmp/dagcheck.c:2037: error: ‘NODEPTR_TYPE’ undeclared (first use in this function)
/tmp/dagcheck.c:2037: error: syntax error before ‘kids’
/tmp/dagcheck.c:2040: error: ‘kids’ undeclared (first use in this function)
/tmp/dagcheck.c:2045: error: ‘I’ undeclared (first use in this function)
/tmp/dagcheck.c:2046: error: ‘U’ undeclared (first use in this function)
/tmp/dagcheck.c:2047: error: ‘chartype’ undeclared (first use in this function)
/tmp/dagcheck.c:2048: error: ‘shorttype’ undeclared (first use in this function)
/tmp/dagcheck.c:2049: error: ‘inttype’ undeclared (first use in this function)
/tmp/dagcheck.c:2050: error: ‘longtype’ undeclared (first use in this function)
/tmp/dagcheck.c:2051: error: ‘longlong’ undeclared (first use in this function)
/tmp/dagcheck.c:2053: error: ‘F’ undeclared (first use in this function)
/tmp/dagcheck.c:2054: error: ‘floattype’ undeclared (first use in this function)
/tmp/dagcheck.c:2055: error: ‘doubletype’ undeclared (first use in this function)
/tmp/dagcheck.c:2056: error: ‘longdouble’ undeclared (first use in this function)
/tmp/dagcheck.c:2058: error: ‘P’ undeclared (first use in this function)
/tmp/dagcheck.c:2059: error: ‘voidptype’ undeclared (first use in this function)
/tmp/dagcheck.c:2060: error: ‘funcptype’ undeclared (first use in this function)
/tmp/dagcheck.c:2062: error: ‘V’ undeclared (first use in this function)
/tmp/dagcheck.c:2063: error: ‘B’ undeclared (first use in this function)
/tmp/dagcheck.c: At top level:
/tmp/dagcheck.c:2070: error: syntax error before ‘p’
/tmp/dagcheck.c: In function ‘check’:
/tmp/dagcheck.c:2073: error: ‘p’ undeclared (first use in this function)
make: *** [/tmp/dagcheck.o] Error 1
nexus024
Posts: 148
Joined: Fri Oct 06, 2006 7:26 pm

Post by nexus024 »

Anyone have any suggestions?
your_mum
Posts: 1
Joined: Sat Aug 05, 2006 9:01 am

Post by your_mum »

OMG talk about Patience ^misantropia^.

There is a patch for the q3msgboom bug here. It is a hex edit patch so you can still run pb and your favorite mod.
http://aluigi.altervista.org/
nexus024
Posts: 148
Joined: Fri Oct 06, 2006 7:26 pm

Re: Replacing a quake3 function

Post by nexus024 »

Actually I had previously checked that site and there is no true fix. The only thing Luigi's fix does is hex edit the server file so say, vsay, and other commands can't be used AT ALL. Not a good fix.

Hrmm, wonder if we can reach 10,000 views on this topic... :D
Locked