[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  ROM
. -> [Folder]  Compiling the server
. . -> [Subject]  Just dusted off my mud server, compiling issues on a Fresh Ubuntu Install

Just dusted off my mud server, compiling issues on a Fresh Ubuntu Install

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by YoshoFyre   (29 posts)  [Biography] bio
Date Thu 31 Jan 2019 03:37 AM (UTC)

Amended on Thu 31 Jan 2019 03:38 AM (UTC) by YoshoFyre

Message
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


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!
[Go to top] top

Posted by YoshoFyre   (29 posts)  [Biography] bio
Date Reply #1 on Thu 31 Jan 2019 11:53 AM (UTC)
Message
doh

found my issue. i needed to

sudo apt-get install build-essentials
[Go to top] top

Posted by Nick Gammon   Australia  (23,016 posts)  [Biography] bio   Forum Administrator
Date Reply #2 on Thu 31 Jan 2019 08:05 PM (UTC)
Message
Really? That was it? What version of the compiler do you have now?

Those old servers tended to use things that are now either errors or warnings in the latest compilers.

For example, passing a string literal to a function which takes "char *" as an argument. Since a "char *" argument can be modified by the called function, and a string literal should not be modified, these things aren't allowed any more.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by YoshoFyre   (29 posts)  [Biography] bio
Date Reply #3 on Tue 05 Feb 2019 02:38 AM (UTC)
Message
current GCC version

Quote:
Reading specs from /usr/lib/gcc/x86_64-linux-gnu/3.4.6/specs
Configured with: ../src/configure -v --enable-languages=c,c++,f77,pascal --prefix=/usr --libexecdir=/usr/lib --with-gxx-include-dir=/usr/include/c++/3.4 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --program-suffix=-3.4 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug x86_64-linux-gnu
Thread model: posix
gcc version 3.4.6 (Ubuntu 3.4.6-6ubuntu2)


current linux version
Quote:
Welcome to Ubuntu 18.04.1 LTS (GNU/Linux 4.4.0-141-generic x86_64)


I updated the OS all the way to current.

The mud compiles, but on launch it immediately tries to hot reboot and fails

Quote:
Sun Feb 3 20:10:14 2019 :: FyreMUD is ready to rock on ports 7000 and 8080.
Sun Feb 3 20:10:14 2019 :: Hot Reboot recovery initiated
copyover_recover:fopen: No such file or directory
Sun Feb 3 20:10:14 2019 :: Copyover file not found. Exiting.



I'm sure i have something foobarred in the code, I need to start digging through it.
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


11,164 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]