You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Ubuntu 22.04 cross compilation for arm has many errors of long int vs int.
Steps to reproduce
$ ./configure --host=arm-linux-gnueabi --disable-sdl --disable-ffmpeg --disable-v4l2 --disable-openh264 --disable-libwebrtc --disable-libyuv --disable-floating-point --disable-pjsua2
$ make dep
$ make lib`
PJSIP version
2.14
Context
$ uname -a
Linux prchalpc 6.2.0-36-generic #37~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 9 15:34:04 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
$ arm-linux-gnueabi-gcc --version
arm-linux-gnueabi-gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Log, call stack, etc
In file included from ../src/pj/pool_caching.c:21:
../src/pj/pool_caching.c: In function‘cpool_dump_status’:
../src/pj/pool_caching.c:282:27: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘pj_size_t’ {aka ‘unsigned int’} [-Werror=format=]
282 | PJ_LOG(3,("cachpool", " Capacity=%lu, max_capacity=%lu, used_cnt=%lu", \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
283 | cp->capacity, cp->max_capacity, cp->used_count));|~~~~~~~~~~~~
||| pj_size_t {aka unsigned int}
../include/pj/log.h:430:50: note: in definition of macro ‘pj_log_wrapper_3’
430 |#define pj_log_wrapper_3(arg) pj_log_3 arg| ^~~
../src/pj/pool_caching.c:282:5: note: in expansion of macro ‘PJ_LOG’
282 | PJ_LOG(3,("cachpool", " Capacity=%lu, max_capacity=%lu, used_cnt=%lu", \
| ^~~~~~
../src/pj/pool_caching.c:282:42: note: format string is defined here
282 | PJ_LOG(3,("cachpool", " Capacity=%lu, max_capacity=%lu, used_cnt=%lu", \
|~~^
||| long unsigned int
| %u
In file included from ../src/pj/pool_caching.c:21:
../src/pj/pool_caching.c:282:27: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘pj_size_t’ {aka ‘unsigned int’} [-Werror=format=]
282 | PJ_LOG(3,("cachpool", " Capacity=%lu, max_capacity=%lu, used_cnt=%lu", \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
283 | cp->capacity, cp->max_capacity, cp->used_count));|~~~~~~~~~~~~~~~~
||| pj_size_t {aka unsigned int}
and many times repeated...
The text was updated successfully, but these errors were encountered:
Describe the bug
On Ubuntu 22.04 cross compilation for arm has many errors of long int vs int.
Steps to reproduce
$ ./configure --host=arm-linux-gnueabi --disable-sdl --disable-ffmpeg --disable-v4l2 --disable-openh264 --disable-libwebrtc --disable-libyuv --disable-floating-point --disable-pjsua2
$ make dep
$ make lib`
PJSIP version
2.14
Context
$ uname -a
Linux prchalpc 6.2.0-36-generic #37~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 9 15:34:04 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
$ arm-linux-gnueabi-gcc --version
arm-linux-gnueabi-gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Log, call stack, etc
The text was updated successfully, but these errors were encountered: