Master link error on Ubuntu 22.04/24.04

Lodev lodev at ossii.com.tw
Thu Jul 24 08:14:30 UTC 2025


Hi Michael,

Michael Weghorn 於 2025/7/24 11:53 寫道:
> On 2025-07-23 07:24, Lodev wrote:
>> We experienced some errors when compiling LibreOffice core (master).
>>
>> We pulled the latest code from master branch.  Running ./autogen.sh 
>> with-distro=LibreOfficeLinux --disable-online-update --disable-breakpad
>>
>> Until this error messages:
>>
>>
>> [...]
>> (.text._ZN7fxcodec12_GLOBAL__N_111JpegDecoder10InitDecodeEb+0x1d2): 
>> undefined reference to `jpeg_destr
>> oy_decompress'
>> /usr/bin/ld: /tmp/lto-llvm-1970ae.o:jpegmodule.cpp: 
>> (.text._ZN7fxcodec12_GLOBAL__N_111JpegDecoder10InitDecodeEb+0x264)
>> : more undefined references to `jpeg_destroy_decompress' follow
>> [build MOD] salhelper
>> [build MOD] scp2
>> clang++: error: linker command failed with exit code 1 (use -v to see 
>> invocation)
>> make[1]: *** [/opt/git/libreoffice.core/external/pdfium/ 
>> Library_pdfium.mk:10: /opt/git/libreoffice.core/instdir/progr
>> am/libpdfiumlo.so] Error 1
>> make[1]: *** Waiting for unfinished jobs....
>> make: *** [Makefile:301: build] Error 2
>>
>> The version of libjpeg and libjpeg-turbo in my system is:
>>
>>
>> ii  libjpeg-dev:amd64                       8c-2ubuntu11 
>>                          amd64        Independent JPEG Group'
>> s JPEG runtime library (dependency package)
>> ii  libjpeg-turbo8:amd64                    2.1.5-2ubuntu2 
>>                        amd64        libjpeg-turbo JPEG runt
>> ime library
>> ii  libjpeg-turbo8-dev:amd64                2.1.5-2ubuntu2 
>>                        amd64        Development files for t
>> he libjpeg-turbo JPEG library
>> ii  libjpeg8:amd64                          8c-2ubuntu11 
>>                          amd64        Independent JPEG Group'
>> s JPEG runtime library (dependency package)
>> ii  libjpeg8-dev:amd64                      8c-2ubuntu11 
>>                          amd64        Independent JPEG Group'
>> s JPEG runtime library (dependency package)
>>
>> Is there any way to solve this?
>
> Just some thoughts on what might help to further track the issue down 
> if nobody comes up with a suggestion on how to solve this right away:
>
> distro-configs/LibreOfficeLinux.conf contains `--without-system-jpeg` 
> which means that the system jpeg shouldn't be used during the build. 
> You could try whether adding `--with-system-jpeg` to force the system 
> one makes any difference (helps to workaround the issue at least).
>
> Otherwise, one way to further track the issue down might be to see 
> whether a build without `--with-distro=LibreOfficeLinux` works, and if 
> so, add the (potentially relevant) autogen options from the 
> above-mentioned distro-configs/LibreOfficeLinux.conf one after the 
> other to see which one is triggering the problem.


Yes, we just found out that using --with-system-jpeg would succeed 
compiling.  So our task could move on.

Just that, does it mean there is something wrong within the master code, 
or the dependencies it involved that needs to be fixed?


Thanks for your reply.


Dev



More information about the LibreOffice mailing list