Bug 234863

Summary: multimedia/libav: fails to build on i386 with lld as system linker
Product: Ports & Packages Reporter: Ed Maste <emaste>
Component: Individual Port(s)Assignee: Thomas Zander <riggs>
Status: Closed FIXED    
Severity: Affects Only Me CC: dem.procopiou, riggs
Priority: --- Flags: riggs: maintainer-feedback-
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on:    
Bug Blocks: 214864    

Description Ed Maste freebsd_committer freebsd_triage 2019-01-11 14:12:25 UTC
http://package18.nyi.freebsd.org/build.html?mastername=headi386PR214864-default&build=2019-01-05_21h00m02s
http://package18.nyi.freebsd.org/data/headi386PR214864-default/2019-01-05_21h00m02s/logs/errors/libav-12.3.log

ld: error: can't create dynamic relocation R_386_32 against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in libavutil/aes.o
>>> referenced by aes.c
>>>               libavutil/aes.o:(av_aes_crypt)

ld: error: can't create dynamic relocation R_386_32 against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in libavutil/aes.o
>>> referenced by aes.c
>>>               libavutil/aes.o:(av_aes_crypt)

ld: error: can't create dynamic relocation R_386_32 against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in libavutil/aes.o
>>> referenced by aes.c
>>>               libavutil/aes.o:(av_aes_crypt)
...
Comment 1 Thomas Zander freebsd_committer freebsd_triage 2019-02-02 14:26:48 UTC
Feedback timeout
Comment 2 commit-hook freebsd_committer freebsd_triage 2019-02-02 19:15:44 UTC
A commit references this bug:

Author: riggs
Date: Sat Feb  2 19:15:16 UTC 2019
New revision: 491976
URL: https://svnweb.freebsd.org/changeset/ports/491976

Log:
  Use LLD_UNSAFE on i386

  PR:		234863
  Submitted by:	emaste
  Approved by:	maintainer timeout

Changes:
  head/multimedia/libav/Makefile