Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Feb 2021 14:00:10 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 253506] [PATCH] textproc/refdb: ld: error: duplicate symbol: thecommandlist
Message-ID:  <bug-253506-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253506

            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@FreeBSD.org
          Reporter: ohartmann@walstatt.org

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

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

"[...] With this change, C code that uses tentative definitions as definiti=
ons
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 previo=
us
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@FreeBSD.org> ---
Maintainer informed via mail

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-253506-7788>