Make error in CentOS 6 + Asterisk 18

I try to make Asterisk 18 in CentOS 6
But there are errors in the compile source.

did you have any hint?

[LD] astdb2bdb.o db1-ast/libdb1.a -> astdb2bdb
[pjproject] Compiling lib libpj-x86_64-unknown-linux-gnu.a
[pjproject] Compiling lib libpjlib-util-x86_64-unknown-linux-gnu.a
[pjproject] Compiling lib libpjsua-x86_64-unknown-linux-gnu.a
[pjproject] Compiling lib libpjsip-ua-x86_64-unknown-linux-gnu.a
[pjproject] Compiling lib libpjsip-simple-x86_64-unknown-linux-gnu.a
[pjproject] Compiling lib libpjsip-x86_64-unknown-linux-gnu.a
[pjproject] Compiling lib libpjmedia-codec-x86_64-unknown-linux-gnu.a
[pjproject] Compiling lib libpjmedia-videodev-x86_64-unknown-linux-gnu.a
[pjproject] Compiling lib libpjmedia-x86_64-unknown-linux-gnu.a
[pjproject] Compiling lib libpjmedia-audiodev-x86_64-unknown-linux-gnu.a
[pjproject] Compiling lib libpjnath-x86_64-unknown-linux-gnu.a
[pjproject] Generating symbols
[CC] chan_alsa.c -> chan_alsa.o
[LD] chan_alsa.o ->
[CC] chan_audiosocket.c -> chan_audiosocket.o
[LD] chan_audiosocket.o ->
[CC] chan_bridge_media.c -> chan_bridge_media.o
[LD] chan_bridge_media.o ->
[CC] chan_console.c -> chan_console.o
chan_console.c: In function ‘stream_monitor’:
chan_console.c:272: error: unknown field ‘format’ specified in initializer
chan_console.c:272: warning: initialization makes integer from pointer without a cast
make[1]: *** [chan_console.o] Error 1
make: *** [channels] Error 2
[root@mediacall2 asterisk-18.0.0]#

If you wont use this channel driver disable it, or try solving any dependencies using the contrib/scripts/install_prereq install script

I don’t think this is a dependency problem. It is probably missing an include.

Hardly anyone uses chan_console, so a failure to keep it up to date could have been overlooked.

Unless you really need it, just disable it in menuconfig.

I’m not sure of its support status, so I don’t know if anyone is likely to fix it.

I try to install Asterisk 18 on CentOS 7
It’s Okay. but in CentOS 6, there’s an Error for compiling the source.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.