[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
Sat Jan 5 20:47:51 UTC 2019


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

--- Comment #28 from Dimitry Andric <dim at FreeBSD.org> ---
Created attachment 200811
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=200811&action=edit
Add FreeBSD specific entries to chrome's version map

Here is a patch that works for me, at least.  It explicitly adds __progname and
environ, which are (as far as I know) the only two symbols that are required to
be exported from an executable.

I'm side stepping the wildcard problem too, but first listing the "local: *"
line, then listing the global symbols after that.  This works fine for lld, but
I didn't try recent BFD ld yet on it.  Chromium is rather expensive in terms of
build time...

In any case, this approach can also work for other chromium based ports such as
iridium.  Mplayer is maybe a simpler case, as its version script can simply be
deleted.

-- 
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