[Freeswitch-users] Error in compilation after git pull

Mario G mario_fs at mgtech.com
Fri Jul 6 02:42:54 MSD 2012


FYI I had the problem yesterday on osX but after I did a ./bootstrap and ./configure it was fine.
Mario G

On Jul 5, 2012, at 2:04 PM, aahndee wrote:

>> Hi All,
>> 
>> I did a git pull just now. After make clean, the compile failed.
>> 
>> The latest git commit log that I can see is:
>> 
>> commit 04bd463d12bf4c0116bec3cee537749b2040ed40
>> Author: Michael S Collins <msc at ...>
>> Date:   Wed Jul 4 12:09:32 2012 -0700
>> 
>> The relevant error is:
>> 
>> making all mod_spandsp
>> Creating mod_spandsp_la-mod_spandsp.lo
>> quiet_libtool: compile:  gcc -DHAVE_CONFIG_H -I.
>> -I../../../../src/include -I../../../../libs/xmlrpc-c
>> -I/usr/local/src/freeswitch/libs/curl/include
>> -I/usr/local/src/freeswitch/src/include
>> -I/usr/local/src/freeswitch/src/include
>> -I/usr/local/src/freeswitch/libs/libteletone/src -fPIC
>> -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1
>> -I/usr/local/src/freeswitch/libs/curl/include
>> -I/usr/local/src/freeswitch/src/include
>> -I/usr/local/src/freeswitch/src/include
>> -I/usr/local/src/freeswitch/libs/libteletone/src -fPIC -Werror
>> -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -g
>> -ggdb -DHAVE_OPENSSL -Wall -std=c99 -pedantic
>> -Wdeclaration-after-statement
>> -I/usr/local/src/freeswitch/libs/spandsp/src
>> -I/usr/local/src/freeswitch/libs/tiff-3.8.2/libtiff
>> -I/usr/local/src/freeswitch/libs/spandsp/src
>> -I/usr/local/src/freeswitch/libs/tiff-3.8.2/libtiff -I. -g -O2 -MT
>> mod_spandsp_la-mod_spandsp.lo -MD -MP -MF
>> .deps/mod_spandsp_la-mod_spandsp.Tpo -c mod_spandsp.c  -fPIC -DPIC -o
>> .libs/mod_spandsp_la-mod_spandsp.o
>> In file included from
>> /usr/local/src/freeswitch/libs/spandsp/src/spandsp/expose.h:96,
>>                 from
>> /usr/local/src/freeswitch/libs/spandsp/src/spandsp.h:135,
>>                 from mod_spandsp.h:50,
>>                 from mod_spandsp.c:39:
>> /usr/local/src/freeswitch/libs/spandsp/src/spandsp/private/ademco_contactid.
>> h:33:
>> error: expected specifier-qualifier-list before
>> 'ademco_contactid_report_func_t'
>> cc1: warnings being treated as errors
>> /usr/local/src/freeswitch/libs/spandsp/src/spandsp/private/ademco_contactid.
>> h:48:
>> error: struct has no members
>> make[4]: *** [mod_spandsp_la-mod_spandsp.lo] Error 1
>> make[3]: *** [mod_spandsp-all] Error 1
>> make[2]: *** [all-recursive] Error 1
>> make[1]: *** [all-recursive] Error 1
>> make: *** [all] Error 2
>> 
>> Am I missing something? I was able to compile a few weeks ago.
>> 
>> Regards
> 
> It seems like there are two header files for ademco_contactid.h:
> 
> /usr/local/src/freeswitch/libs/spandsp/src/spandsp/private/ademco_contactid.h
> 
> and
> 
> /usr/local/src/freeswitch/libs/spandsp/src/spandsp/ademco_contactid.h
> 
> 'ademco_contactid_report_func_t' is defined in the latter. I tried adding this
> second header file in 
> /usr/local/src/freeswitch/libs/spandsp/src/spandsp/expose.h (before the private
> one) and managed to  get a little further - now things fail with
> 
> quiet_libtool:
> compile:
> gcc -DHAVE_CONFIG_H -I. -I../../../../src/include -I../../../../libs/xmlrpc-c 
> -I/usr/local/src/freeswitch/libs/curl/include
> -I/usr/local/src/freeswitch/src/include
> -I/usr/local/src/freeswitch/src/include
> -I/usr/local/src/freeswitch/libs/libteletone/src
> -fPIC
> -fvisibility=hidden
> -DSWITCH_API_VISIBILITY=1
> -DHAVE_VISIBILITY=1
> -I/usr/local/src/freeswitch/libs/curl/include
> -I/usr/local/src/freeswitch/src/include
> -I/usr/local/src/freeswitch/src/include
> -I/usr/local/src/freeswitch/libs/libteletone/src
> -Werror
> -fvisibility=hidden
> -DSWITCH_API_VISIBILITY=1
> -DHAVE_VISIBILITY=1
> -g
> -ggdb
> -DMACOSX
> -DHAVE_OPENSSL
> -Wall
> -std=c99
> -pedantic
> -Wdeclaration-after-statement
> -I/usr/local/src/freeswitch/libs/spandsp/src
> -I/usr/local/src/freeswitch/libs/tiff-3.8.2/libtiff
> -I/usr/local/src/freeswitch/libs/spandsp/src
> -I/usr/local/src/freeswitch/libs/tiff-3.8.2/libtiff
> -I.
> -g
> -O2
> -MT mod_spandsp_la-mod_spandsp_modem.lo
> -MD
> -MP
> -MF
> .deps/mod_spandsp_la
> -mod_spandsp_modem.Tpo
> -c
> mod_spandsp_modem.c
> -o
> mod_spandsp_la-mod_spandsp_modem.o 
>> /dev/null 2>&1
> make[5]: *** No rule to make target `config/ax_compiler_vendor.m4', needed by
> 	`Makefile.in'.  Stop.
> make[4]: *** [/usr/local/src/freeswitch/libs/spandsp/src/libspandsp.la] Error 2
> make[3]: *** [mod_spandsp-all] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
> 
> 
> 
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
> 
> 
> 
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
> 
> Join Us At ClueCon - Aug 7-9, 2012
> 
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org




Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list