Author Topic: Error compiling on Linux Ubuntu  (Read 7473 times)

Ghosthree3

  • Posts: 22
  • Turrets: +0/-0
Error compiling on Linux Ubuntu
« on: March 29, 2008, 12:58:45 am »
When I run "make" in the terminal I get this error.

Code: [Select]
make -C src/tools/lcc install
make[1]: Entering directory `/root/Tremulous/src/tools/lcc'
gcc -O2 -Wall -fno-strict-aliasing -MMD -DTEMPDIR=\"/tmp\" -DSYSTEM=\"\" -c -Isrc -o build-linux-x86/etc/lcc.o etc/lcc.c
etc/lcc.c:7:19: warning: stdio.h: No such file or directory
etc/lcc.c:9:20: warning: stdlib.h: No such file or directory
etc/lcc.c:10:20: warning: string.h: No such file or directory
etc/lcc.c:11:20: warning: assert.h: No such file or directory
etc/lcc.c:12:19: warning: ctype.h: No such file or directory
etc/lcc.c:13:20: warning: signal.h: No such file or directory
etc/lcc.c:14:20: warning: unistd.h: No such file or directory
etc/lcc.c: In function ‘main’:
etc/lcc.c:87: warning: implicit declaration of function ‘signal’
etc/lcc.c:87: error: ‘SIGINT’ undeclared (first use in this function)
etc/lcc.c:87: error: (Each undeclared identifier is reported only once
etc/lcc.c:87: error: for each function it appears in.)
etc/lcc.c:87: error: ‘SIG_IGN’ undeclared (first use in this function)
etc/lcc.c:89: error: ‘SIGTERM’ undeclared (first use in this function)
etc/lcc.c:95: warning: implicit declaration of function ‘getenv’
etc/lcc.c:96: warning: assignment makes pointer from integer without a cast
etc/lcc.c:98: warning: assignment makes pointer from integer without a cast
etc/lcc.c:100: warning: assignment makes pointer from integer without a cast
etc/lcc.c:101: warning: implicit declaration of function ‘assert’
etc/lcc.c:102: warning: implicit declaration of function ‘strlen’
etc/lcc.c:102: warning: incompatible implicit declaration of built-in function ‘strlen’
etc/lcc.c:107: warning: implicit declaration of function ‘exit’
etc/lcc.c:107: warning: incompatible implicit declaration of built-in function ‘exit’
etc/lcc.c:114: warning: implicit declaration of function ‘strcmp’
etc/lcc.c:118: warning: incompatible implicit declaration of built-in function ‘exit’
etc/lcc.c:124: warning: incompatible implicit declaration of built-in function ‘exit’
etc/lcc.c:138: warning: implicit declaration of function ‘fprintf’
etc/lcc.c:138: warning: incompatible implicit declaration of built-in function ‘fprintf’
etc/lcc.c:138: error: ‘stderr’ undeclared (first use in this function)
etc/lcc.c:160: warning: incompatible implicit declaration of built-in function ‘fprintf’
etc/lcc.c:172: error: ‘EXIT_FAILURE’ undeclared (first use in this function)
etc/lcc.c:172: error: ‘EXIT_SUCCESS’ undeclared (first use in this function)
etc/lcc.c: In function ‘alloc’:
etc/lcc.c:181: warning: implicit declaration of function ‘malloc’
etc/lcc.c:181: warning: incompatible implicit declaration of built-in function ‘malloc’
etc/lcc.c: In function ‘_spawnvp’:
etc/lcc.c:232: warning: incompatible implicit declaration of built-in function ‘fprintf’
etc/lcc.c:232: error: ‘stderr’ undeclared (first use in this function)
etc/lcc.c:236: warning: implicit declaration of function ‘execvp’
etc/lcc.c:238: warning: implicit declaration of function ‘perror’
etc/lcc.c:239: warning: implicit declaration of function ‘fflush’
etc/lcc.c:239: error: ‘stdout’ undeclared (first use in this function)
etc/lcc.c:240: warning: incompatible implicit declaration of built-in function ‘exit’
etc/lcc.c:247: warning: incompatible implicit declaration of built-in function ‘fprintf’
etc/lcc.c: In function ‘callsys’:
etc/lcc.c:261: error: ‘NULL’ undeclared (first use in this function)
etc/lcc.c:266: warning: incompatible implicit declaration of built-in function ‘malloc’
etc/lcc.c:268: warning: implicit declaration of function ‘realloc’
etc/lcc.c:268: warning: assignment makes pointer from integer without a cast
etc/lcc.c:274: warning: implicit declaration of function ‘strchr’
etc/lcc.c:274: warning: incompatible implicit declaration of built-in function ‘strchr’
etc/lcc.c:289: warning: incompatible implicit declaration of built-in function ‘fprintf’
etc/lcc.c:289: error: ‘stderr’ undeclared (first use in this function)
etc/lcc.c:301: warning: incompatible implicit declaration of built-in function ‘fprintf’
etc/lcc.c: In function ‘concat’:
etc/lcc.c:310: warning: incompatible implicit declaration of built-in function ‘strlen’
etc/lcc.c:313: warning: implicit declaration of function ‘strcpy’
etc/lcc.c:313: warning: incompatible implicit declaration of built-in function ‘strcpy’
etc/lcc.c: In function ‘compose’:
etc/lcc.c:333: warning: incompatible implicit declaration of built-in function ‘strchr’
etc/lcc.c:334: warning: implicit declaration of function ‘isdigit’
etc/lcc.c:339: warning: incompatible implicit declaration of built-in function ‘strlen’
etc/lcc.c:340: warning: implicit declaration of function ‘strncpy’
etc/lcc.c:340: warning: incompatible implicit declaration of built-in function ‘strncpy’
etc/lcc.c:342: warning: implicit declaration of function ‘strcat’
etc/lcc.c:342: warning: incompatible implicit declaration of built-in function ‘strcat’
etc/lcc.c:355: error: ‘NULL’ undeclared (first use in this function)
etc/lcc.c: In function ‘error’:
etc/lcc.c:360: warning: incompatible implicit declaration of built-in function ‘fprintf’
etc/lcc.c:360: error: ‘stderr’ undeclared (first use in this function)
etc/lcc.c: In function ‘exists’:
etc/lcc.c:371: warning: implicit declaration of function ‘access’
etc/lcc.c:379: warning: implicit declaration of function ‘sprintf’
etc/lcc.c:379: warning: incompatible implicit declaration of built-in function ‘sprintf’
etc/lcc.c: In function ‘first’:
etc/lcc.c:392: warning: incompatible implicit declaration of built-in function ‘strchr’
etc/lcc.c:396: warning: incompatible implicit declaration of built-in function ‘strncpy’
etc/lcc.c: In function ‘filename’:
etc/lcc.c:417: error: ‘NULL’ undeclared (first use in this function)
etc/lcc.c: In function ‘help’:
etc/lcc.c:522: warning: incompatible implicit declaration of built-in function ‘fprintf’
etc/lcc.c:522: error: ‘stderr’ undeclared (first use in this function)
etc/lcc.c:523: warning: implicit declaration of function ‘strncmp’
etc/lcc.c:527: warning: assignment makes pointer from integer without a cast
etc/lcc.c:527: warning: incompatible implicit declaration of built-in function ‘fprintf’
etc/lcc.c:528: warning: assignment makes pointer from integer without a cast
etc/lcc.c: In function ‘initinputs’:
etc/lcc.c:538: warning: initialisation makes pointer from integer without a cast
etc/lcc.c:553: warning: implicit declaration of function ‘strstr’
etc/lcc.c:553: warning: incompatible implicit declaration of built-in function ‘strstr’
etc/lcc.c:553: error: ‘NULL’ undeclared (first use in this function)
etc/lcc.c: In function ‘interrupt’:
etc/lcc.c:571: warning: incompatible implicit declaration of built-in function ‘exit’
etc/lcc.c: In function ‘opt’:
etc/lcc.c:600: warning: incompatible implicit declaration of built-in function ‘fprintf’
etc/lcc.c:600: error: ‘stderr’ undeclared (first use in this function)
etc/lcc.c:634: warning: incompatible implicit declaration of built-in function ‘strstr’
etc/lcc.c:634: error: ‘NULL’ undeclared (first use in this function)
etc/lcc.c:666: warning: incompatible implicit declaration of built-in function ‘fprintf’
etc/lcc.c:706: warning: incompatible implicit declaration of built-in function ‘fprintf’
etc/lcc.c: In function ‘path2list’:
etc/lcc.c:713: error: ‘NULL’ undeclared (first use in this function)
etc/lcc.c:718: warning: incompatible implicit declaration of built-in function ‘strchr’
etc/lcc.c:724: warning: incompatible implicit declaration of built-in function ‘strncpy’
etc/lcc.c:727: warning: incompatible implicit declaration of built-in function ‘strlen’
etc/lcc.c:728: warning: incompatible implicit declaration of built-in function ‘strcpy’
etc/lcc.c: In function ‘replace’:
etc/lcc.c:743: warning: incompatible implicit declaration of built-in function ‘strchr’
etc/lcc.c:743: error: ‘NULL’ undeclared (first use in this function)
etc/lcc.c: In function ‘rm’:
etc/lcc.c:753: warning: incompatible implicit declaration of built-in function ‘fprintf’
etc/lcc.c:753: error: ‘stderr’ undeclared (first use in this function)
etc/lcc.c:758: warning: implicit declaration of function ‘remove’
etc/lcc.c: In function ‘strsave’:
etc/lcc.c:767: warning: incompatible implicit declaration of built-in function ‘strcpy’
etc/lcc.c:767: warning: incompatible implicit declaration of built-in function ‘strlen’
etc/lcc.c: In function ‘stringf’:
etc/lcc.c:777: warning: implicit declaration of function ‘vsprintf’
etc/lcc.c: In function ‘suffix’:
etc/lcc.c:784: warning: incompatible implicit declaration of built-in function ‘strlen’
etc/lcc.c:788: warning: incompatible implicit declaration of built-in function ‘strchr’
etc/lcc.c: In function ‘tempname’:
etc/lcc.c:807: warning: incompatible implicit declaration of built-in function ‘strstr’
etc/lcc.c:807: error: ‘NULL’ undeclared (first use in this function)
make[1]: *** [build-linux-x86/etc/lcc.o] Error 1
make[1]: Leaving directory `/root/Tremulous/src/tools/lcc'
make: *** [tools] Error 2

I am using -r 879 because it's compatible with v1.1

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Re: Error compiling on Linux Ubuntu
« Reply #1 on: March 29, 2008, 03:17:59 am »
1) apt-get install build-essential
2) apt-get build-dep tremulous
3) depending on what you want 879 is either extremely outdated or not compatible with 1.1
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

Ghosthree3

  • Posts: 22
  • Turrets: +0/-0
Re: Error compiling on Linux Ubuntu
« Reply #2 on: March 29, 2008, 03:23:53 am »
TYVM! I would upgrade to the latest but 1.2 is not out yet and even if it is, barely used.
« Last Edit: March 29, 2008, 03:26:53 am by Ghosthree3 »

Ghosthree3

  • Posts: 22
  • Turrets: +0/-0
Re: Error compiling on Linux Ubuntu
« Reply #3 on: March 30, 2008, 05:01:15 am »
Gah, I used this http://bugzilla.icculus.org/attachment.cgi?id=1115 to add in /share.
But when I compiled and moved the compiled game.qvm to windows I ran my server and it said share was an unknown cmd.
Is that website false or is my compiler not working???

EDIT: Nevermind I looked at the console and /test wasn't a real cmd or undeclared something so I deleted it.

EDIT 2: Gah spoke to soon I deleted it and it compiled correctly no errors at all but /share still says unkown cmd.

EDIT 3: Ok I was really stupid and put it in Tremulous/Base instead of the documents and settings one. Problem is now it definatly loads because I get this error.
Code: [Select]
recursive error after: menu file not found: ui/menus.txt, using defaultAnd the game freezes at that error with that flashing at the top of the console. =/

EDIT 4: Well I deleted the ui.qvm and it loads fine now although EDIT 3 is still a problem if it means I can't use UI in the mod.
« Last Edit: March 30, 2008, 07:19:52 am by Ghosthree3 »