Re: AGX Fax
Только что собрал под 1.4.21.
Правда, по умолчанию не собирался:
[ 55%] Building C object CMakeFiles/app_rxfax.dir/app_rxfax.o
cc1: warnings being treated as errors
/usr/src/asterisk/agx-ast-addons/trunk/app_rxfax.c: In function 'phase_e_handler':
/usr/src/asterisk/agx-ast-addons/trunk/app_rxfax.c:120: warning: implicit declaration of function 't30_get_local_ident'
/usr/src/asterisk/agx-ast-addons/trunk/app_rxfax.c:121: warning: implicit declaration of function 't30_get_far_ident'
/usr/src/asterisk/agx-ast-addons/trunk/app_rxfax.c: In function 'rxfax_exec':
/usr/src/asterisk/agx-ast-addons/trunk/app_rxfax.c:374: warning: implicit declaration of function 't30_set_local_ident'
/usr/src/asterisk/agx-ast-addons/trunk/app_rxfax.c:377: warning: implicit declaration of function 't30_set_header_info'
/usr/src/asterisk/agx-ast-addons/trunk/app_rxfax.c:379: warning: passing argument 2 of 't30_set_phase_b_handler' from incompatible pointer type
/usr/src/asterisk/agx-ast-addons/trunk/app_rxfax.c:380: warning: passing argument 2 of 't30_set_phase_d_handler' from incompatible pointer type
make[2]: *** [CMakeFiles/app_rxfax.dir/app_rxfax.o] Error 1
make[1]: *** [CMakeFiles/app_rxfax.dir/all] Error 2
make: *** [all] Error 2
Пришлось приглушить предупреждения:
pbx trunk # svn diff CMakeLists.txt
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt (revision 35)
+++ CMakeLists.txt (working copy)
@@ -4,8 +4,8 @@
# Compiler Options
#
SET(CMAKE_BUILD_TYPE Debug)
-SET(CMAKE_C_FLAGS_DEBUG "-g -O -Wall -Werror")
-SET(CMAKE_C_FLAGS_RELEASE "-O2 -Wall")
+SET(CMAKE_C_FLAGS_DEBUG "-g -O -w")
+SET(CMAKE_C_FLAGS_RELEASE "-O2 -w")
set(LIBRARY_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/dist)
pbx trunk #
Сейчас погляжу как он в работе ;-)
|