Re: git: ea422215bfa5 - main - graphics/libavif: Update to 1.2.0

From: Rainer Hurling <rhurlin_at_gwdg.de>
Date: Fri, 14 Mar 2025 20:05:55 UTC
Am 14.03.25 um 21:00 schrieb Craig Leres:
> On 3/14/25 02:57, Po-Chuan Hsieh wrote:
>> The branch main has been updated by sunpoet:
>>
>> URL:https://cgit.FreeBSD.org/ports/commit/? 
>> id=ea422215bfa561bcbf3dfd03e1183132cfeb9ec0
>>
>> commit ea422215bfa561bcbf3dfd03e1183132cfeb9ec0
>> Author:     Po-Chuan Hsieh<sunpoet@FreeBSD.org>
>> AuthorDate: 2025-03-14 09:38:24 +0000
>> Commit:     Po-Chuan Hsieh<sunpoet@FreeBSD.org>
>> CommitDate: 2025-03-14 09:54:03 +0000
>>
>>      graphics/libavif: Update to 1.2.0
> 
> This updated doesn't build for me (14.2/amd64/poudriere). I think it's 
> missing LDFLAGS+=-lm

This error does not happen with OPTION LIBYUV enabled. This option has 
graphics/libyuv as dependency.

> 
>          Craig
> 
> [ 80% 61/63] : && /usr/local/libexec/ccache/cc -O2 -pipe -fstack- 
> protector-strong -fno-strict-aliasing -O2 -pipe -fstack-protector-strong 
> -fno-strict-aliasing  -DNDEBUG -fstack-protector-strong     -Xlinker -- 
> dependency-file=CMakeFiles/avifenc.dir/link.d CMakeFiles/avifenc.dir/ 
> apps/avifenc.c.o -o avifenc -Wl,-rpath,/wrkdirs/usr/ports/graphics/ 
> libavif/work/.build:/usr/local/lib:  libavif_apps.a  
> libavif.so.16.2.0  /usr/local/lib/libpng.so /usr/lib/libz.so  /usr/ 
> local/lib/libjpeg.so && :
> FAILED: avifenc
> : && /usr/local/libexec/ccache/cc -O2 -pipe  -fstack-protector-strong - 
> fno-strict-aliasing -O2 -pipe  -fstack-protector-strong -fno-strict- 
> aliasing  -DNDEBUG -fstack-protector-strong     -Xlinker --dependency- 
> file=CMakeFiles/avifenc.dir/link.d CMakeFiles/avifenc.dir/apps/ 
> avifenc.c.o -o avifenc -Wl,-rpath,/wrkdirs/usr/ports/graphics/libavif/ 
> work/.build:/usr/local/lib:  libavif_apps.a  libavif.so.16.2.0  /usr/ 
> local/lib/libpng.so /usr/lib/libz.so  /usr/local/lib/libjpeg.so && :
> ld: error: undefined symbol: round
>  >>> referenced by iccmaker.c
>  >>>               iccmaker.c.o:(avifGenerateRGBICC) in archive 
> libavif_apps.a
>  >>> referenced by iccmaker.c
>  >>>               iccmaker.c.o:(avifGenerateRGBICC) in archive 
> libavif_apps.a
>  >>> referenced by iccmaker.c
>  >>>               iccmaker.c.o:(avifGenerateRGBICC) in archive 
> libavif_apps.a
>  >>> referenced 10 more times
> 
> ld: error: undefined symbol: roundf
>  >>> referenced by iccmaker.c
>  >>>               iccmaker.c.o:(avifGenerateRGBICC) in archive 
> libavif_apps.a
>  >>> referenced by iccmaker.c
>  >>>               iccmaker.c.o:(avifGenerateGrayICC) in archive 
> libavif_apps.a
> cc: error: linker command failed with exit code 1 (use -v to see 
> invocation)