[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: coreutils-8.26: build workaround for Bitrig 1.0
From: |
Pádraig Brady |
Subject: |
Re: coreutils-8.26: build workaround for Bitrig 1.0 |
Date: |
Sun, 22 Jan 2017 02:48:56 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
On 22/01/17 02:08, Nelson H. F. Beebe wrote:
> A build of coreutils-8.26 failed on Bitrig 1.0 (an OpenBSD relative)
> because of this error:
>
> CCLD src/libstdbuf.so
> /usr/bin/ld: /usr/local/lib/libintl.a(dcigettext.o): relocation
> R_X86_64_32 can not be used when making a shared object;
> recompile with -fPIC
> /usr/local/lib/libintl.a: could not read symbols: Bad value
>
> The configure-generated LDFLAGS and other Makefile variables supplies
> libintl.a and libiconv.a, static libraries, yet those settings are
> then used incorrectly to link a shared object.
>
> The solution was to replace the two .a file mentions in all Makefiles
> with their corresponding .so.* files; the builds then completed, and
> only a single test failed:
Interesting. We relaxed the check in configure.ac to allow more
systems to enable stdbuf. On GNU/Linux here LIBINTL is empty.
I'll look into how to reference the shared libs specifically,
or at least disable stdbuf if not fully supported.
thanks!
Pádraig.