Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while building from source #2

Open
divyanshu0045 opened this issue Jan 29, 2019 · 4 comments
Open

Error while building from source #2

divyanshu0045 opened this issue Jan 29, 2019 · 4 comments

Comments

@divyanshu0045
Copy link

I am getting below error while building swig wrappers
CMakeFiles/UniRecog_Cpp.dir/Cpp/UniRecog.cpp.o: In function UniMRCPLogger::UniMRCPLogger()': UniRecog.cpp:(.text._ZN13UniMRCPLoggerC2Ev[_ZN13UniMRCPLoggerC5Ev]+0xf): undefined reference to vtable for UniMRCPLogger'
CMakeFiles/UniRecog_Cpp.dir/Cpp/UniRecog.cpp.o: In function UniMRCPClientResourceChannel<(UniMRCPResource)1>::CreateMessage(UniMRCPRecognizerMethod, bool)': UniRecog.cpp:(.text._ZN28UniMRCPClientResourceChannelIL15UniMRCPResource1EE13CreateMessageE23UniMRCPRecognizerMethodb[UniMRCPClientResourceChannel<(UniMRCPResource)1>::CreateMessage(UniMRCPRecognizerMethod, bool)]+0x66): undefined reference to UniMRCPResourceMessage<(UniMRCPResource)1>::UniMRCPResourceMessage(mrcp_session_t*, mrcp_channel_t*, mrcp_message_t*, bool)'
CMakeFiles/UniRecog_Cpp.dir/Cpp/UniRecog.cpp.o:(.rodata._ZTI28UniMRCPClientResourceChannelIL15UniMRCPResource1EE[typeinfo for UniMRCPClientResourceChannel<(UniMRCPResource)1>]+0x10): undefined reference to typeinfo for UniMRCPClientChannel' CMakeFiles/UniRecog_Cpp.dir/Cpp/UniRecog.cpp.o:(.rodata._ZTI19UniRecogTermination[typeinfo for UniRecogTermination]+0x10): undefined reference to typeinfo for UniMRCPAudioTermination'
CMakeFiles/UniRecog_Cpp.dir/Cpp/UniRecog.cpp.o:(.rodata._ZTI15UniRecogSession[typeinfo for UniRecogSession]+0x10): undefined reference to typeinfo for UniMRCPClientSession' CMakeFiles/UniRecog_Cpp.dir/Cpp/UniRecog.cpp.o:(.rodata._ZTI14UniRecogLogger[typeinfo for UniRecogLogger]+0x10): undefined reference to typeinfo for UniMRCPLogger'
CMakeFiles/UniRecog_Cpp.dir/Cpp/UniRecog.cpp.o: In function UniMRCPClientResourceChannel<(UniMRCPResource)1>::OnMsgReceive(mrcp_message_t*)': UniRecog.cpp:(.text._ZN28UniMRCPClientResourceChannelIL15UniMRCPResource1EE12OnMsgReceiveEP14mrcp_message_t[UniMRCPClientResourceChannel<(UniMRCPResource)1>::OnMsgReceive(mrcp_message_t*)]+0x5c): undefined reference to UniMRCPResourceMessage<(UniMRCPResource)1>::UniMRCPResourceMessage(mrcp_session_t*, mrcp_channel_t*, mrcp_message_t*, bool)'
collect2: ld returned 1 exit status
make[2]: *** [Cpp/UniRecog_Cpp] Error 1
make[2]: Leaving directory /home/divyanshu/swig-wrapper' make[1]: *** [CMakeFiles/UniRecog_Cpp.dir/all] Error 2 make[1]: Leaving directory /home/divyanshu/swig-wrapper'

Please help.
Also I have attached CMakeCache.txt for your reference.
CMakeCache.txt

My Environment:
Red Hat Enterprise Linux Server release 6.2
I am using unimrcp-1.4.0 and unimrcp-deps-1.4.0 packages from official webpage.
If you need any more info then kindly let me know.

@achaloyan
Copy link
Contributor

The original author of swig-wrapper is unfortunately no longer with us. So, I doubt there is anyone out to help you with your issue. I can only state that everything worked as intended when I last tried this stuff back in 2015.

@MayamaTakeshi
Copy link
Contributor

MayamaTakeshi commented Jan 1, 2023

From my experiments, I can say this:

swig-wrapper 01af0d8 builds on debian:buster and unimrcp 1.7.0

I have a Dockerfile here that confirms it: https://github.com/MayamaTakeshi/unimrcp_experiments/blob/main/Dockerfile
(commit 54d36a3799dacda1a8b287630677df8cf0e33888).

However, I tried today to update to 1.8.0 just by changing this in the Dockerfile:

git checkout unimrcp-1.8.0 

and now build of swig-wrapper fails with:

 => ERROR [13/21] RUN cd ~/src/git   && git clone https://github.com/unispeech/swig-wrapper   && cd swig-wrapper   && git checkout 01af0d80a5dc9a08240095f4d49a377fb28e4c26   && cmake -D APR_LIBRA  11.4s
------                                                                                                                                                                                                     
 > [13/21] RUN cd ~/src/git   && git clone https://github.com/unispeech/swig-wrapper   && cd swig-wrapper   && git checkout 01af0d80a5dc9a08240095f4d49a377fb28e4c26   && cmake -D APR_LIBRARY=/usr/local/apr/lib/libapr-1.so -D APR_INCLUDE_DIR=/usr/local/apr/include/apr-1 -D APU_LIBRARY=/usr/local/apr/lib/libaprutil-1.so -D APU_INCLUDE_DIR=/usr/local/apr/include/apr-1 -D UNIMRCP_SOURCE_DIR=/usr/local/src/git/unimrcp -D SOFIA_INCLUDE_DIRS=/usr/include/sofia-sip-1.12 -D WRAP_CPP=OFF -D WRAP_JAVA=OFF -D BUILD_C_EXAMPLE=OFF .   && make:                                                                          
#20 0.128 Cloning into 'swig-wrapper'...                                                                                                                                                                   
#20 0.724 Note: checking out '01af0d80a5dc9a08240095f4d49a377fb28e4c26'.                                                                                                                                   
#20 0.724 
#20 0.724 You are in 'detached HEAD' state. You can look around, make experimental
#20 0.724 changes and commit them, and you can discard any commits you make in this
#20 0.724 state without impacting any branches by performing another checkout.
#20 0.724 
#20 0.724 If you want to create a new branch to retain commits you create, you may
#20 0.724 do so (now or later) by using -b with the checkout command again. Example:
#20 0.724 
#20 0.724   git checkout -b <new-branch-name>
#20 0.724 
#20 0.724 HEAD is now at 01af0d8 Better support for out-of-tree builds.
#20 0.804 -- The C compiler identification is GNU 8.3.0
#20 0.908 -- The CXX compiler identification is GNU 8.3.0
#20 0.915 -- Check for working C compiler: /usr/bin/cc
#20 1.001 -- Check for working C compiler: /usr/bin/cc -- works
#20 1.002 -- Detecting C compiler ABI info
#20 1.084 -- Detecting C compiler ABI info - done
#20 1.092 -- Detecting C compile features
#20 1.352 -- Detecting C compile features - done
#20 1.360 -- Check for working CXX compiler: /usr/bin/c++
#20 1.522 -- Check for working CXX compiler: /usr/bin/c++ -- works
#20 1.523 -- Detecting CXX compiler ABI info
#20 1.642 -- Detecting CXX compiler ABI info - done
#20 1.649 -- Detecting CXX compile features
#20 2.333 -- Detecting CXX compile features - done
#20 2.334 -- Building UniMRCP wrapper version [0.4.5]
#20 2.339 -- Found APR: /usr/local/apr/lib/libapr-1.so (found version "1.5.2") 
#20 2.342 -- Found APRUtil: /usr/local/apr/lib/libaprutil-1.so (found version "1.5.4") 
#20 2.348 -- Found Sofia: /usr/local/lib/libsofia-sip-ua.so (found version "1.12.11-239-g54ef3e2") 
#20 2.354 -- Found UniMRCP: /usr/local/unimrcp/lib/libunimrcpclient.so (found version "1.8.0.0") 
#20 2.361 -- Found SWIG: /usr/bin/swig3.0 (found version "3.0.12") 
#20 2.363 CMake Deprecation Warning at /usr/share/cmake-3.13/Modules/UseSWIG.cmake:524 (message):
#20 2.363   SWIG_ADD_MODULE is deprecated.  Use SWIG_ADD_LIBRARY instead.
#20 2.363 Call Stack (most recent call first):
#20 2.363   CMakeLists.txt:235 (swig_add_module)
#20 2.363 
#20 2.363 
#20 2.363 CMake Warning (dev) at /usr/share/cmake-3.13/Modules/UseSWIG.cmake:564 (message):
#20 2.363   Policy CMP0078 is not set.  Run "cmake --help-policy CMP0078" for policy
#20 2.363   details.  Use the cmake_policy command to set the policy and suppress this
#20 2.363   warning.
#20 2.363 Call Stack (most recent call first):
#20 2.363   /usr/share/cmake-3.13/Modules/UseSWIG.cmake:525 (swig_add_library)
#20 2.363   CMakeLists.txt:235 (swig_add_module)
#20 2.363 This warning is for project developers.  Use -Wno-dev to suppress it.
#20 2.363 
#20 2.389 -- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found version "2.7.16") 
#20 2.390 CMake Deprecation Warning at /usr/share/cmake-3.13/Modules/UseSWIG.cmake:524 (message):
#20 2.390   SWIG_ADD_MODULE is deprecated.  Use SWIG_ADD_LIBRARY instead.
#20 2.390 Call Stack (most recent call first):
#20 2.390   CMakeLists.txt:265 (swig_add_module)
#20 2.390 
#20 2.390 
#20 2.390 CMake Warning (dev) at /usr/share/cmake-3.13/Modules/UseSWIG.cmake:564 (message):
#20 2.390   Policy CMP0078 is not set.  Run "cmake --help-policy CMP0078" for policy
#20 2.390   details.  Use the cmake_policy command to set the policy and suppress this
#20 2.390   warning.
#20 2.390 Call Stack (most recent call first):
#20 2.390   /usr/share/cmake-3.13/Modules/UseSWIG.cmake:525 (swig_add_library)
#20 2.390   CMakeLists.txt:265 (swig_add_module)
#20 2.390 This warning is for project developers.  Use -Wno-dev to suppress it.
#20 2.390 
#20 2.398 -- Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) 
#20 2.402 -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
#20 2.403 -- Configuring done
#20 2.413 -- Generating done
#20 2.414 CMake Warning:
#20 2.414   Manually-specified variables were not used by the project:
#20 2.414 
#20 2.414     WRAP_JAVA
#20 2.414 
#20 2.414 
#20 2.414 -- Build files have been written to: /home/takeshi/src/git/swig-wrapper
#20 2.457 Scanning dependencies of target PyUniMRCP_swig_compilation
#20 2.469 [  5%] Swig compile UniMRCP-wrapper.i for python
#20 5.265 UniMRCP-wrapper.h:1026: Warning 314: 'next' is a R keyword, renaming to '_next'
#20 7.529 UniMRCP-wrapper.h:1179: Warning 473: Returning a pointer or reference in a director method is not recommended.
#20 7.531 UniMRCP-wrapper.h:1185: Warning 473: Returning a pointer or reference in a director method is not recommended.
#20 7.785 UniMRCP-wrapper.h:1492: Warning 467: Overloaded method UniMRCPMessage::SetBody(void const *,size_t) not supported (incomplete type checking rule - no precedence level in typecheck typemap for 'void const *').
#20 8.955 [  5%] Built target PyUniMRCP_swig_compilation
#20 8.957 make[2]: Circular Python/UniRecog.bat <- Python/UniRecog.bat dependency dropped.
#20 8.957 make[2]: Circular Python/UniSynth.py <- Python/UniSynth.py dependency dropped.
#20 8.957 make[2]: Circular Python/UniSynth.bat <- Python/UniSynth.bat dependency dropped.
#20 8.957 make[2]: Circular Python/UniRecog.py <- Python/UniRecog.py dependency dropped.
#20 8.988 Scanning dependencies of target _PyUniMRCP
#20 9.001 [ 11%] Building CXX object CMakeFiles/_PyUniMRCP.dir/Python/wrapper/UniMRCP-wrapperPYTHON_wrap.cpp.o
#20 9.466 In file included from /home/takeshi/src/git/swig-wrapper/Python/wrapper/UniMRCP-wrapperPYTHON_wrap.cpp:3602:
#20 9.466 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 9.466  # define THROWS throw
#20 9.466                  ^~~~~
#20 9.466 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:855:74: note: in expansion of macro 'THROWS'
#20 9.466                                             unsigned max_log_fcount = 10) THROWS(UniMRCPException);
#20 9.466                                                                           ^~~~~~
#20 9.466 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 9.466  # define THROWS throw
#20 9.466                  ^~~~~
#20 9.466 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:866:103: note: in expansion of macro 'THROWS'
#20 9.466                                             UniMRCPLogPriority log_prio = ENUM_MEM(APT_PRIO_, NOTICE)) THROWS(UniMRCPException);
#20 9.466                                                                                                        ^~~~~~
#20 9.466 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 9.466  # define THROWS throw
#20 9.466                  ^~~~~
#20 9.466 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:871:48: note: in expansion of macro 'THROWS'
#20 9.466   WRAPPER_DECL static void StaticDeinitialize() THROWS(UniMRCPException);
#20 9.466                                                 ^~~~~~
#20 9.466 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 9.466  # define THROWS throw
#20 9.466                  ^~~~~
#20 9.466 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:880:67: note: in expansion of macro 'THROWS'
#20 9.466   WRAPPER_DECL UniMRCPClient(char const* config, bool dir = false) THROWS(UniMRCPException);
#20 9.466                                                                    ^~~~~~
#20 9.466 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 9.466  # define THROWS throw
#20 9.466                  ^~~~~
#20 9.466 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:897:81: note: in expansion of macro 'THROWS'
#20 9.466   static void StaticPreinitialize(int& fd_stdin, int& fd_stdout, int& fd_stderr) THROWS(UniMRCPException);
#20 9.466                                                                                  ^~~~~~
#20 9.466 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 9.466  # define THROWS throw
#20 9.466                  ^~~~~
#20 9.466 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:915:80: note: in expansion of macro 'THROWS'
#20 9.466   WRAPPER_DECL UniMRCPClientSession(UniMRCPClient* client, char const* profile) THROWS(UniMRCPException);
#20 9.466                                                                                 ^~~~~~
#20 9.467 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 9.467  # define THROWS throw
#20 9.467                  ^~~~~
#20 9.467 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:1059:145: note: in expansion of macro 'THROWS'
#20 9.467   WRAPPER_DECL UniMRCPStreamRxMemory(void const* mem, size_t size, bool copy = true, StreamRxMemoryEnd onend = SRM_NOTHING, bool paused = false) THROWS(UniMRCPException);
#20 9.467                                                                                                                                                  ^~~~~~
#20 9.467 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 9.467  # define THROWS throw
#20 9.467                  ^~~~~
#20 9.467 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:1063:138: note: in expansion of macro 'THROWS'
#20 9.467   WRAPPER_DECL void SetMemory(void const* mem, size_t size, bool copy = true, StreamRxMemoryEnd onend = SRM_NOTHING, bool paused = false) THROWS(UniMRCPException);
#20 9.467                                                                                                                                           ^~~~~~
#20 9.467 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 9.467  # define THROWS throw
#20 9.467                  ^~~~~
#20 9.467 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:1162:70: note: in expansion of macro 'THROWS'
#20 9.467   WRAPPER_DECL UniMRCPAudioTermination(UniMRCPClientSession* session) THROWS(UniMRCPException);
#20 9.467                                                                       ^~~~~~
#20 9.467 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 9.467  # define THROWS throw
#20 9.467                  ^~~~~
#20 9.467 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:1249:131: note: in expansion of macro 'THROWS'
#20 9.467   WRAPPER_DECL UniMRCPClientChannel(UniMRCPClientSession* session, UniMRCPResource resource, UniMRCPAudioTermination* termination) THROWS(UniMRCPException);
#20 9.467                                                                                                                                    ^~~~~~
#20 9.468 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 9.468  # define THROWS throw
#20 9.468                  ^~~~~
#20 9.468 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:1261:58: note: in expansion of macro 'THROWS'
#20 9.468   WRAPPER_DECL mrcp_message_t* CreateMsg(unsigned method) THROWS(UniMRCPException);
#20 9.468                                                           ^~~~~~
#20 9.468 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 9.468  # define THROWS throw
#20 9.468                  ^~~~~
#20 9.468 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:1541:81: note: in expansion of macro 'THROWS'
#20 9.468   WRAPPER_DECL void ActiveRequestIdSet(unsigned index, UniMRCPRequestId request) THROWS(UniMRCPException);
#20 9.468                                                                                  ^~~~~~
#20 9.468 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 9.468  # define THROWS throw
#20 9.468                  ^~~~~
#20 9.468 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:1547:44: note: in expansion of macro 'THROWS'
#20 9.468   WRAPPER_DECL unsigned GetMethodID() const THROWS(UniMRCPException);
#20 9.468                                             ^~~~~~
#20 9.468 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 9.468  # define THROWS throw
#20 9.468                  ^~~~~
#20 9.468 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:1548:43: note: in expansion of macro 'THROWS'
#20 9.468   WRAPPER_DECL unsigned GetEventID() const THROWS(UniMRCPException);
#20 9.468                                            ^~~~~~
#20 9.468 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 9.468  # define THROWS throw
#20 9.468                  ^~~~~
#20 9.468 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:1561:104: note: in expansion of macro 'THROWS'
#20 9.468   UniMRCPMessage(mrcp_session_t* sess, mrcp_channel_t* chan, mrcp_message_t* msg, bool autoAddProperty) THROWS(UniMRCPException);
#20 9.468                                                                                                         ^~~~~~
#20 9.469 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 9.469  # define THROWS throw
#20 9.469                  ^~~~~
#20 9.469 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:1606:38: note: in expansion of macro 'THROWS'
#20 9.469   inline method_t GetMethodID() const THROWS(UniMRCPException)
#20 9.469                                       ^~~~~~
#20 9.469 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 9.469  # define THROWS throw
#20 9.469                  ^~~~~
#20 9.469 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:1612:36: note: in expansion of macro 'THROWS'
#20 9.469   inline event_t GetEventID() const THROWS(UniMRCPException)
#20 9.469                                     ^~~~~~
#20 9.469 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 9.469  # define THROWS throw
#20 9.469                  ^~~~~
#20 9.469 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:1648:116: note: in expansion of macro 'THROWS'
#20 9.469   UniMRCPResourceMessageBase(mrcp_session_t* sess, mrcp_channel_t* chan, mrcp_message_t* msg, bool autoAddProperty) THROWS(UniMRCPException) :
#20 9.469                                                                                                                     ^~~~~~
#20 9.470 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 9.470  # define THROWS throw
#20 9.470                  ^~~~~
#20 9.470 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:1766:125: note: in expansion of macro 'THROWS'
#20 9.470   WRAPPER_DECL UniMRCPResourceMessage(mrcp_session_t* sess, mrcp_channel_t* chan, mrcp_message_t* msg, bool autoAddProperty) THROWS(UniMRCPException);
#20 9.470                                                                                                                              ^~~~~~
#20 9.471 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 9.471  # define THROWS throw
#20 9.471                  ^~~~~
#20 9.471 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:1850:112: note: in expansion of macro 'THROWS'
#20 9.471   UniMRCPResourceMessage(mrcp_session_t* sess, mrcp_channel_t* chan, mrcp_message_t* msg, bool autoAddProperty) THROWS(UniMRCPException);
#20 9.471                                                                                                                 ^~~~~~
#20 9.472 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 9.472  # define THROWS throw
#20 9.472                  ^~~~~
#20 9.472 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:1916:112: note: in expansion of macro 'THROWS'
#20 9.472   UniMRCPResourceMessage(mrcp_session_t* sess, mrcp_channel_t* chan, mrcp_message_t* msg, bool autoAddProperty) THROWS(UniMRCPException);
#20 9.472                                                                                                                 ^~~~~~
#20 9.473 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 9.473  # define THROWS throw
#20 9.473                  ^~~~~
#20 9.473 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:1948:107: note: in expansion of macro 'THROWS'
#20 9.473   inline UniMRCPClientResourceChannel(UniMRCPClientSession* session, UniMRCPAudioTermination* termination) THROWS(UniMRCPException) :
#20 9.473                                                                                                            ^~~~~~
#20 9.473 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 9.473  # define THROWS throw
#20 9.473                  ^~~~~
#20 9.473 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:1966:144: note: in expansion of macro 'THROWS'
#20 9.473   inline UniMRCPResourceMessage<resource>* CreateMessage(typename UniMRCPResourceMessage<resource>::Method method, bool autoAddProperty = true) THROWS(UniMRCPException)
#20 9.473                                                                                                                                                 ^~~~~~
#20 11.15 [ 16%] Building CXX object CMakeFiles/_PyUniMRCP.dir/UniMRCP-wrapper.cpp.o
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.cpp:989:43: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
#20 11.19    apt_log(APT_LOG_MARK, APT_PRIO_WARNING, "Offest %"APR_SIZE_T_FMT" beyond file size %"APR_OFF_T_FMT, offset, finfo.size);
#20 11.19                                            ^
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.cpp:989:67: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
#20 11.19    apt_log(APT_LOG_MARK, APT_PRIO_WARNING, "Offest %"APR_SIZE_T_FMT" beyond file size %"APR_OFF_T_FMT, offset, finfo.size);
#20 11.19                                                                    ^
#20 11.19 In file included from /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.cpp:34:
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 11.19  # define THROWS throw
#20 11.19                  ^~~~~
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:855:74: note: in expansion of macro 'THROWS'
#20 11.19                                             unsigned max_log_fcount = 10) THROWS(UniMRCPException);
#20 11.19                                                                           ^~~~~~
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 11.19  # define THROWS throw
#20 11.19                  ^~~~~
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:866:103: note: in expansion of macro 'THROWS'
#20 11.19                                             UniMRCPLogPriority log_prio = ENUM_MEM(APT_PRIO_, NOTICE)) THROWS(UniMRCPException);
#20 11.19                                                                                                        ^~~~~~
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 11.19  # define THROWS throw
#20 11.19                  ^~~~~
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:871:48: note: in expansion of macro 'THROWS'
#20 11.19   WRAPPER_DECL static void StaticDeinitialize() THROWS(UniMRCPException);
#20 11.19                                                 ^~~~~~
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 11.19  # define THROWS throw
#20 11.19                  ^~~~~
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:880:67: note: in expansion of macro 'THROWS'
#20 11.19   WRAPPER_DECL UniMRCPClient(char const* config, bool dir = false) THROWS(UniMRCPException);
#20 11.19                                                                    ^~~~~~
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 11.19  # define THROWS throw
#20 11.19                  ^~~~~
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:897:81: note: in expansion of macro 'THROWS'
#20 11.19   static void StaticPreinitialize(int& fd_stdin, int& fd_stdout, int& fd_stderr) THROWS(UniMRCPException);
#20 11.19                                                                                  ^~~~~~
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 11.19  # define THROWS throw
#20 11.19                  ^~~~~
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:915:80: note: in expansion of macro 'THROWS'
#20 11.19   WRAPPER_DECL UniMRCPClientSession(UniMRCPClient* client, char const* profile) THROWS(UniMRCPException);
#20 11.19                                                                                 ^~~~~~
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 11.19  # define THROWS throw
#20 11.19                  ^~~~~
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:1059:145: note: in expansion of macro 'THROWS'
#20 11.19   WRAPPER_DECL UniMRCPStreamRxMemory(void const* mem, size_t size, bool copy = true, StreamRxMemoryEnd onend = SRM_NOTHING, bool paused = false) THROWS(UniMRCPException);
#20 11.19                                                                                                                                                  ^~~~~~
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 11.19  # define THROWS throw
#20 11.19                  ^~~~~
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:1063:138: note: in expansion of macro 'THROWS'
#20 11.19   WRAPPER_DECL void SetMemory(void const* mem, size_t size, bool copy = true, StreamRxMemoryEnd onend = SRM_NOTHING, bool paused = false) THROWS(UniMRCPException);
#20 11.19                                                                                                                                           ^~~~~~
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 11.19  # define THROWS throw
#20 11.19                  ^~~~~
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:1162:70: note: in expansion of macro 'THROWS'
#20 11.19   WRAPPER_DECL UniMRCPAudioTermination(UniMRCPClientSession* session) THROWS(UniMRCPException);
#20 11.19                                                                       ^~~~~~
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 11.19  # define THROWS throw
#20 11.19                  ^~~~~
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:1249:131: note: in expansion of macro 'THROWS'
#20 11.19   WRAPPER_DECL UniMRCPClientChannel(UniMRCPClientSession* session, UniMRCPResource resource, UniMRCPAudioTermination* termination) THROWS(UniMRCPException);
#20 11.19                                                                                                                                    ^~~~~~
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 11.19  # define THROWS throw
#20 11.19                  ^~~~~
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:1261:58: note: in expansion of macro 'THROWS'
#20 11.19   WRAPPER_DECL mrcp_message_t* CreateMsg(unsigned method) THROWS(UniMRCPException);
#20 11.19                                                           ^~~~~~
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 11.19  # define THROWS throw
#20 11.19                  ^~~~~
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:1541:81: note: in expansion of macro 'THROWS'
#20 11.19   WRAPPER_DECL void ActiveRequestIdSet(unsigned index, UniMRCPRequestId request) THROWS(UniMRCPException);
#20 11.19                                                                                  ^~~~~~
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 11.19  # define THROWS throw
#20 11.19                  ^~~~~
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:1547:44: note: in expansion of macro 'THROWS'
#20 11.19   WRAPPER_DECL unsigned GetMethodID() const THROWS(UniMRCPException);
#20 11.19                                             ^~~~~~
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 11.19  # define THROWS throw
#20 11.19                  ^~~~~
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:1548:43: note: in expansion of macro 'THROWS'
#20 11.19   WRAPPER_DECL unsigned GetEventID() const THROWS(UniMRCPException);
#20 11.19                                            ^~~~~~
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 11.19  # define THROWS throw
#20 11.19                  ^~~~~
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:1561:104: note: in expansion of macro 'THROWS'
#20 11.19   UniMRCPMessage(mrcp_session_t* sess, mrcp_channel_t* chan, mrcp_message_t* msg, bool autoAddProperty) THROWS(UniMRCPException);
#20 11.19                                                                                                         ^~~~~~
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 11.19  # define THROWS throw
#20 11.19                  ^~~~~
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:1606:38: note: in expansion of macro 'THROWS'
#20 11.19   inline method_t GetMethodID() const THROWS(UniMRCPException)
#20 11.19                                       ^~~~~~
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 11.19  # define THROWS throw
#20 11.19                  ^~~~~
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:1612:36: note: in expansion of macro 'THROWS'
#20 11.19   inline event_t GetEventID() const THROWS(UniMRCPException)
#20 11.19                                     ^~~~~~
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 11.19  # define THROWS throw
#20 11.19                  ^~~~~
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:1648:116: note: in expansion of macro 'THROWS'
#20 11.19   UniMRCPResourceMessageBase(mrcp_session_t* sess, mrcp_channel_t* chan, mrcp_message_t* msg, bool autoAddProperty) THROWS(UniMRCPException) :
#20 11.19                                                                                                                     ^~~~~~
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 11.19  # define THROWS throw
#20 11.19                  ^~~~~
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:1766:125: note: in expansion of macro 'THROWS'
#20 11.19   WRAPPER_DECL UniMRCPResourceMessage(mrcp_session_t* sess, mrcp_channel_t* chan, mrcp_message_t* msg, bool autoAddProperty) THROWS(UniMRCPException);
#20 11.19                                                                                                                              ^~~~~~
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 11.19  # define THROWS throw
#20 11.19                  ^~~~~
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:1850:112: note: in expansion of macro 'THROWS'
#20 11.19   UniMRCPResourceMessage(mrcp_session_t* sess, mrcp_channel_t* chan, mrcp_message_t* msg, bool autoAddProperty) THROWS(UniMRCPException);
#20 11.19                                                                                                                 ^~~~~~
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 11.19  # define THROWS throw
#20 11.19                  ^~~~~
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:1916:112: note: in expansion of macro 'THROWS'
#20 11.19   UniMRCPResourceMessage(mrcp_session_t* sess, mrcp_channel_t* chan, mrcp_message_t* msg, bool autoAddProperty) THROWS(UniMRCPException);
#20 11.19                                                                                                                 ^~~~~~
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 11.19  # define THROWS throw
#20 11.19                  ^~~~~
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:1948:107: note: in expansion of macro 'THROWS'
#20 11.19   inline UniMRCPClientResourceChannel(UniMRCPClientSession* session, UniMRCPAudioTermination* termination) THROWS(UniMRCPException) :
#20 11.19                                                                                                            ^~~~~~
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 11.19  # define THROWS throw
#20 11.19                  ^~~~~
#20 11.19 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:1966:144: note: in expansion of macro 'THROWS'
#20 11.19   inline UniMRCPResourceMessage<resource>* CreateMessage(typename UniMRCPResourceMessage<resource>::Method method, bool autoAddProperty = true) THROWS(UniMRCPException)
#20 11.19                                                                                                                                                 ^~~~~~
#20 11.22 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 11.22  # define THROWS throw
#20 11.22                  ^~~~~
#20 11.22 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.cpp:173:88: note: in expansion of macro 'THROWS'
#20 11.22  void UniMRCPClient::StaticPreinitialize(int& fd_stdin, int& fd_stdout, int& fd_stderr) THROWS(UniMRCPException)
#20 11.22                                                                                         ^~~~~~
#20 11.22 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 11.22  # define THROWS throw
#20 11.22                  ^~~~~
#20 11.22 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.cpp:227:63: note: in expansion of macro 'THROWS'
#20 11.22                                       unsigned max_log_fcount) THROWS(UniMRCPException)
#20 11.22                                                                ^~~~~~
#20 11.22 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 11.22  # define THROWS throw
#20 11.22                  ^~~~~
#20 11.22 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.cpp:264:67: note: in expansion of macro 'THROWS'
#20 11.22                                       UniMRCPLogPriority log_prio) THROWS(UniMRCPException)
#20 11.22                                                                    ^~~~~~
#20 11.22 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 11.22  # define THROWS throw
#20 11.22                  ^~~~~
#20 11.22 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.cpp:295:42: note: in expansion of macro 'THROWS'
#20 11.22  void UniMRCPClient::StaticDeinitialize() THROWS(UniMRCPException)
#20 11.22                                           ^~~~~~
#20 11.22 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 11.22  # define THROWS throw
#20 11.22                  ^~~~~
#20 11.22 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.cpp:329:75: note: in expansion of macro 'THROWS'
#20 11.22  UniMRCPClient::UniMRCPClient(char const* config, bool dir /* = false */)  THROWS(UniMRCPException) :
#20 11.22                                                                            ^~~~~~
#20 11.22 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 11.22  # define THROWS throw
#20 11.22                  ^~~~~
#20 11.22 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.cpp:424:89: note: in expansion of macro 'THROWS'
#20 11.22  UniMRCPClientSession::UniMRCPClientSession(UniMRCPClient* _client, char const* profile) THROWS(UniMRCPException) :
#20 11.22                                                                                          ^~~~~~
#20 11.22 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.cpp: In member function 'virtual bool UniMRCPStreamRx::OnOpenInternal(const UniMRCPAudioTermination*, const mpf_audio_stream_t*)':
#20 11.22 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.cpp:669:70: error: invalid conversion from 'apr_pool_t*' to 'apr_uint32_t' {aka 'unsigned int'} [-fpermissive]
#20 11.22     term->dg_tone, term->dg_silence, mrcp_application_session_pool_get(term->sess));
#20 11.22                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
#20 11.22 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.cpp:669:82: error: too few arguments to function 'mpf_dtmf_generator_t* mpf_dtmf_generator_create_ex(const mpf_audio_stream_t*, mpf_dtmf_generator_band_e, apr_uint32_t, apr_uint32_t, apr_uint32_t, apr_pool_t*)'
#20 11.22     term->dg_tone, term->dg_silence, mrcp_application_session_pool_get(term->sess));
#20 11.22                                                                                   ^
#20 11.22 In file included from /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.cpp:51:
#20 11.22 /usr/local/unimrcp/include/mpf_dtmf_generator.h:60:44: note: declared here
#20 11.22  MPF_DECLARE(struct mpf_dtmf_generator_t *) mpf_dtmf_generator_create_ex(
#20 11.22                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
#20 11.23 In file included from /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.cpp:34:
#20 11.23 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.cpp: At global scope:
#20 11.23 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 11.23  # define THROWS throw
#20 11.23                  ^~~~~
#20 11.23 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.cpp:856:166: note: in expansion of macro 'THROWS'
#20 11.23  UniMRCPStreamRxMemory::UniMRCPStreamRxMemory(void const* mem, size_t size, bool copy /*= true*/, StreamRxMemoryEnd onend /*= SRM_NOTHING*/, bool paused /*= false*/) THROWS(UniMRCPException) :
#20 11.23                                                                                                                                                                       ^~~~~~
#20 11.23 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 11.23  # define THROWS throw
#20 11.23                  ^~~~~
#20 11.23 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.cpp:870:159: note: in expansion of macro 'THROWS'
#20 11.23  void UniMRCPStreamRxMemory::SetMemory(void const* mem, size_t size, bool copy /*= true*/, StreamRxMemoryEnd onend /*= SRM_NOTHING*/, bool paused /*= false*/) THROWS(UniMRCPException)
#20 11.23                                                                                                                                                                ^~~~~~
#20 11.23 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 11.23  # define THROWS throw
#20 11.23                  ^~~~~
#20 11.23 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.cpp:1116:81: note: in expansion of macro 'THROWS'
#20 11.23  UniMRCPAudioTermination::UniMRCPAudioTermination(UniMRCPClientSession* session) THROWS(UniMRCPException) :
#20 11.23                                                                                  ^~~~~~
#20 11.23 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.cpp: In static member function 'static apt_bool_t UniMRCPAudioTermination::StmOpenRx(mpf_audio_stream_t*, mpf_codec_t*)':
#20 11.23 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.cpp:1231:7: error: 'const mpf_codec_descriptor_t' {aka 'const struct mpf_codec_descriptor_t'} has no member named 'format'
#20 11.23     d->format.buf, d->channel_count, d->sampling_rate);
#20 11.23        ^~~~~~
#20 11.23 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.cpp: In static member function 'static apt_bool_t UniMRCPAudioTermination::StmOpenTx(mpf_audio_stream_t*, mpf_codec_t*)':
#20 11.23 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.cpp:1300:7: error: 'const mpf_codec_descriptor_t' {aka 'const struct mpf_codec_descriptor_t'} has no member named 'format'
#20 11.23     d->format.buf, d->channel_count, d->sampling_rate);
#20 11.23        ^~~~~~
#20 11.23 In file included from /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.cpp:34:
#20 11.23 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.cpp: At global scope:
#20 11.23 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 11.23  # define THROWS throw
#20 11.23                  ^~~~~
#20 11.23 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.cpp:1359:139: note: in expansion of macro 'THROWS'
#20 11.23  UniMRCPClientChannel::UniMRCPClientChannel(UniMRCPClientSession* session, UniMRCPResource resource, UniMRCPAudioTermination* termination) THROWS(UniMRCPException) :
#20 11.23                                                                                                                                            ^~~~~~
#20 11.23 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 11.23  # define THROWS throw
#20 11.23                  ^~~~~
#20 11.23 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.cpp:1399:66: note: in expansion of macro 'THROWS'
#20 11.23  mrcp_message_t* UniMRCPClientChannel::CreateMsg(unsigned method) THROWS(UniMRCPException)
#20 11.23                                                                   ^~~~~~
#20 11.23 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 11.23  # define THROWS throw
#20 11.23                  ^~~~~
#20 11.23 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.cpp:1488:123: note: in expansion of macro 'THROWS'
#20 11.23  UniMRCPMessage::UniMRCPMessage(mrcp_session_t* _sess, mrcp_channel_t* _chan, mrcp_message_t* _msg, bool _autoAddProperty) THROWS(UniMRCPException) :
#20 11.23                                                                                                                            ^~~~~~
#20 11.23 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 11.23  # define THROWS throw
#20 11.23                  ^~~~~
#20 11.23 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.cpp:1513:46: note: in expansion of macro 'THROWS'
#20 11.23  unsigned UniMRCPMessage::GetMethodID() const THROWS(UniMRCPException)
#20 11.23                                               ^~~~~~
#20 11.23 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 11.23  # define THROWS throw
#20 11.23                  ^~~~~
#20 11.23 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.cpp:1521:45: note: in expansion of macro 'THROWS'
#20 11.23  unsigned UniMRCPMessage::GetEventID() const THROWS(UniMRCPException)
#20 11.23                                              ^~~~~~
#20 11.24 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 11.24  # define THROWS throw
#20 11.24                  ^~~~~
#20 11.24 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.cpp:1808:83: note: in expansion of macro 'THROWS'
#20 11.24  void UniMRCPMessage::ActiveRequestIdSet(unsigned index, UniMRCPRequestId request) THROWS(UniMRCPException)
#20 11.24                                                                                    ^~~~~~
#20 11.24 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 11.24  # define THROWS throw
#20 11.24                  ^~~~~
#20 11.24 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.cpp:1817:152: note: in expansion of macro 'THROWS'
#20 11.24  UniMRCPResourceMessage<MRCP_RECOGNIZER>::UniMRCPResourceMessage(mrcp_session_t* sess, mrcp_channel_t* chan, mrcp_message_t* msg, bool autoAddProperty) THROWS(UniMRCPException) :
#20 11.24                                                                                                                                                         ^~~~~~
#20 11.24 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 11.24  # define THROWS throw
#20 11.24                  ^~~~~
#20 11.24 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.cpp:1832:150: note: in expansion of macro 'THROWS'
#20 11.24  UniMRCPResourceMessage<MRCP_RECORDER>::UniMRCPResourceMessage(mrcp_session_t* sess, mrcp_channel_t* chan, mrcp_message_t* msg, bool autoAddProperty) THROWS(UniMRCPException) :
#20 11.24                                                                                                                                                       ^~~~~~
#20 11.24 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.h:230:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
#20 11.24  # define THROWS throw
#20 11.24                  ^~~~~
#20 11.24 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.cpp:1863:153: note: in expansion of macro 'THROWS'
#20 11.24  UniMRCPResourceMessage<MRCP_SYNTHESIZER>::UniMRCPResourceMessage(mrcp_session_t* sess, mrcp_channel_t* chan, mrcp_message_t* msg, bool autoAddProperty) THROWS(UniMRCPException) :
#20 11.24                                                                                                                                                          ^~~~~~
#20 11.28 make[2]: *** [CMakeFiles/_PyUniMRCP.dir/build.make:92: CMakeFiles/_PyUniMRCP.dir/UniMRCP-wrapper.cpp.o] Error 1
#20 11.28 make[1]: *** [CMakeFiles/Makefile2:105: CMakeFiles/_PyUniMRCP.dir/all] Error 2
#20 11.28 make: *** [Makefile:84: all] Error 2
------
executor failed running [/bin/bash --login -c cd ~/src/git   && git clone https://github.com/unispeech/swig-wrapper   && cd swig-wrapper   && git checkout 01af0d80a5dc9a08240095f4d49a377fb28e4c26   && cmake -D APR_LIBRARY=/usr/local/apr/lib/libapr-1.so -D APR_INCLUDE_DIR=/usr/local/apr/include/apr-1 -D APU_LIBRARY=/usr/local/apr/lib/libaprutil-1.so -D APU_INCLUDE_DIR=/usr/local/apr/include/apr-1 -D UNIMRCP_SOURCE_DIR=/usr/local/src/git/unimrcp -D SOFIA_INCLUDE_DIRS=/usr/include/sofia-sip-1.12 -D WRAP_CPP=OFF -D WRAP_JAVA=OFF -D BUILD_C_EXAMPLE=OFF .   && make]: exit code: 2

Anyway, I think if you stay with unimrcp 1.7.0, you should be able to use swig-wrapper.

@MayamaTakeshi
Copy link
Contributor

MayamaTakeshi commented Jan 1, 2023

Most of the output are warnings and could be ignored.

Filtering the output for errors we have these:

takeshi@takeshi-desktop:~/src/git/MayamaTakeshi/unimrcp_experiments$ grep -i error: swig-wrapper-build-error-against-1.8.0.txt 
#20 11.22 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.cpp:669:70: error: invalid conversion from 'apr_pool_t*' to 'apr_uint32_t' {aka 'unsigned int'} [-fpermissive]
#20 11.22 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.cpp:669:82: error: too few arguments to function 'mpf_dtmf_generator_t* mpf_dtmf_generator_create_ex(const mpf_audio_stream_t*, mpf_dtmf_generator_band_e, apr_uint32_t, apr_uint32_t, apr_uint32_t, apr_pool_t*)'
#20 11.23 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.cpp:1231:7: error: 'const mpf_codec_descriptor_t' {aka 'const struct mpf_codec_descriptor_t'} has no member named 'format'
#20 11.23 /home/takeshi/src/git/swig-wrapper/UniMRCP-wrapper.cpp:1300:7: error: 'const mpf_codec_descriptor_t' {aka 'const struct mpf_codec_descriptor_t'} has no member named 'format'

The first 2 error lines are easy to solve: now mpf_dtmf_generator_create_ex() requires the duration of the dtmf frame.

However I am not sure how to correct the 'format' error.
I can see now we have format_params and match_formats in mpf_codec_descriptor_t.

However checking the code for the function calls, they seem to not be used for anything:

UniMRCPStreamRx* UniMRCPAudioTermination::OnStreamOpenRx(bool enabled, unsigned char payload_type, char const* name,
                                                         char const* format, unsigned char channels, unsigned freq)
{
    (void) enabled;
    (void) payload_type;
    (void) name;
    (void) format;
    (void) channels;
    (void) freq;
    return NULL;
}


UniMRCPStreamTx* UniMRCPAudioTermination::OnStreamOpenTx(bool enabled, unsigned char payload_type, char const* name,
                                                         char const* format, unsigned char channels, unsigned freq)
{
    (void) enabled;
    (void) payload_type;
    (void) name;
    (void) format;
    (void) channels;
    (void) freq;
    return NULL;
}

So I thought maybe the implementation is incomplete and maybe it is usable as before if we just pass NULL as the format parameter.

I tried this and build was successful.
But now, when I used the sample python scripts UniSynth.py and UniRecog.py, instead of using SIP/MRCPv2, the requests are going as RTSP/MRCPv1 instead:

SETUP rtsp://127.0.0.1:1554/media/speechrecognizer RTSP/1.0
CSeq: 1
Transport: RTP/AVP;unicast;client_port=4000-4001
Content-Type: application/sdp
Content-Length: 250

v=0
o=UniMRCPClient 0 0 IN IP4 127.0.0.1
s=-
c=IN IP4 127.0.0.1
t=0 0
m=audio 4000 RTP/AVP 0 8 96 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:96 L16/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendrecv
a=ptime:20

So I think there were further changes in unimrcp core and the swig-wrapper needs more work.

@MayamaTakeshi
Copy link
Contributor

Sorry, my mistake. I changed the UniSynth.py and UniRecog.py files to use profile uni1 (RTSP) instead of uni2 (MRCPv2) by mistake.
I tested and the changes worked. So I will create a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants