Project

General

Profile

Actions

Bug #14146

closed

sgs/prof: multiply-defined symbols

Added by Yuri Pankov about 2 months ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

Build errors with gcc10:

ld: fatal: symbol 'debug_value' is multiply-defined:
        (file prof.o type=OBJT; file symintOpen.o type=OBJT);
ld: fatal: symbol 'debug_value' is multiply-defined:
        (file prof.o type=OBJT; file symintClose.o type=OBJT);
ld: fatal: symbol 'debug_value' is multiply-defined:
        (file prof.o type=OBJT; file symintUtil.o type=OBJT);
ld: fatal: symbol 'debug_value' is multiply-defined:
        (file prof.o type=OBJT; file symintLoad.o type=OBJT);
ld: fatal: file processing errors. No output written to prof

To test this, I simply ran the resulting prof binary (it runs) -- all uses of debug_value are hidden under OLD_DEBUG() (the fix does the same for debug_value). More so, after uncommenting OLD_DEBUG (i.e. #define OLD_DEBUG(x) x) build fails because of the other issues unrelated to debug_value (probably the code is showing its age).


Files

prof.txt (208 KB) prof.txt disassembly diff Yuri Pankov, 2021-10-12 02:49 PM
Actions

Also available in: Atom PDF