[Bug 214864] [exp-run] test build with lld as /usr/bin/ld

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Nov 26 21:37:39 UTC 2018


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

--- Comment #187 from Jan Beich <jbeich at FreeBSD.org> ---
(In reply to Ed Maste from comment #185)
> audio/mplayer doesn't look like a typical lld failure:
>> Error: The GUI requires either FreeType or bitmap font support.

Try looking inside config.log. FreeType is disabled because iconv() detection
fails which itself fails due to auto-enabled -pie. On amd64 configure appends
-fpie, assuming shared libraries are built with -fPIC, but on i386 this is not
required.

$ cat >a.c
#include <stdio.h>

int main()
{
  printf("Hello World\n");
  return 0;
}

$ cc a.c -pie
/usr/bin/ld: error: can't create dynamic relocation R_386_32 against symbol:
.L.str in readonly segment; recompile object files with -fPIC
>>> defined in /tmp/a-5c8390.o
>>> referenced by a.c
>>>               /tmp/a-5c8390.o:(main)
cc: error: linker command failed with exit code 1 (use -v to see invocation)

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


More information about the freebsd-ports-bugs mailing list