Bug 248743 - net-mgmt/iftop: Fix build with -fno-common (clang 11 and gcc 10)
Summary: net-mgmt/iftop: Fix build with -fno-common (clang 11 and gcc 10)
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Vasil Dimov
Depends on:
Blocks: 248756
  Show dependency treegraph
Reported: 2020-08-18 21:12 UTC by Dimitry Andric
Modified: 2020-09-01 11:59 UTC (History)
0 users

See Also:
vd: maintainer-feedback+
koobs: merge-quarterly?

Fix build with -fno-common (clang 11 and gcc 10) (2.09 KB, patch)
2020-08-18 21:12 UTC, Dimitry Andric
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dimitry Andric freebsd_committer 2020-08-18 21:12:07 UTC
Created attachment 217328 [details]
Fix build with -fno-common (clang 11 and gcc 10)

In base r364284, I imported clang 11 into head. Like gcc 10, it now defaults to -fno-common, meaning that duplicated global symbols will most likely lead to link errors. Here is a patch to fix this port's duplicated global symbols.
Comment 1 commit-hook freebsd_committer 2020-09-01 11:50:24 UTC
A commit references this bug:

Author: vd
Date: Tue Sep  1 11:50:20 UTC 2020
New revision: 547265
URL: https://svnweb.freebsd.org/changeset/ports/547265

  net-mgmt/iftop: fix build with -fno-common (clang11/gcc10)

  PR:		248743
  Submitted by:	dim
  MFH:		2020Q3 (build fix)

Comment 2 Vasil Dimov freebsd_committer 2020-09-01 11:59:22 UTC
Committed, thanks!