openwrt / openwrt/telephony

sofia-sip: error: passing argument 3 of 'msg_params_d' from incompatible pointer type

Open
#901 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Makefile
Stars
133
Forks
327
PR merge metrics
No merged PRs in 30d

Description

Info

Ex-Maintainer: @micmac1, current maintainer: missing

Log

 make[8]: Entering directory '/builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a53_musl/sofia-sip-1.13.17/libsofia-sip-ua/sip'
	 LTCOMPILE sip_parser.lo
	 LTCOMPILE sip_header.lo
	 LTCOMPILE sip_util.lo
	 LTCOMPILE sip_pref_util.lo
	 LTCOMPILE sip_basic.lo
sip_basic.c: In function 'sip_identity_d':
sip_basic.c:2885:15: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
 2885 |           uri = pp + 1;
      |               ^
sip_basic.c:2905:40: error: passing argument 3 of 'msg_params_d' from incompatible pointer type [-Wincompatible-pointer-types]
 2905 |           if (msg_params_d(home, &ext, &params) >= 0) {
      |                                        ^~~~~~~
      |                                        |
      |                                        const char ***
In file included from sofia-sip/sip_parser.h:52,
                 from sip_basic.c:46:
./../msg/sofia-sip/msg_parser.h:280:55: note: expected 'const char * const**' but argument is of type 'const char ***'
  280 |                                   msg_param_t const **return_params);
      |                                   ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
make[8]: *** [Makefile:1566: sip_basic.lo] Error 1

Log is copy&pasted from this website:
https://downloads.openwrt.org/snapshots/faillogs/aarch64_cortex-a53/telephony/sofia-sip/compile.txt

ENV: aarch64_cortex-a53, OpenWrt daily snapshot

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with libsofia-sip-ua/sip/sip_basic.c around line 2905 and compare the msg_params_d declaration in libsofia-sip-ua/msg/sofia-sip/msg_parser.h. Reproduce the aarch64_cortex-a53 OpenWrt snapshot build, then confirm that sofia-sip compiles without the reported incompatible-pointer-type error.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.