Your message dated Tue, 26 Nov 2024 20:39:26 +0000 with message-id <e1tg2lg-008iqg...@fasolo.debian.org> and subject line Bug#1084508: fixed in linphone 5.2.0-5 has caused the Debian Bug report #1084508, regarding linphone:FTBFS:build failure (compile failed) to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact ow...@bugs.debian.org immediately.) -- 1084508: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1084508 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems
--- Begin Message ---Source: linphone Version: 5.2.0-4.3 Severity: serious Tags: FTBFS, patch User: debian-ri...@lists.debian.org Usertags: riscv64 X-Debbugs-Cc: debian-ri...@lists.debian.org Dear linphone Maintainer, The package linphone build failed on almost all architectures.The crucial buildd log below: ``` [ 10%] Building CXX object coreapi/CMakeFiles/linphone-coreapi.dir/lsd.c.o cd /<<PKGBUILDDIR>>/obj-riscv64-linux-gnu/coreapi && /usr/bin/c++ -DBCTBX_LOG_DOMAIN=\"liblinphone\" -DBCTBX_STATIC -DCXX_WRAPPER_ENABLED -DHAVE_CONFIG_H -DJPEG_ENABLED -DLDAP_ENABLED -DLDAP_LIBS_DYNAMIC -DLINPHONE_EXPORTS -DQRCODE_ENABLED -DUSE_BELLESIP -DVCARD_ENABLED -DVIDEO_ENABLED -I/<<PKGBUILDDIR>>/coreapi -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/obj-riscv64-linux-gnu -I/<<PKGBUILDDIR>>/obj-riscv64-linux-gnu/coreapi -I/usr/include/belle-sip -I/usr/include/OpenGL -I/usr/include/xsd -I/usr/include/libxml2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DPACKAGE_SOUND_DIR="\"/usr/share/sounds/linphone\"" -DPACKAGE_RING_DIR="\"/usr/share/sounds/linphone/rings\"" -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++17 -fPIC -Wall -Wconversion -Werror=return-type -Winit-self -Wno-error=deprecated-declarations -Wpointer-arith -Wuninitialized -Wunused -Werror -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -fno-strict-aliasing -Wnon-virtual-dtor -Woverloaded-virtual -Wsuggest-override -Wno-error=suggest-override -MD -MT coreapi/CMakeFiles/linphone-coreapi.dir/lsd.c.o -MF CMakeFiles/linphone-coreapi.dir/lsd.c.o.d -o CMakeFiles/linphone-coreapi.dir/lsd.c.o -c /<<PKGBUILDDIR>>/coreapi/lsd.c [ 10%] Building CXX object coreapi/CMakeFiles/linphone-coreapi.dir/misc.c.o cd /<<PKGBUILDDIR>>/obj-riscv64-linux-gnu/coreapi && /usr/bin/c++ -DBCTBX_LOG_DOMAIN=\"liblinphone\" -DBCTBX_STATIC -DCXX_WRAPPER_ENABLED -DHAVE_CONFIG_H -DJPEG_ENABLED -DLDAP_ENABLED -DLDAP_LIBS_DYNAMIC -DLINPHONE_EXPORTS -DQRCODE_ENABLED -DUSE_BELLESIP -DVCARD_ENABLED -DVIDEO_ENABLED -I/<<PKGBUILDDIR>>/coreapi -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/obj-riscv64-linux-gnu -I/<<PKGBUILDDIR>>/obj-riscv64-linux-gnu/coreapi -I/usr/include/belle-sip -I/usr/include/OpenGL -I/usr/include/xsd -I/usr/include/libxml2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DPACKAGE_SOUND_DIR="\"/usr/share/sounds/linphone\"" -DPACKAGE_RING_DIR="\"/usr/share/sounds/linphone/rings\"" -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++17 -fPIC -Wall -Wconversion -Werror=return-type -Winit-self -Wno-error=deprecated-declarations -Wpointer-arith -Wuninitialized -Wunused -Werror -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -fno-strict-aliasing -Wnon-virtual-dtor -Woverloaded-virtual -Wsuggest-override -Wno-error=suggest-override -MD -MT coreapi/CMakeFiles/linphone-coreapi.dir/misc.c.o -MF CMakeFiles/linphone-coreapi.dir/misc.c.o.d -o CMakeFiles/linphone-coreapi.dir/misc.c.o -c /<<PKGBUILDDIR>>/coreapi/misc.c /<<PKGBUILDDIR>>/coreapi/lpconfig.c: In function ‘LpItem* lp_item_new(const char*, const char*)’: /<<PKGBUILDDIR>>/coreapi/lpconfig.c:70:39: error: ‘void* calloc(size_t, size_t)’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Werror=calloc-transposed-args] 70 | #define lp_new0(type,n) (type*)calloc(sizeof(type),n) | ^~~~~~~~~~~~ /<<PKGBUILDDIR>>/coreapi/lpconfig.c:127:22: note: in expansion of macro ‘lp_new0’ 127 | LpItem *item=lp_new0(LpItem,1); | ^~~~~~~ /<<PKGBUILDDIR>>/coreapi/lpconfig.c:70:39: note: earlier argument should specify number of elements, later size of each element 70 | #define lp_new0(type,n) (type*)calloc(sizeof(type),n) | ^~~~~~~~~~~~ /<<PKGBUILDDIR>>/coreapi/lpconfig.c:127:22: note: in expansion of macro ‘lp_new0’ 127 | LpItem *item=lp_new0(LpItem,1); | ^~~~~~~ /<<PKGBUILDDIR>>/coreapi/lpconfig.c: In function ‘LpItem* lp_comment_new(const char*)’: /<<PKGBUILDDIR>>/coreapi/lpconfig.c:70:39: error: ‘void* calloc(size_t, size_t)’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Werror=calloc-transposed-args] 70 | #define lp_new0(type,n) (type*)calloc(sizeof(type),n) | ^~~~~~~~~~~~ /<<PKGBUILDDIR>>/coreapi/lpconfig.c:134:22: note: in expansion of macro ‘lp_new0’ 134 | LpItem *item=lp_new0(LpItem,1); | ^~~~~~~ /<<PKGBUILDDIR>>/coreapi/lpconfig.c:70:39: note: earlier argument should specify number of elements, later size of each element 70 | #define lp_new0(type,n) (type*)calloc(sizeof(type),n) | ^~~~~~~~~~~~ /<<PKGBUILDDIR>>/coreapi/lpconfig.c:134:22: note: in expansion of macro ‘lp_new0’ 134 | LpItem *item=lp_new0(LpItem,1); | ^~~~~~~ /<<PKGBUILDDIR>>/coreapi/lpconfig.c: In function ‘LpSectionParam* lp_section_param_new(const char*, const char*)’: /<<PKGBUILDDIR>>/coreapi/lpconfig.c:70:39: error: ‘void* calloc(size_t, size_t)’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Werror=calloc-transposed-args] 70 | #define lp_new0(type,n) (type*)calloc(sizeof(type),n) | ^~~~~~~~~~~~ /<<PKGBUILDDIR>>/coreapi/lpconfig.c:150:33: note: in expansion of macro ‘lp_new0’ 150 | LpSectionParam *param = lp_new0(LpSectionParam, 1); | ^~~~~~~ /<<PKGBUILDDIR>>/coreapi/lpconfig.c:70:39: note: earlier argument should specify number of elements, later size of each element 70 | #define lp_new0(type,n) (type*)calloc(sizeof(type),n) | ^~~~~~~~~~~~ /<<PKGBUILDDIR>>/coreapi/lpconfig.c:150:33: note: in expansion of macro ‘lp_new0’ 150 | LpSectionParam *param = lp_new0(LpSectionParam, 1); | ^~~~~~~ /<<PKGBUILDDIR>>/coreapi/lpconfig.c: In function ‘LpSection* lp_section_new(const char*)’: /<<PKGBUILDDIR>>/coreapi/lpconfig.c:70:39: error: ‘void* calloc(size_t, size_t)’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Werror=calloc-transposed-args] 70 | #define lp_new0(type,n) (type*)calloc(sizeof(type),n) | ^~~~~~~~~~~~ /<<PKGBUILDDIR>>/coreapi/lpconfig.c:157:24: note: in expansion of macro ‘lp_new0’ 157 | LpSection *sec=lp_new0(LpSection,1); | ^~~~~~~ /<<PKGBUILDDIR>>/coreapi/lpconfig.c:70:39: note: earlier argument should specify number of elements, later size of each element 70 | #define lp_new0(type,n) (type*)calloc(sizeof(type),n) | ^~~~~~~~~~~~ /<<PKGBUILDDIR>>/coreapi/lpconfig.c:157:24: note: in expansion of macro ‘lp_new0’ 157 | LpSection *sec=lp_new0(LpSection,1); | ^~~~~~~ cc1plus: all warnings being treated as errors make[4]: *** [coreapi/CMakeFiles/linphone-coreapi.dir/build.make:485: coreapi/CMakeFiles/linphone-coreapi.dir/lpconfig.c.o] Error 1 make[4]: *** Waiting for unfinished jobs.... /<<PKGBUILDDIR>>/coreapi/misc.c: In function ‘void linphone_core_update_allocated_audio_bandwidth(LinphoneCore*)’: /<<PKGBUILDDIR>>/coreapi/misc.c:74:48: warning: ‘const bctbx_list_t* linphone_core_get_audio_codecs(const LinphoneCore*)’ is deprecated [-Wdeprecated-declarations] 74 | for(elem=linphone_core_get_audio_codecs(lc);elem!=NULL;elem=elem->next){ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from /<<PKGBUILDDIR>>/src/conference/conference.h:27, from /<<PKGBUILDDIR>>/src/conference/session/call-session.h:26, from /<<PKGBUILDDIR>>/src/conference/session/streams.h:29, from /<<PKGBUILDDIR>>/include/linphone/utils/utils.h:36, from /<<PKGBUILDDIR>>/src/core/core-p.h:26, from /<<PKGBUILDDIR>>/coreapi/misc.c:25: /<<PKGBUILDDIR>>/include/linphone/core.h:7015:57: note: declared here 7015 | LINPHONE_PUBLIC LINPHONE_DEPRECATED const bctbx_list_t *linphone_core_get_audio_codecs(const LinphoneCore *core); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /<<PKGBUILDDIR>>/coreapi/misc.c: In function ‘int get_unique_transport(LinphoneCore*, LinphoneTransportType*, int*)’: /<<PKGBUILDDIR>>/coreapi/misc.c:531:41: warning: ‘LinphoneStatus linphone_core_get_sip_transports(LinphoneCore*, LinphoneSipTransports*)’ is deprecated [-Wdeprecated-declarations] 531 | linphone_core_get_sip_transports(lc,&tp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /<<PKGBUILDDIR>>/include/linphone/core.h:7286:52: note: declared here 7286 | LINPHONE_PUBLIC LINPHONE_DEPRECATED LinphoneStatus linphone_core_get_sip_transports(LinphoneCore *core, LinphoneSipTransports *transports); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /<<PKGBUILDDIR>>/coreapi/misc.c: In function ‘void linphone_core_migrate_proxy_config(LinphoneCore*, LinphoneTransportType)’: /<<PKGBUILDDIR>>/coreapi/misc.c:553:66: warning: ‘const char* linphone_proxy_config_get_route(const LinphoneProxyConfig*)’ is deprecated [-Wdeprecated-declarations] 553 | const char *route=linphone_proxy_config_get_route(cfg); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ In file included from /<<PKGBUILDDIR>>/include/linphone/core.h:61: /<<PKGBUILDDIR>>/include/linphone/proxy_config.h:766:49: note: declared here 766 | LINPHONE_PUBLIC LINPHONE_DEPRECATED const char *linphone_proxy_config_get_route(const LinphoneProxyConfig *proxy_config); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /<<PKGBUILDDIR>>/coreapi/misc.c:568:56: warning: ‘LinphoneStatus linphone_proxy_config_set_route(LinphoneProxyConfig*, const char*)’ is deprecated [-Wdeprecated-declarations] 568 | linphone_proxy_config_set_route(cfg,tmp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ /<<PKGBUILDDIR>>/include/linphone/proxy_config.h:759:52: note: declared here 759 | LINPHONE_PUBLIC LINPHONE_DEPRECATED LinphoneStatus linphone_proxy_config_set_route(LinphoneProxyConfig *proxy_config, const char *route); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /<<PKGBUILDDIR>>/coreapi/misc.c: In function ‘LinphoneStatus linphone_core_migrate_to_multi_transport(LinphoneCore*)’: /<<PKGBUILDDIR>>/coreapi/misc.c:589:57: warning: ‘LinphoneStatus linphone_core_set_sip_transports(LinphoneCore*, const LinphoneSipTransports*)’ is deprecated [-Wdeprecated-declarations] 589 | linphone_core_set_sip_transports(lc,&newtp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ /<<PKGBUILDDIR>>/include/linphone/core.h:7273:52: note: declared here 7273 | LINPHONE_PUBLIC LINPHONE_DEPRECATED LinphoneStatus linphone_core_set_sip_transports(LinphoneCore *core, const LinphoneSipTransports *transports); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /<<PKGBUILDDIR>>/coreapi/misc.c: In function ‘bool_t linphone_core_file_format_supported(LinphoneCore*, const char*)’: /<<PKGBUILDDIR>>/coreapi/misc.c:937:70: warning: ‘const char** linphone_core_get_supported_file_formats(LinphoneCore*)’ is deprecated [-Wdeprecated-declarations] 937 | const char **formats=linphone_core_get_supported_file_formats(lc); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ /<<PKGBUILDDIR>>/coreapi/misc.c:914:15: note: declared here 914 | const char ** linphone_core_get_supported_file_formats(LinphoneCore *core){ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[4]: Leaving directory '/<<PKGBUILDDIR>>/obj-riscv64-linux-gnu' make[3]: *** [CMakeFiles/Makefile2:350: coreapi/CMakeFiles/linphone-coreapi.dir/all] Error 2 make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-riscv64-linux-gnu' make[2]: *** [Makefile:139: all] Error 2 make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-riscv64-linux-gnu' dh_auto_build: error: cd obj-riscv64-linux-gnu && make -j4 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2 make[1]: *** [debian/rules:77: override_dh_auto_build-arch] Error 25 make[1]: Leaving directory '/<<PKGBUILDDIR>>' make: *** [debian/rules:50: binary-arch] Error 2 dpkg-buildpackage: error: debian/rules binary-arch subprocess returned exit status 2 ``` The full buildd log is here: https://buildd.debian.org/status/fetch.php?pkg=linphone&arch=riscv64&ver=5.2.0-4.3%2Bb4&stamp=1727424865&raw=0 My solution to this issue: The reason for the compilation failure is the incorrect parameter order of the calloc function. In the lp_new0 macro, the first parameter should be the number of elements, and the second parameter should be the size of each element, but the current definition has them in the reverse order. Modifying the macro definition will resolve this issue.I have test the solution locally ,and it works well.The deb-patch is in the attachment.Please let me know wheather this solution can be accepted. Gui-Yue Best Regardslinphone_fix_compile_failed
Description: Binary data
--- End Message ---
--- Begin Message ---Source: linphone Source-Version: 5.2.0-5 Done: Bastian Germann <b...@debian.org> We believe that the bug you reported is fixed in the latest version of linphone, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to 1084...@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Bastian Germann <b...@debian.org> (supplier of updated linphone package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmas...@ftp-master.debian.org) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 1.8 Date: Tue, 26 Nov 2024 19:12:03 +0000 Source: linphone Architecture: source Version: 5.2.0-5 Distribution: unstable Urgency: medium Maintainer: Debian VoIP Team <pkg-voip-maintain...@lists.alioth.debian.org> Changed-By: Bastian Germann <b...@debian.org> Closes: 1075223 1084508 Changes: linphone (5.2.0-5) unstable; urgency=medium . * Team upload. * Fixed gcc 14 build due to calloc-transposed-args error. (Closes: #1084508, #1075223) Checksums-Sha1: ec22ac89b2e4c2455cd2fe07d4fd37daaedc840a 2775 linphone_5.2.0-5.dsc 7da81a4ac27e9242a1aa6c21ed0eb4d3ea11112b 37064 linphone_5.2.0-5.debian.tar.xz dd8fd3f43f7c17e6b1838bc1c683471b23c86d8e 6846 linphone_5.2.0-5_source.buildinfo Checksums-Sha256: 2c3e627bef074290f6a6670ed60bc83991b76c73a195fe379b0bcadd701d6594 2775 linphone_5.2.0-5.dsc 03b637edf5e24e9baf31df8306cd5a662ffc27080556818568b6f8e70cb29367 37064 linphone_5.2.0-5.debian.tar.xz e93123770b52948dee04d8473f5b82d68df63e2b5ac5b1ec06fd61a129e7cf2f 6846 linphone_5.2.0-5_source.buildinfo Files: 1dee2363713bde188f1263e914423660 2775 sound optional linphone_5.2.0-5.dsc 4a9ab7853bb86c6460448a5f8b0ea286 37064 sound optional linphone_5.2.0-5.debian.tar.xz a0a38f1c084103fd1b32806350770999 6846 sound optional linphone_5.2.0-5_source.buildinfo -----BEGIN PGP SIGNATURE----- iQHEBAEBCgAuFiEEQGIgyLhVKAI3jM5BH1x6i0VWQxQFAmdGKJ4QHGJhZ2VAZGVi aWFuLm9yZwAKCRAfXHqLRVZDFI3xDADFu9Rp0zdYtrjCKA9YX/I3APmOAkooaJhv E4zQ6cJt8yf5NSOVFsOBXlNmL7IHJrH8gdVXTUgrFhLIaM0TWtXJpZ9OftgNo/9I 4TYss1du6RecLm2Zp2iDQWdEH7aB/4aTzbQ5nIQO19hxQnvvN2eStjAZ2r5F376k 7R6oRd8bKuhpA2OACZg7GO7KipwqiJWstbqy9RVL+XDyVyd3JHtFiaT18Iel8MAq 6A5hykGHJZhZGyGCEqiGMbnl/a+lJgvhtOlSrXwEUHAdlEeijI4G3ZuryIK28TcG J6ilqVebptVFyGxVHPx/5Hv/UshLEURI0P5rzzCCMBxokZChbYazgRrUv6m0o8Z+ tVE4ruCi//oTUi7c7WHNwJkd5Nkq6emgscAWW/z6E2P5gYcmQkr/A6m1cnIhrFha Gbd/aOkSRRXXi6vZ3JzMJx9xKnwOIoQTIpANEE3RFDKyO19bBlrqlGGxMFI+vGMQ IttlOcONtJ2+/OtcKD+Dj6HGQdsemNM= =bhlh -----END PGP SIGNATURE-----pgpiDanbb5uzD.pgp
Description: PGP signature
--- End Message ---