Buiiding LO6.1.4.2 mixes embeded libicuuc with system libicuuc

Eike Rathke erack at redhat.com
Mon Jan 21 15:18:11 UTC 2019


Hi Дилян,

On Sunday, 2019-01-20 17:08:35 +0000, Дилян Палаузов wrote:

> On my system I have 2x libicuuc.so:
> 
> - in /usr/local/lib, which contains ublock_getCode_60 and
> - in /src/libreoffice-6.1.4.2/build5/workdir/UnpackedTarball/icu/source/lib/libicuuc.so containing ublock_getCode_61
> 
> Linking libsofficeapp.so is performed by calling
> 
> S=/src/libreoffice-6.1.4.2 && B=$S/build5 && I=$B/instdir && W=$B/workdir &&  g++
> [...]
> '-Wl,-rpath,$ORIGIN' -Wl,-rpath-link,$I/program -Wl,-rpath-link,/lib:/usr/lib
> [...]
> -L$W/UnpackedTarball/icu/source/lib -licuuc  -
> 
> which prefers /usr/local/lib/libicuuc.so over -L$W/UnpackedTarball/icu/source/lib/libicuuc.so and the linker complains:

That's odd. -L... tells where to look for the lib. Which perfectly works
for me (also using g++ 8.2.1) with icu 60 in /usr/lib64/icu

Do you by chance have /usr/local/lib in the LIBRARY_PATH environment
variable (note that's not LD_LIBRARY_PATH)? If so, please unset before
building.

  Eike

-- 
GPG key 0x6A6CD5B765632D3A - 2265 D7F3 A7B0 95CC 3918  630B 6A6C D5B7 6563 2D3A
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20190121/3a879d8d/attachment.sig>


More information about the LibreOffice mailing list