Re: devel/qt6-base fails to build after archivers/zstd update?

From: Po-Chuan Hsieh <sunpoet_at_freebsd.org>
Date: Sun, 09 Apr 2023 23:42:57 UTC
Hi,

On Mon, Apr 10, 2023 at 6:00 AM Jonathan Chen <jonc@chen.org.nz> wrote:

> Hi,
>
> I'm getting build failures on devel/qt6-base during the link stage:
>
> ...
> ld: error: relocation R_X86_64_32 cannot be used against local symbol;
> recompile with -fPIC
>  >>> defined in /usr/local/lib/libzstd.a(zstd_common.o)
>  >>> referenced by zstd_common.c
>  >>>               zstd_common.o:(ZSTD_versionString) in archive
> /usr/local/lib/libzstd.a
>
> ld: error: relocation R_X86_64_32 cannot be used against local symbol;
> recompile with -fPIC
>  >>> defined in /usr/local/lib/libzstd.a(error_private.o)
>  >>> referenced by error_private.c
>  >>>               error_private.o:(ERR_getErrorString) in archive
> /usr/local/lib/libzstd.a
>
> ld: error: relocation R_X86_64_32S cannot be used against local symbol;
> recompile with -fPIC
>
> I had a quick look thru' the commits, and I think that that the latest
> build-changes against archivers/zstd has triggered the failure?
>

It should be fixed in ports 454e3c91ae9105a9af1939c9632424083ed3bbdb.
Thanks.


>
> Cheers
> --
> Jonathan Chen <jonc@chen.org.nz>
>