Compile errors with PJSIP_HAS_RESOLVER=0

EL
Engin Lee
Tue, Jan 9, 2018 9:49 AM

Hi All,

I got some errors when I disabled DNS resolver...

../src/pjsip/sip_resolve.c: In function 'pjsip_resolve':
../src/pjsip/sip_resolve.c:273: warning: unused variable 'addr_str'
../src/pjsip/sip_resolve.c:501: error: 'srv_name' undeclared (first use in
this function)
../src/pjsip/sip_resolve.c:501: error: (Each undeclared identifier is
reported only once
../src/pjsip/sip_resolve.c:501: error: for each function it appears in.)
../src/pjsip/sip_resolve.c:506: warning: unused variable 'errmsg'

With these source code...

PJ_UNUSED_ARG(pool);
PJ_UNUSED_ARG(query);
PJ_UNUSED_ARG(srv_name);

I am using latest PJSIP version 2.7.1, could you please check on this issue?

Thanks,

-Engin

Hi All, I got some errors when I disabled DNS resolver... ../src/pjsip/sip_resolve.c: In function 'pjsip_resolve': ../src/pjsip/sip_resolve.c:273: warning: unused variable 'addr_str' ../src/pjsip/sip_resolve.c:501: error: 'srv_name' undeclared (first use in this function) ../src/pjsip/sip_resolve.c:501: error: (Each undeclared identifier is reported only once ../src/pjsip/sip_resolve.c:501: error: for each function it appears in.) ../src/pjsip/sip_resolve.c:506: warning: unused variable 'errmsg' With these source code... PJ_UNUSED_ARG(pool); PJ_UNUSED_ARG(query); PJ_UNUSED_ARG(srv_name); I am using latest PJSIP version 2.7.1, could you please check on this issue? Thanks, -Engin
M
Ming
Wed, Jan 10, 2018 12:49 AM

Hi Engin,

Thanks for the report. Fixed this in r5723
(https://trac.pjsip.org/repos/changeset/5723).

Regards,
Ming

On Tue, Jan 9, 2018 at 5:49 PM, Engin Lee engin.lee@gmail.com wrote:

Hi All,

I got some errors when I disabled DNS resolver...

../src/pjsip/sip_resolve.c: In function 'pjsip_resolve':
../src/pjsip/sip_resolve.c:273: warning: unused variable 'addr_str'
../src/pjsip/sip_resolve.c:501: error: 'srv_name' undeclared (first use in
this function)
../src/pjsip/sip_resolve.c:501: error: (Each undeclared identifier is
reported only once
../src/pjsip/sip_resolve.c:501: error: for each function it appears in.)
../src/pjsip/sip_resolve.c:506: warning: unused variable 'errmsg'

With these source code...

 PJ_UNUSED_ARG(pool);
 PJ_UNUSED_ARG(query);
 PJ_UNUSED_ARG(srv_name);

I am using latest PJSIP version 2.7.1, could you please check on this issue?

Thanks,

-Engin


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

Hi Engin, Thanks for the report. Fixed this in r5723 (https://trac.pjsip.org/repos/changeset/5723). Regards, Ming On Tue, Jan 9, 2018 at 5:49 PM, Engin Lee <engin.lee@gmail.com> wrote: > Hi All, > > I got some errors when I disabled DNS resolver... > > ../src/pjsip/sip_resolve.c: In function 'pjsip_resolve': > ../src/pjsip/sip_resolve.c:273: warning: unused variable 'addr_str' > ../src/pjsip/sip_resolve.c:501: error: 'srv_name' undeclared (first use in > this function) > ../src/pjsip/sip_resolve.c:501: error: (Each undeclared identifier is > reported only once > ../src/pjsip/sip_resolve.c:501: error: for each function it appears in.) > ../src/pjsip/sip_resolve.c:506: warning: unused variable 'errmsg' > > With these source code... > > PJ_UNUSED_ARG(pool); > PJ_UNUSED_ARG(query); > PJ_UNUSED_ARG(srv_name); > > > I am using latest PJSIP version 2.7.1, could you please check on this issue? > > Thanks, > > -Engin > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >