After ripping my hair out trying and failing to get GCC-3.4 on Ubuntu 18, I installed a fresh copy of Ubuntu Fiesty, and installed GCC-3.4
I attempted to compile my existing code, and received a ton of errors. I then downloaded a stock ROM 2.4, and get the same errors, so i know my issue is in my server's configuration.
I've ran in to this before, and I don't remember what i did to fix it.
heres the output from running make
any ideas. i notice the missing files. Is there a package i need to install to get those?
i figure if i can get a working compiling system, i can then manually update ubuntu back up the current version.
thanks!
I attempted to compile my existing code, and received a ton of errors. I then downloaded a stock ROM 2.4, and get the same errors, so i know my issue is in my server's configuration.
I've ran in to this before, and I don't remember what i did to fix it.
heres the output from running make
gcc-3.4 -c -Wall -g3 act_comm.c
act_comm.c:62:23: sys/types.h: No such file or directory
act_comm.c:63:22: sys/time.h: No such file or directory
act_comm.c:65:19: stdio.h: No such file or directory
act_comm.c:66:20: string.h: No such file or directory
act_comm.c:67:20: stdlib.h: No such file or directory
act_comm.c:68:18: time.h: No such file or directory
In file included from act_comm.c:69:
merc.h:610: error: syntax error before "time_t"
merc.h:610: warning: no semicolon at end of struct or union
merc.h:611: warning: type defaults to `int' in declaration of `expire'
merc.h:611: warning: data definition has no type or storage class
merc.h:1645: error: syntax error before "time_t"
merc.h:1645: warning: no semicolon at end of struct or union
In file included from act_comm.c:69:
merc.h:1745: error: syntax error before "time_t"
merc.h:1745: warning: no semicolon at end of struct or union
merc.h:1746: warning: type defaults to `int' in declaration of `logon'
merc.h:1746: warning: data definition has no type or storage class
merc.h:1759: warning: built-in function 'exp' declared as non-function
merc.h:1810: error: syntax error before '}' token
merc.h:1865: error: syntax error before "time_t"
merc.h:1865: warning: no semicolon at end of struct or union
merc.h:1868: error: syntax error before '}' token
merc.h:2385: error: syntax error before "current_time"
merc.h:2385: warning: type defaults to `int' in declaration of `current_time'
merc.h:2385: warning: data definition has no type or storage class
merc.h:2387: error: syntax error before '*' token
merc.h:2387: warning: type defaults to `int' in declaration of `fpReserve'
merc.h:2387: warning: data definition has no type or storage class
merc.h:2563: warning: conflicting types for built-in function 'logf'
merc.h:2584: error: 'wiznet' redeclared as different kind of symbol
merc.h:1765: error: previous declaration of 'wiznet' was here
merc.h:2607: error: 'act' redeclared as different kind of symbol
merc.h:1762: error: previous declaration of 'act' was here
merc.h:2631: error: syntax error before '*' token
merc.h:2632: error: syntax error before '*' token
merc.h:2633: error: syntax error before '*' token
merc.h:2634: error: syntax error before '*' token
merc.h:2635: error: syntax error before '*' token
merc.h:2636: error: syntax error before '*' token
merc.h:2637: error: syntax error before '*' token
merc.h:2684: error: 'damage' redeclared as different kind of symbol
merc.h:1804: error: previous declaration of 'damage' was here
merc.h:2986: error: conflicting types for 'off_flags'
merc.h:1803: error: previous declaration of 'off_flags' was here
merc.h:2987: error: conflicting types for 'imm_flags'
merc.h:1766: error: previous declaration of 'imm_flags' was here
merc.h:2988: error: conflicting types for 'res_flags'
merc.h:1767: error: previous declaration of 'res_flags' was here
merc.h:2989: error: conflicting types for 'vuln_flags'
merc.h:1768: error: previous declaration of 'vuln_flags' was here
act_comm.c: In function `talk_auction':
act_comm.c:86: warning: implicit declaration of function `sprintf'
act_comm.c:88: error: `NULL' undeclared (first use in this function)
act_comm.c:88: error: (Each undeclared identifier is reported only once
act_comm.c:88: error: for each function it appears in.)
act_comm.c: In function `do_delete':
act_comm.c:108: error: dereferencing pointer to incomplete type
act_comm.c:111: error: dereferencing pointer to incomplete type
act_comm.c:114: error: dereferencing pointer to incomplete type
act_comm.c:119: error: dereferencing pointer to incomplete type
act_comm.c:125: error: dereferencing pointer to incomplete type
act_comm.c:127: error: dereferencing pointer to incomplete type
act_comm.c:128: error: dereferencing pointer to incomplete type
act_comm.c:129: error: `NULL' undeclared (first use in this function)
act_comm.c:131: error: dereferencing pointer to incomplete type
act_comm.c:151: error: dereferencing pointer to incomplete type
act_comm.c: In function `do_reroll':
act_comm.c:164: error: dereferencing pointer to incomplete type
act_comm.c:167: error: dereferencing pointer to incomplete type
act_comm.c:172: error: dereferencing pointer to incomplete type
act_comm.c:177: error: dereferencing pointer to incomplete type
act_comm.c:183: error: dereferencing pointer to incomplete type
act_comm.c:185: error: dereferencing pointer to incomplete type
act_comm.c:186: error: dereferencing pointer to incomplete type
---removed about 1000 lines of same error to fit posting requirements---
act_comm.c:3703: error: dereferencing pointer to incomplete type
act_comm.c:3708: error: dereferencing pointer to incomplete type
make: *** [act_comm.o] Error 1
any ideas. i notice the missing files. Is there a package i need to install to get those?
i figure if i can get a working compiling system, i can then manually update ubuntu back up the current version.
thanks!