[Bug 220103] devel/glib20: ld-elf.so.1: /usr/local/lib/libglib-2.0.so.0: Undefined symbol "environ" (WITH_LLD_IS_LD)

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Jan 2 13:00:41 UTC 2019


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

Dimitry Andric <dim at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dim at FreeBSD.org

--- Comment #7 from Dimitry Andric <dim at FreeBSD.org> ---
This seems to be related to bug 234070, in the sense that mplayer (the only
concrete example of this problem that I have been able to reproduce) also uses
linker symbol versioning script which includes wildcards:

$ cat
/wrkdirs/usr/ports/multimedia/mplayer/work/mplayer-export-2018-12-24/binary.ver
MPLAYER_1 {
  # to support glibcs abhorrent backwards-compatibility hack                   
                                                                               
                                                       global: _IO_stdin_used; 
                                                                               
                                                                               
                            local: *;                                          
                                                                               
                                                                              
};

Simply eliminating the versioning script should fix the problem for mplayer, at
least.

My guess is that the other ports exhibiting this issue are also doing similar
tricks with their versioning scripts.

As to the linker behavior with these wildcards, this is still being debated
upstream, see the discussion in <https://bugs.llvm.org/show_bug.cgi?id=40176>.

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


More information about the freebsd-toolchain mailing list