Page MenuHomeDevCentral

Compile darkbot on Eglide
Closed, ResolvedPublic

Description

Both under llvm and gcc reports issues with the current source code:

  • multiple definition of functions, by including prototypes.h everywhere
  • return; in non-void functions (by default a warning in gcc, an error in llvm)

As such, it doesn't compile under llvm 11 (tested under FreeBSD 13) or gcc 10.2 (tested under Debian Bullseye).

Code should be cleaned up to respect modern standards.

Event Timeline

dereckson triaged this task as High priority.Aug 25 2021, 22:52
dereckson created this task.
dereckson moved this task from Backlog to Migration on the Eglide board.
dereckson renamed this task from Compile darkbot on Debian Bullseye to Compile darkbot on recent compilers.Aug 29 2021, 00:36
dereckson updated the task description. (Show Details)
dereckson moved this task from Backlog to Darkbot bugs on the Odderon board.
dereckson moved this task from Backlog to Working on on the Servers board.
dereckson added a project: User-Dereckson.
dereckson moved this task from Backlog to In progress on the User-Dereckson board.

To solve the duplicate issue, move variables declaration from prototypes.h to vars.h, and declare them static should solve the issue.

static char L[524];

static int alarmed;
static int socketfd;
dereckson renamed this task from Compile darkbot on recent compilers to Compile darkbot on Eglide.Aug 29 2021, 13:22