[Freeswitch-users] Compile errors/warnings (win32, latest trunk)

Jonas Gauffin jonas.gauffin at gmail.com
Sat May 5 04:48:33 PDT 2007


I get some errors/warnings while compiling in Visual Studio 2005 Pro.

1>------ Build started: Project: xml, Configuration: Debug Win32 ------
2>------ Build started: Project: FreeSwitchCoreLib, Configuration:
Debug Win32 ------
1>Creating config.h from winconfig.h
2>Generating switch_version.h
1>Compiling...
1>xmltok.c
1>xmlrole.c
1>xmlparse.c
1>..\..\apr-util\xml\expat\lib\xmlparse.c(1193) : error C2065:
'punting' : undeclared identifier
1>..\..\apr-util\xml\expat\lib\xmlparse.c(1193) : error C2146: syntax
error : missing ';' before identifier 'on'
1>..\..\apr-util\xml\expat\lib\xmlparse.c(1193) : error C2065: 'on' :
undeclared identifier
1>..\..\apr-util\xml\expat\lib\xmlparse.c(1193) : error C2146: syntax
error : missing ';' before identifier 'memmove'
1>..\..\apr-util\xml\expat\lib\xmlparse.c(1193) : warning C4550:
expression evaluates to a function which is missing an argument list
1>Generating Code...
1>Build log was saved at
"file://c:\projects\cpp\freeswitch_snapshot\libs\win32\apr-util\Debug\BuildLog.htm"
1>xml - 4 error(s), 1 warning(s)
2>Compiling...
2>switch_apr.c
2>..\..\src\switch_apr.c(381) : error C2143: syntax error : missing
')' before '*'
2>..\..\src\switch_apr.c(381) : error C2143: syntax error : missing
'{' before '*'
2>..\..\src\switch_apr.c(381) : warning C4431: missing type specifier
- int assumed. Note: C no longer supports default-int
2>..\..\src\switch_apr.c(381) : error C2059: syntax error : 'type'
2>..\..\src\switch_apr.c(381) : error C2059: syntax error : ')'
2>..\..\src\switch_apr.c(390) : error C2143: syntax error : missing
')' before '*'
2>..\..\src\switch_apr.c(390) : error C2143: syntax error : missing
'{' before '*'
2>..\..\src\switch_apr.c(390) : error C2059: syntax error : ')'
2>..\..\src\switch_apr.c(391) : warning C4431: missing type specifier
- int assumed. Note: C no longer supports default-int
2>..\..\src\switch_apr.c(391) : error C2054: expected '(' to follow 'thedir'
2>..\..\src\switch_apr.c(395) : error C2143: syntax error : missing
')' before '*'
2>..\..\src\switch_apr.c(395) : error C2143: syntax error : missing
'{' before '*'
2>..\..\src\switch_apr.c(395) : error C2059: syntax error : ')'
2>..\..\src\switch_apr.c(396) : warning C4431: missing type specifier
- int assumed. Note: C no longer supports default-int
2>..\..\src\switch_apr.c(396) : error C2054: expected '(' to follow 'thedir'
2>switch_core_session.c
2>..\..\src\switch_core_session.c(932) : error C2065:
'SWITCH_MAX_STACKS' : undeclared identifier
2>..\..\src\switch_core_session.c(932) : warning C4018: '>' :
signed/unsigned mismatch
2>switch_ivr.c
2>..\..\src\switch_ivr.c(910) : error C2220: warning treated as error
- no 'object' file generated
2>..\..\src\switch_ivr.c(910) : warning C4013:
'switch_channel_variable_last' undefined; assuming extern returning
int
2>switch_ivr_originate.c
2>..\..\src\switch_ivr_originate.c(333) : error C2220: warning treated
as error - no 'object' file generated
2>..\..\src\switch_ivr_originate.c(333) : warning C4013:
'switch_channel_variable_last' undefined; assuming extern returning
int
2>switch_loadable_module.c
2>..\..\src\switch_loadable_module.c(438) : error C2065:
'SWITCH_EVENT_MODULE_UNLOAD' : undeclared identifier
2>..\..\src\switch_loadable_module.c(681) : error C2065:
'SWITCH_STATUS_NOUNLOAD' : undeclared identifier
2>..\..\src\switch_loadable_module.c(728) : warning C4029: declared
formal parameter list different from definition
2>..\..\src\switch_loadable_module.c(1095) : warning C4013:
'switch_core_hash_delete_locked' undefined; assuming extern returning
int
2>..\..\src\switch_loadable_module.c(1148) : warning C4013:
'switch_core_hash_find_locked' undefined; assuming extern returning
int
2>..\..\src\switch_loadable_module.c(1148) : warning C4047: 'return' :
'switch_dialplan_interface_t *' differs in levels of indirection from
'int'
2>..\..\src\switch_loadable_module.c(1153) : warning C4047: 'return' :
'switch_timer_interface_t *' differs in levels of indirection from
'int'
2>..\..\src\switch_loadable_module.c(1158) : warning C4047: 'return' :
'switch_application_interface_t *' differs in levels of indirection
from 'int'
2>..\..\src\switch_loadable_module.c(1163) : warning C4047: 'return' :
'switch_api_interface_t *' differs in levels of indirection from 'int'
2>..\..\src\switch_loadable_module.c(1168) : warning C4047: 'return' :
'switch_file_interface_t *' differs in levels of indirection from
'int'
2>..\..\src\switch_loadable_module.c(1173) : warning C4047: 'return' :
'switch_speech_interface_t *' differs in levels of indirection from
'int'
2>..\..\src\switch_loadable_module.c(1178) : warning C4047: 'return' :
'switch_asr_interface_t *' differs in levels of indirection from 'int'
2>..\..\src\switch_loadable_module.c(1183) : warning C4047: 'return' :
'switch_directory_interface_t *' differs in levels of indirection from
'int'
2>..\..\src\switch_loadable_module.c(1188) : warning C4047: 'return' :
'switch_chat_interface_t *' differs in levels of indirection from
'int'
2>..\..\src\switch_loadable_module.c(1193) : warning C4047: 'return' :
'switch_say_interface_t *' differs in levels of indirection from 'int'
2>..\..\src\switch_loadable_module.c(1198) : warning C4047: 'return' :
'switch_management_interface_t *' differs in levels of indirection
from 'int'
2>switch_rtp.c
3>------ Skipped Build: Project: FreeSwitch.NET, Configuration: Debug
Any CPU ------
3>Project not selected to build for this solution configuration
4>------ Skipped Build: Project: docs (Docs\docs), Configuration:
Debug Win32 ------
4>Project not selected to build for this solution configuration
2>..\..\src\switch_rtp.c(846) : error C2065: 'SFF_PLC' : undeclared identifier
2>Generating Code...
2>Build log was saved at
"file://c:\projects\cpp\freeswitch_snapshot\w32\Library\Debug\BuildLog
FreeSwitchCoreLib.htm"
2>FreeSwitchCoreLib - 18 error(s), 20 warning(s)
5>------ Build started: Project: mod_sofia, Configuration: Debug Win32 ------
6>------ Build started: Project: mod_dialplan_xml, Configuration:
Debug Win32 ------
6>Linking...
5>Linking...
6>   Creating library Debug/mod_dialplan_xml.lib and object
Debug/mod_dialplan_xml.exp
6>mod_dialplan_xml.obj : error LNK2019: unresolved external symbol
__imp__switch_channel_variable_last at 4 referenced in function
_dialplan_xml_locate
6>C:\projects\cpp\freeswitch_snapshot\Debug/mod/mod_dialplan_xml.dll :
fatal error LNK1120: 1 unresolved externals
5>   Creating library Debug/mod_sofia.lib and object Debug/mod_sofia.exp
5>sofia_glue.obj : error LNK2019: unresolved external symbol
__imp__switch_channel_variable_last at 4 referenced in function
_sofia_glue_do_invite
5>sofia_glue.obj : error LNK2019: unresolved external symbol
__imp__switch_rtp_activate_jitter_buffer at 8 referenced in function
_sofia_glue_activate_rtp
5>C:\projects\cpp\freeswitch_snapshot\Debug/mod/mod_sofia.dll : fatal
error LNK1120: 2 unresolved externals
6>Build log was saved at
"file://c:\projects\cpp\freeswitch_snapshot\src\mod\dialplans\mod_dialplan_xml\Debug\BuildLog.htm"
6>mod_dialplan_xml - 2 error(s), 0 warning(s)
5>Build log was saved at
"file://c:\projects\cpp\freeswitch_snapshot\src\mod\endpoints\mod_sofia\Debug\BuildLog.htm"
5>mod_sofia - 3 error(s), 0 warning(s)
7>------ Build started: Project: mod_commands, Configuration: Debug Win32 ------
7>Linking...
8>------ Build started: Project: mod_cdr, Configuration: Debug Win32 ------
7>   Creating library Debug/mod_commands.lib and object Debug/mod_commands.exp
7>mod_commands.obj : error LNK2019: unresolved external symbol
__imp__switch_loadable_module_load_module at 16 referenced in function
_load_function
7>mod_commands.obj : error LNK2019: unresolved external symbol
__imp__switch_loadable_module_unload_module at 12 referenced in function
_unload_function
7>C:\projects\cpp\freeswitch_snapshot\Debug/mod/mod_commands.dll :
fatal error LNK1120: 2 unresolved externals
7>Build log was saved at
"file://c:\projects\cpp\freeswitch_snapshot\src\mod\applications\mod_commands\Debug\BuildLog.htm"
7>mod_commands - 3 error(s), 0 warning(s)
8>Compiling...
9>------ Skipped Build: Project: mod_perl, Configuration: Debug Win32 ------
9>Project not selected to build for this solution configuration
10>------ Skipped Build: Project: fs_perl, Configuration: Debug Win32 ------
10>Project not selected to build for this solution configuration
11>------ Skipped Build: Project: mod_cepstral, Configuration: Debug
Win32 ------
11>Project not selected to build for this solution configuration
12>------ Build started: Project: mod_enum, Configuration: Debug Win32 ------
12>Linking...
12>   Creating library Debug/mod_enum.lib and object Debug/mod_enum.exp
12>mod_enum.obj : error LNK2019: unresolved external symbol
__imp__switch_channel_variable_last at 4 referenced in function
_enum_app_function
8>xmlcdr.cpp
12>C:\projects\cpp\freeswitch_snapshot\Debug/mod/mod_enum.dll : fatal
error LNK1120: 1 unresolved externals
12>Build log was saved at
"file://c:\projects\cpp\freeswitch_snapshot\src\mod\applications\mod_enum\Debug\BuildLog.htm"
12>mod_enum - 2 error(s), 0 warning(s)
13>------ Skipped Build: Project: FreeSwitchSetup, Configuration: Debug ------
13>Project not selected to build for this solution configuration
8>Generating Code...
8>Compiling...
8>basecdr.cpp
8>baseregistry.cpp
8>cdrcontainer.cpp
8>csvcdr.cpp
8>mod_cdr.cpp
8>pddcdr.cpp
8>sqlitecdr.cpp
8>Generating Code...
8>Linking...
8>   Creating library Debug/mod_cdr.lib and object Debug/mod_cdr.exp
8>Embedding manifest...
8>Build log was saved at
"file://c:\projects\cpp\freeswitch_snapshot\src\mod\event_handlers\mod_cdr\Debug\BuildLog.htm"
8>mod_cdr - 0 error(s), 0 warning(s)
========== Build: 1 succeeded, 6 failed, 76 up-to-date, 6 skipped ==========




More information about the FreeSWITCH-users mailing list