[Bug 253506] [PATCH] textproc/refdb: ld: error: duplicate symbol: thecommandlist

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Feb 14 14:00:10 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253506

            Bug ID: 253506
           Summary: [PATCH] textproc/refdb: ld: error: duplicate symbol:
                    thecommandlist
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs at FreeBSD.org
          Reporter: ohartmann at walstatt.org

Created attachment 222435
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=222435&action=edit
Add -fcommon to CFLAGS

CLANG has changed its default behaviour by setting -fno-common as the default
option, to meet GCC10 behaviour:

"[...] With this change, C code that uses tentative definitions as definitions
of a variable in multiple translation units will trigger multiple-definition
linker errors. Generally, this occurs when the use of the extern keyword is
neglected in the declaration of a variable in a header file. In some cases, no
specific translation unit provides a definition of the variable. The previous
behavior can be restored by specifying -fcommon. [...]

(see: https://reviews.llvm.org/D75056)

As a "quick and dirty" workaround I added -fcommon to CFALGS to restore the
previous behaviour. A more sophisticated solution (which implies a deeper
insight into the codebase of refdb) would be desireable.

Additionaly, I allowed to change the E-Mail address.

--- Comment #1 from Bugzilla Automation <bugzilla at FreeBSD.org> ---
Maintainer informed via mail

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list