xadhoom / mod_bcg729

FreeSWITCH G.729 module using the opensource bcg729 implementation by Belledonne Communications
Other
170 stars 130 forks source link

mod_bcg729 is not building on Debian Jessie #7

Closed vittico closed 8 years ago

vittico commented 8 years ago

Hi!

Build is failling on me, any idea on what I might have wrong?

make[3]: Leaving directory '/opt/BuildTools/jenkins/work/jobs/CloudVoice_v3_STETP002_G729_SUPPORT/workspace/bcg729/src' Making all in test make[3]: Entering directory '/opt/BuildTools/jenkins/work/jobs/CloudVoice_v3_STETP002_G729_SUPPORT/workspace/bcg729/test' Making all in bin make[4]: Entering directory '/opt/BuildTools/jenkins/work/jobs/CloudVoice_v3_STETP002_G729_SUPPORT/workspace/bcg729/test/bin' make[4]: Nothing to be done for 'all'. make[4]: Leaving directory '/opt/BuildTools/jenkins/work/jobs/CloudVoice_v3_STETP002_G729_SUPPORT/workspace/bcg729/test/bin' make[4]: Entering directory '/opt/BuildTools/jenkins/work/jobs/CloudVoice_v3_STETP002_G729_SUPPORT/workspace/bcg729/test' make[4]: Nothing to be done for 'all-am'. make[4]: Leaving directory '/opt/BuildTools/jenkins/work/jobs/CloudVoice_v3_STETP002_G729_SUPPORT/workspace/bcg729/test' make[3]: Leaving directory '/opt/BuildTools/jenkins/work/jobs/CloudVoice_v3_STETP002_G729_SUPPORT/workspace/bcg729/test' make[3]: Entering directory '/opt/BuildTools/jenkins/work/jobs/CloudVoice_v3_STETP002_G729_SUPPORT/workspace/bcg729' make[3]: Leaving directory '/opt/BuildTools/jenkins/work/jobs/CloudVoice_v3_STETP002_G729_SUPPORT/workspace/bcg729' make[2]: Leaving directory '/opt/BuildTools/jenkins/work/jobs/CloudVoice_v3_STETP002_G729_SUPPORT/workspace/bcg729' make[1]: Leaving directory '/opt/BuildTools/jenkins/work/jobs/CloudVoice_v3_STETP002_G729_SUPPORT/workspace/bcg729' gcc -fPIC -O3 -fomit-frame-pointer -fno-exceptions -Wall -std=c99 -pedantic -m64 -mtune=generic -I/usr/include -Ibcg729/include -I/opt/Cibersys/CloudVoice/v3/pbx/include/freeswitch/ -c mod_bcg729.c

mod_bcg729.c: In function ‘switch_bcg729_init’: mod_bcg729.c:61:39: error: too few arguments to function ‘initBcg729EncoderChannel’ context->encoder_object = initBcg729EncoderChannel(); ^ In file included from mod_bcg729.c:31:0: bcg729/include/bcg729/encoder.h:40:54: note: declared here BCG729_VISIBILITY bcg729EncoderChannelContextStruct _initBcg729EncoderChannel(uint8_t enableVAD); ^ mod_bcg729.c: In function ‘switch_bcg729_encode’: mod_bcg729.c:106:13: error: too few arguments to function ‘bcg729Encoder’ bcg729Encoder(context->encoder_object, ddp, edp); ^ In file included from mod_bcg729.c:31:0: bcg729/include/bcg729/encoder.h:62:24: note: declared here BCG729_VISIBILITY void bcg729Encoder(bcg729EncoderChannelContextStruct encoderChannelContext, int16_t inputFrame[], uint8_t bitStream[], uint8_t bitStreamLength); ^ mod_bcg729.c: In function ‘switch_bcg729_decode’: mod_bcg729.c:144:57: warning: passing argument 4 of ‘bcg729Decoder’ makes integer from pointer without a cast bcg729Decoder(context->decoder_object, NULL, 1, ddp); ^ In file included from mod_bcg729.c:32:0: bcg729/include/bcg729/decoder.h:60:24: note: expected ‘uint8_t’ but argument is of type ‘int16_t ’ BCG729_VISIBILITY void bcg729Decoder(bcg729DecoderChannelContextStruct decoderChannelContext, uint8_t bitStream[], uint8_t bitStreamLength, uint8_t frameErasureFlag, uint8_t SIDFrameFlag, uint8_t rfc3389PayloadFlag, int16_t signal[]); ^ mod_bcg729.c:144:9: error: too few arguments to function ‘bcg729Decoder’ bcg729Decoder(context->decoder_object, NULL, 1, ddp); ^ In file included from mod_bcg729.c:32:0: bcg729/include/bcg729/decoder.h:60:24: note: declared here BCG729_VISIBILITY void bcg729Decoder(bcg729DecoderChannelContextStruct decoderChannelContext, uint8_t bitStream[], uint8_t bitStreamLength, uint8_t frameErasureFlag, uint8_t SIDFrameFlag, uint8_t rfc3389PayloadFlag, int16_t signal[]); ^ mod_bcg729.c:157:56: warning: passing argument 4 of ‘bcg729Decoder’ makes integer from pointer without a cast bcg729Decoder(context->decoder_object, edp, 0, ddp); ^ In file included from mod_bcg729.c:32:0: bcg729/include/bcg729/decoder.h:60:24: note: expected ‘uint8_t’ but argument is of type ‘int16_t ’ BCG729_VISIBILITY void bcg729Decoder(bcg729DecoderChannelContextStruct decoderChannelContext, uint8_t bitStream[], uint8_t bitStreamLength, uint8_t frameErasureFlag, uint8_t SIDFrameFlag, uint8_t rfc3389PayloadFlag, int16_t signal[]); ^ mod_bcg729.c:157:9: error: too few arguments to function ‘bcg729Decoder’ bcg729Decoder(context->decoder_object, edp, 0, ddp); ^ In file included from mod_bcg729.c:32:0: bcg729/include/bcg729/decoder.h:60:24: note: declared here BCG729_VISIBILITY void bcg729Decoder(bcg729DecoderChannelContextStruct decoderChannelContext, uint8_t bitStream[], uint8_t bitStreamLength, uint8_t frameErasureFlag, uint8_t SIDFrameFlag, uint8_t rfc3389PayloadFlag, int16_t signal[]); ^ Makefile:25: recipe for target 'modbcg729.o' failed make: ** [mod_bcg729.o] Error 1

I building against latest 1.6 branch. Thanks, any help is welcome!

vittico commented 8 years ago

Im attaching the complete output log of the build in the hope that it might be helpfull. Im building master and also tried the fix_issue_4 branch.

consoleText.zip

xadhoom commented 8 years ago

are you using latest master? looking to the logs seems not. I recently pushed a fix in order to get the correct bcg729 version when building.

if issue persists, please reopen (and maybe clean the logs using a vanilla freeswitch, because can be difficult to read everything inside a jenkins build :) )