Project

General

Profile

Actions

Bug #13539

closed

modload: multiply-defined symbols

Added by Toomas Soome 12 months ago. Updated 11 months ago.

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

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Build errors with gcc 10:

    ld: fatal: symbol 'driver_aliases' is multiply-defined:
            (file add_drv.o type=OBJT; file drvsubr.o type=OBJT);
    ld: fatal: symbol 'driver_classes' is multiply-defined:
            (file add_drv.o type=OBJT; file drvsubr.o type=OBJT);
    ld: fatal: symbol 'minor_perm' is multiply-defined:
            (file add_drv.o type=OBJT; file drvsubr.o type=OBJT);
    ld: fatal: symbol 'name_to_major' is multiply-defined:
            (file add_drv.o type=OBJT; file drvsubr.o type=OBJT);
    ld: fatal: symbol 'rem_name_to_major' is multiply-defined:
            (file add_drv.o type=OBJT; file drvsubr.o type=OBJT);
    ld: fatal: symbol 'device_policy' is multiply-defined:
            (file add_drv.o type=OBJT; file drvsubr.o type=OBJT);
    ld: fatal: symbol 'extra_privs' is multiply-defined:
            (file add_drv.o type=OBJT; file drvsubr.o type=OBJT);
    ld: fatal: symbol 'devfs_root' is multiply-defined:
            (file add_drv.o type=OBJT; file drvsubr.o type=OBJT);
    ld: fatal: symbol 'moddir' is multiply-defined:
            (file add_drv.o type=OBJT; file drvsubr.o type=OBJT);
    ld: fatal: symbol 'driver_aliases' is multiply-defined:
            (file add_drv.o type=OBJT; file plcysubr.o type=OBJT);
    ld: fatal: symbol 'driver_classes' is multiply-defined:
            (file add_drv.o type=OBJT; file plcysubr.o type=OBJT);
    ld: fatal: symbol 'minor_perm' is multiply-defined:
            (file add_drv.o type=OBJT; file plcysubr.o type=OBJT);
    ld: fatal: symbol 'name_to_major' is multiply-defined:
            (file add_drv.o type=OBJT; file plcysubr.o type=OBJT);
    ld: fatal: symbol 'rem_name_to_major' is multiply-defined:
            (file add_drv.o type=OBJT; file plcysubr.o type=OBJT);
    ld: fatal: symbol 'device_policy' is multiply-defined:
            (file add_drv.o type=OBJT; file plcysubr.o type=OBJT);
    ld: fatal: symbol 'extra_privs' is multiply-defined:
            (file add_drv.o type=OBJT; file plcysubr.o type=OBJT);
    ld: fatal: symbol 'devfs_root' is multiply-defined:
            (file add_drv.o type=OBJT; file plcysubr.o type=OBJT);
    ld: fatal: symbol 'moddir' is multiply-defined:
            (file add_drv.o type=OBJT; file plcysubr.o type=OBJT);
    ld: fatal: file processing errors. No output written to add_drv
    collect2: error: ld returned 1 exit status

Testing done: build/install/boot

Actions #1

Updated by Electric Monk 12 months ago

  • Gerrit CR set to 1251
Actions #2

Updated by Electric Monk 11 months ago

  • Status changed from In Progress to Closed
  • % Done changed from 90 to 100

git commit b2d74f536e6828d7c394fb09b412bf35af42299d

commit  b2d74f536e6828d7c394fb09b412bf35af42299d
Author: Toomas Soome <tsoome@me.com>
Date:   2021-02-17T21:18:03.000Z

    13539 modload: multiply-defined symbols
    Reviewed by: C Fraire <cfraire@me.com>
    Reviewed by: Andy Fiddaman <andy@omniosce.org>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF