Re: ZoneMinder FTBS - librtmp linker error

2022-10-20 Thread Leigh Scott

The new ffmpeg build with rtmp disabled fixes the issue.


https://koji.rpmfusion.org/koji/buildinfo?buildID=23950


On 20/10/2022 08:14, Nicolas Chauvet wrote:

Le jeu. 20 oct. 2022 à 01:49,  a écrit :

ZoneMinder is failing to build, only on el9, with the following:

[100%] Linking CXX executable zm_rtsp_server
cd /builddir/build/BUILD/zoneminder-1.36.30/redhat-linux-build/src && 
/usr/bin/cmake -E cmake_link_script CMakeFiles/zm_rtsp_server.dir/link.txt --verbose=1
/usr/bin/g++ -O2  -fexceptions -g -grecord-gcc-switches -pipe -Wall 
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS 
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong 
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64-v2 
-mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection 
-fcf-protection -O2 -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now 
-specs=/usr/lib/rpm/redhat/redhat-hardened-ld 
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 
CMakeFiles/zm_rtsp_server.dir/zm_rtsp_server.cpp.o -o zm_rtsp_server  libzm.a 
-lrt /usr/lib64/libz.so /usr/lib64/libjpeg.so /usr/lib64/libssl.so 
/usr/lib64/libcrypto.so /usr/lib64/libpthread.a /usr/lib64/libpcre.so 
/usr/lib64/libmysqlclient.so /usr/lib64/libavformat.so /usr/lib64/libavcodec.so 
/usr/lib64/libavdevice.so /usr/lib64/libavutil.so /usr/lib64/libswscale.so 
/usr/lib64/libswresample.so -ldl ../dep/libbcrypt/libbcrypt.a 
../dep/RtspServer/libRtspServer.a
/usr/bin/ld: /usr/lib64/librtmp.so.1: undefined reference to `__gmpz_set_ui'

For some reason, the gmp package in EPEL9 isn't using -gmp at build time.
This is an issue for the librtmp packager to be fixed in epel9 as I understand.

I don't get what would workaround the issue in some cases (maybe link
ordering ?).

Hope this helps.
___
rpmfusion-developers mailing list -- rpmfusion-developers@lists.rpmfusion.org
To unsubscribe send an email to rpmfusion-developers-le...@lists.rpmfusion.org

___
rpmfusion-developers mailing list -- rpmfusion-developers@lists.rpmfusion.org
To unsubscribe send an email to rpmfusion-developers-le...@lists.rpmfusion.org


Re: ZoneMinder FTBS - librtmp linker error

2022-10-20 Thread Nicolas Chauvet
Le jeu. 20 oct. 2022 à 01:49,  a écrit :
>
> ZoneMinder is failing to build, only on el9, with the following:
>
> [100%] Linking CXX executable zm_rtsp_server
> cd /builddir/build/BUILD/zoneminder-1.36.30/redhat-linux-build/src && 
> /usr/bin/cmake -E cmake_link_script CMakeFiles/zm_rtsp_server.dir/link.txt 
> --verbose=1
> /usr/bin/g++ -O2  -fexceptions -g -grecord-gcc-switches -pipe -Wall 
> -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS 
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong 
> -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64-v2 
> -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection 
> -fcf-protection -O2 -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now 
> -specs=/usr/lib/rpm/redhat/redhat-hardened-ld 
> -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 
> CMakeFiles/zm_rtsp_server.dir/zm_rtsp_server.cpp.o -o zm_rtsp_server  libzm.a 
> -lrt /usr/lib64/libz.so /usr/lib64/libjpeg.so /usr/lib64/libssl.so 
> /usr/lib64/libcrypto.so /usr/lib64/libpthread.a /usr/lib64/libpcre.so 
> /usr/lib64/libmysqlclient.so /usr/lib64/libavformat.so 
> /usr/lib64/libavcodec.so /usr/lib64/libavdevice.so /usr/lib64/libavutil.so 
> /usr/lib64/libswscale.so /usr/lib64/libswresample.so -ldl 
> ../dep/libbcrypt/libbcrypt.a ../dep/RtspServer/libRtspServer.a
> /usr/bin/ld: /usr/lib64/librtmp.so.1: undefined reference to `__gmpz_set_ui'

For some reason, the gmp package in EPEL9 isn't using -gmp at build time.
This is an issue for the librtmp packager to be fixed in epel9 as I understand.

I don't get what would workaround the issue in some cases (maybe link
ordering ?).

Hope this helps.
___
rpmfusion-developers mailing list -- rpmfusion-developers@lists.rpmfusion.org
To unsubscribe send an email to rpmfusion-developers-le...@lists.rpmfusion.org