[Freeswitch-users] Javascript & cURL: Error loading CURL

Birgit Arkesteijn birgit at westhawk.co.uk
Wed Nov 5 09:04:46 PST 2008


Hi,

A bit more digging ...
As far as I can tell, this has been added in revision 10239.

I've deleted the semicolons and fortunately it compiles again.

File ./include/switch_core.h, line 938:
#define switch_core_hash_init(_hash, _pool)
switch_core_hash_init_case(_hash, _pool, SWITCH_TRUE)
#define switch_core_hash_init_nocase(_hash, _pool)
switch_core_hash_init_case(_hash, _pool, SWITCH_FALSE)

Cheers, Birgit


On 05/11/08 16:50, Birgit Arkesteijn wrote:
> Hi,
> 
> My C programming days are long gone, but might there be an error in 
> ./include/switch_core.h ????
> 
> I preprocessed mod_xml_curl.c.
> Line 265:
> if (switch_core_hash_init(&vars_map, globals.pool) != 
> SWITCH_STATUS_SUCCESS) {
> 
> is turned into:
> if (switch_core_hash_init_case(&vars_map, globals.pool, SWITCH_TRUE); != 
> SWITCH_STATUS_SUCCESS) {
> 
> Hence the error about the semicolon.
> 
> File ./include/switch_core.h
> 
> SWITCH_DECLARE(switch_status_t) switch_core_hash_init_case(_Out_ 
> switch_hash_t **hash, _In_ switch_memory_pool_t *pool, switch_bool_t 
> case_sensitive);
> #define switch_core_hash_init(_hash, _pool) 
> switch_core_hash_init_case(_hash, _pool, SWITCH_TRUE);
> #define switch_core_hash_init_nocase(_hash, _pool) 
> switch_core_hash_init_case(_hash, _pool, SWITCH_FALSE);
> 
> Thanks, Birgit
> 
> 
> On 05/11/08 16:21, Birgit Arkesteijn wrote:
>> Hi guys,
>>
>> I still cannot compile mod_xml_curl.
>> The problem won't go away.
>>
>> I uninstalled curl-devel.
>> I ran updatedb so locate can no longer find curl.h.
>>
>> I ran 'configure' again (I didn't use any with or without curl flags 
>> this time), followed by 'make current'.
>> When that didn't help I tried 'make clean modwipe', followed by make, 
>> followed by 'make current'.
>>
>> The error is persistent:
>>
>> mod_xml_curl.c: In function ‘do_config’:
>> mod_xml_curl.c:265: error: syntax error before ‘;’ token
>> cc1: warnings being treated as errors
>> mod_xml_curl.c:245: warning: unused variable ‘hash_node’
>> mod_xml_curl.c:239: warning: unused variable ‘bname’
>>
>>
>> Currently I've got FS 597:10249M downloaded.
>>
>> I'm running Suse Linux 10.0.
>> % uname -a
>> Linux apso 2.6.13-15-smp #1 SMP Tue Sep 13 14:56:15 UTC 2005 x86_64
>> x86_64 x86_64 GNU/Linux
>>
>> I'm using:
>> gcc version 4.0.2 20050901 (prerelease) (SUSE Linux)
>>
>>
>> Thanks, Birgit




More information about the FreeSWITCH-users mailing list