Re: net/liblinphone fails to biuld on 14.0-CURRENT 1400079

From: Moin Rahman <bofh_at_freebsd.org>
Date: Sat, 11 Feb 2023 13:57:47 UTC

> On 11 Feb 2023, at 08:08, José Pérez <fbl@aoek.com> wrote:
> 
> Hi,
> I get the following error when poudriere building net/liblinphone on 14.0-CURRENT 1400079:q
> /wrkdirs/usr/ports/net/liblinphone/work/liblinphone-c5d52f725840bceca36874f480d86bdbb91f5b7e/console/linphonec.c:968:21: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
> linphonec_idle_call ()
>                    ^
>                     void
> /wrkdirs/usr/ports/net/liblinphone/work/liblinphone-c5d52f725840bceca36874f480d86bdbb91f5b7e/console/linphonec.c:978:3: warning: 'linphone_core_accept_call' is deprecated [-Wdeprecated-declarations]
>                linphone_core_accept_call(opm, linphone_core_get_current_call(opm));
>                ^
> /wrkdirs/usr/ports/net/liblinphone/work/liblinphone-c5d52f725840bceca36874f480d86bdbb91f5b7e/include/linphone/core.h:6474:17: note: 'linphone_core_accept_call' has been explicitly marked deprecated here
> LINPHONE_PUBLIC LINPHONE_DEPRECATED LinphoneStatus linphone_core_accept_call(LinphoneCore *core, LinphoneCall *call);
>                ^
> /wrkdirs/usr/ports/net/liblinphone/work/liblinphone-c5d52f725840bceca36874f480d86bdbb91f5b7e/include/linphone/defs.h:48:29: note: expanded from macro 'LINPHONE_DEPRECATED'
> #define LINPHONE_DEPRECATED MS2_DEPRECATED
>                            ^
> /usr/local/include/mediastreamer2/mscommon.h:47:40: note: expanded from macro 'MS2_DEPRECATED'
> #define MS2_DEPRECATED __attribute__ ((deprecated))
>                                       ^
> /wrkdirs/usr/ports/net/liblinphone/work/liblinphone-c5d52f725840bceca36874f480d86bdbb91f5b7e/console/linphonec.c:1277:28: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
> handle_configfile_migration()
>                           ^
>                            void
> 12 warnings and 2 errors generated.
> ninja: build stopped: subcommand failed.
> *** Error code 1
> 
> Stop.
> make: stopped in /usr/ports/net/liblinphone
> 
> 
> Is this known?
> 
> Thank you.
> 
> -- 
> José Pérez
> 

Currently I am running 1400078 where it builds fine. I will update the system tonight and will recheck once more.

But most likely this is due to the issue of new llvm15 merged into base.

Kind regards,
Moin