[Bug 234845] multimedia/mplayer: fails to properly link with lld

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Jan 11 07:40:01 UTC 2019


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

            Bug ID: 234845
           Summary: multimedia/mplayer: fails to properly link with lld
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: riggs at FreeBSD.org
          Reporter: glebius at FreeBSD.org
          Assignee: riggs at FreeBSD.org
             Flags: maintainer-feedback?(riggs at FreeBSD.org)

Created attachment 201013
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=201013&action=edit
use GNU ld

This is not a dup of 234836! Probably the problem shows up only on head and
amd64?

Port successfully builds, but binary isn't working:

>mplayer 
ld-elf.so.1: /usr/local/lib/libglib-2.0.so.0: Undefined symbol "environ"

The problem is that glib indeed uses this symbol, but the symbol isn't in libc
or any other library. It resides in crt1.o, and should be left in the binary if
any of the libraries the binary is linked against uses it. However, due to bug
in lld this doesn't happen.

A workaround is to use GNU ld.

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


More information about the freebsd-ports-bugs mailing list