[asterisk-dev] 1.2.28 patch - a minor point

Paul Hewlett paul at gccs.co.za
Thu Apr 24 04:39:43 CDT 2008


Following the recent security alert, I applied the 1.2.28 patch to my 
source code. It now does not compile - it fails when trying to compile 
codecs/codec_ilbc.c - I note that the patch effectively zero-lengths all 
files in codecs/ilbc but not codec_ilbc.c. The Makefile in codecs 
directory tests for the existence of file ilbc/iLBC_decode.h which 
exists but is of zero length. I changed the Makefile from


ifneq ($(wildcard ilbc/iLBC_decode.h),)
  MODILBC=codec_ilbc.so
  LIBILBC=ilbc/libilbc.a
endif

to


ILBC=$(shell if [ -s ilbc/iLBC_decode.h ] ; then echo "ILBC"; else echo 
"noILBC"; fi)
ifeq ($(ILBC),ILBC)
  MODILBC=codec_ilbc.so
  LIBILBC=ilbc/libilbc.a
endif

and it now works correctly.

Regards Paul

-- 
Technical Director, GCCS
Tel: 086 111 3433 Fax: 086 111 3520 Cel: 076 072 7906
web: http://www.gccs.co.za




More information about the asterisk-dev mailing list