[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
Sun Jan 6 08:02:13 UTC 2019


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

--- Comment #30 from Michal Meloun <mmel at FreeBSD.org> ---
Only FYI. Reordering of local and global sections isn't necessary in this case.
Seems that global section have priority before local section.


root at tegra210:/usr/ports/multimedia/mplayer/work/mplayer-export-2018-12-24 # ld
-v
LLD 7.0.1 (FreeBSD 349250-1300001) (compatible with GNU linkers)

root at tegra210:/usr/ports/multimedia/mplayer/work/mplayer-export-2018-12-24 #
more binary.ver
MPLAYER_1 {
  # to support glibcs abhorrent backwards-compatibility hack
  global: _IO_stdin_used;
          __progname;
          environ;

  local: *;
};

root at tegra210:/usr/ports/multimedia/mplayer/work/mplayer-export-2018-12-24 #
readelf -s ./mplayer | grep environ
   818: 0000000000500000     8 OBJECT  GLOBAL DEFAULT   24 environ@@MPLAYER_1
(2)
  7023: 0000000000500000     8 OBJECT  GLOBAL DEFAULT   24 environ

root at tegra210:/usr/ports/multimedia/mplayer/work/mplayer-export-2018-12-24 #
./mplayer
MPlayer SVN-r38119-snapshot-7.0.1 (C) 2000-2018 MPlayer Team
Usage:   mplayer [options] [url|path/]filename
...

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


More information about the freebsd-toolchain mailing list