Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Mar 2017 20:34:53 -0700
From:      Adam Weinberger <adamw@adamw.org>
To:        Larry Rosenman <ler@lerctr.org>
Cc:        "freebsd-ports@freebsd.org" <freebsd-ports@freebsd.org>
Subject:   Re: Libsrs2: Link Fail
Message-ID:  <A9B0310C-CC08-4B14-96C4-3D3F8E89556A@adamw.org>
In-Reply-To: <B1832BAF-4016-4D9E-B401-097A684BDB8E@lerctr.org>
References:  <B1832BAF-4016-4D9E-B401-097A684BDB8E@lerctr.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> On 8 Mar, 2017, at 20:23, Larry Rosenman <ler@lerctr.org> wrote:
>=20
> =
http://home.lerctr.org:8888/data/p110amd64-host-ports/2017-03-08_21h18m13s=
/logs/errors/libsrs2-1.0.18_3.log
>=20
>=20
>=20
> cc -shared  srs2.lo sha1.lo   -Wl,-soname -Wl,libsrs2.so.0 -o =
.libs/libsrs2.so.0.0.0
>=20
> /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
>=20
> /usr/bin/ld: final link failed: Bad value
>=20
> cc: error: linker command failed with exit code 1 (use -v to see =
invocation)
>=20
> *** [libsrs2.la] Error code 1
>=20
>=20
>=20
> make[3]: stopped in =
/wrkdirs/usr/ports/mail/libsrs2/work/libsrs2-1.0.18/libsrs2
>=20
> 1 error
>=20
>=20
>=20
> make[3]: stopped in =
/wrkdirs/usr/ports/mail/libsrs2/work/libsrs2-1.0.18/libsrs2
>=20
> *** [all-recursive] Error code 1
>=20
>=20
>=20
> make[2]: stopped in =
/wrkdirs/usr/ports/mail/libsrs2/work/libsrs2-1.0.18
>=20
> 1 error
>=20
>=20
>=20
> make[2]: stopped in =
/wrkdirs/usr/ports/mail/libsrs2/work/libsrs2-1.0.18
>=20
> *** [all-recursive-am] Error code 2
>=20
>=20
>=20
> make[1]: stopped in =
/wrkdirs/usr/ports/mail/libsrs2/work/libsrs2-1.0.18
>=20
> 1 error
>=20
>=20
>=20
> make[1]: stopped in =
/wrkdirs/usr/ports/mail/libsrs2/work/libsrs2-1.0.18

Does it compile with -fPIC?

# Adam


--=20
Adam Weinberger
adamw@adamw.org
https://www.adamw.org





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A9B0310C-CC08-4B14-96C4-3D3F8E89556A>