[Bug 217688] mail/libsrs2 linkfail: needs -fPIC

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Mar 10 17:46:23 UTC 2017


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

            Bug ID: 217688
           Summary: mail/libsrs2 linkfail: needs -fPIC
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: pi at FreeBSD.org
          Reporter: ler at FreeBSD.org
             Flags: maintainer-feedback?(pi at FreeBSD.org)
          Assignee: pi at FreeBSD.org

cc -shared  srs2.lo sha1.lo   -Wl,-soname -Wl,libsrs2.so.0 -o
.libs/libsrs2.so.0.0.0
/usr/bin/ld: sha1.lo: relocation R_X86_64_PC32 against
`__stack_chk_guard@@FBSD_1.0' can not be used when making a shared object;
recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
cc: error: linker command failed with exit code 1 (use -v to see invocation)

http://home.lerctr.org:8888/data/p110amd64-host-ports/2017-03-08_21h18m13s/logs/errors/libsrs2-1.0.18_3.log

I made a local mod just bumping PORTREVISION and adding

CFLAGS+= -fPIC

and it compiles fine.  I'm not sure if that's 100% correct.

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


More information about the freebsd-ports-bugs mailing list