Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 02 Dec 2015 11:20:06 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 204962] ports-mgmt/pkg wont build: 'a local symbol' can not be used when making a shared object; recompile with -fPIC
Message-ID:  <bug-204962-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204962

            Bug ID: 204962
           Summary: ports-mgmt/pkg wont build: 'a local symbol' can not be
                    used when making a shared object; recompile with -fPIC
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: pkg@FreeBSD.org
          Reporter: tps@vr-web.de
          Assignee: pkg@FreeBSD.org
             Flags: maintainer-feedback?(pkg@FreeBSD.org)

Compiling from ports/HEAD ports-mgmt/pkg leads to an error:

  CC       libpkg_static_la-scripts.lo
  CC       libpkg_static_la-utils.lo
  CC       libpkg_static_la-plugins.lo
  CC       libpkg_static_la-pkg_old.lo
  CC       libpkg_static_la-merge3.lo
  CC       libpkg_static_la-diff.lo
  CC       libpkg_static_la-elfhints.lo
  CC       libpkg_static_la-pkg_elf.lo
  CCLD     libpkg.la
/usr/bin/ld: /usr/lib/libelf.a(gelf_dyn.o): relocation R_X86_64_32 against `a
local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib/libelf.a: could not read symbols: Bad value
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** [libpkg.la] Error code 1

make[5]: stopped in /usr/ports/ports-mgmt/pkg/work/pkg-1.6.2/libpkg
1 error

make[5]: stopped in /usr/ports/ports-mgmt/pkg/work/pkg-1.6.2/libpkg
*** [all-recursive] Error code 1

make[4]: stopped in /usr/ports/ports-mgmt/pkg/work/pkg-1.6.2/libpkg
1 error

make[4]: stopped in /usr/ports/ports-mgmt/pkg/work/pkg-1.6.2/libpkg
*** [all-recursive] Error code 1

make[3]: stopped in /usr/ports/ports-mgmt/pkg/work/pkg-1.6.2
1 error

make[3]: stopped in /usr/ports/ports-mgmt/pkg/work/pkg-1.6.2
*** [all] Error code 2

make[2]: stopped in /usr/ports/ports-mgmt/pkg/work/pkg-1.6.2
1 error

make[2]: stopped in /usr/ports/ports-mgmt/pkg/work/pkg-1.6.2
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/ports-mgmt/pkg
*** Error code 1

Stop.
make: stopped in /usr/ports/ports-mgmt/pkg

Using -fPIC as adviced does not really help 'pkg' wont run afterwards.

Found with:
- FreeBSD fbsd11-64.bfs.de 11.0-CURRENT FreeBSD 11.0-CURRENT #6 r291575: Tue
Dec  1 18:53:27 CET 2015     root@fbsd11-64.bfs.de:/usr/obj/usr/src/sys/FBSD11 
amd64
- FreeBSD fbsd10-64.bfs.de 10.2-STABLE FreeBSD 10.2-STABLE #6 r291362: Thu Nov
26 11:21:30 CET 2015     root@fbsd10-64.bfs.de:/usr/obj/usr/src/sys/FBSD10 
amd64
- FreeBSD fbsd9-64.bfs.de 9.3-STABLE FreeBSD 9.3-STABLE #5 r291256: Tue Nov 24
16:34:55 CET 2015     root@fbsd9-64.bfs.de:/usr/obj/usr/src/sys/FBSD9  amd64

Ports tree at revision:
- 402366 (FreeBSD 9.3-STABLE)
- 402434 (FreeBSD 10.2-STABLE)
- 402816 (FreeBSD 11.0-CURRENT)

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-204962-13>