Bug 248845

Summary: audio/squash: breaks under new -fno-common defaults (LLVM 11)
Product: Ports & Packages Reporter: Matthias Andree <mandree>
Component: Individual Port(s)Assignee: Matthias Andree <mandree>
Status: Closed FIXED    
Severity: Affects Some People Flags: mandree: maintainer-feedback+
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on:    
Bug Blocks: 248756    

Description Matthias Andree freebsd_committer freebsd_triage 2020-08-23 09:07:44 UTC
pkg-fallout reported duplicate symbols in the link stage for audio/squash, such as (a truckload full of these, to the point of the toolchain refusing to report more such issues):

ld: error: duplicate symbol: status_info
>>> defined at player.c
>>>            obj/player.o:(status_info)
>>> defined at playlist_manager.c
>>>            obj/playlist_manager.o:(.bss+0x248)
Comment 1 Matthias Andree freebsd_committer freebsd_triage 2020-08-23 09:08:18 UTC
fixed in r545810
Comment 2 commit-hook freebsd_committer freebsd_triage 2020-08-23 09:08:28 UTC
A commit references this bug:

Author: mandree
Date: Sun Aug 23 09:08:09 UTC 2020
New revision: 545810
URL: https://svnweb.freebsd.org/changeset/ports/545810

Log:
  audio/squash: add -fcommon and LICENSE

  audio/squash is old code from 2004, add -fcommon to the compiler flags
  because that was the default when the code was developed. FreeBSD 13
  is apparently going to flip the switch to -fno-common, which causes
  linker failure.

  While here, add LICENSE and bump PORTREVISION.

  PR:		248845

Changes:
  head/audio/squash/Makefile