Hi, I am trying to use sofia-sip on symbian. I am using S60_3rd_Ed_SDK_FP2_Beta_b and compiling using the WINSCW compiler for the emulator.
The project compiles correctly but when I am trying to run test_nua.exe, I have some issues. The test suite programs use symbols exported by the libsofia-sip-ua DLL. The test suite .mmp files contains "MACRO IN_LIBSOFIA_SIP_UA". It controls whether SOFIAPUBVAR extends to __declspec(dllimport) or __declspec(dllexport). The .dll should use dllexport to export a symbol and the .exe should use dllimport to use a symbol from the .dll. However both .mmp file for the dll and .mmp file for the test suite define the "MACRO IN_LIBSOFIA_SIP_UA". So it uses "__declspec(dllexport)" both in the .dll and in the .exe. IHMO this is a bug in the .mmp files. The symptom is that the application crashes when it try to access to the "nua_log" variable. This variable is exported by the libsofia-sip-ua.dll and used by test_nua.exe. I tried to fix it but then test_nua.exe just crashes as soon as it gets started. My breakpoint in the main() function is not triggered: it crashes before the main() function. I reduced this problem to a small program (43 lines), and reported it there: http://discussion.forum.nokia.com/forum/showthread.php?t=127457 In short, when we access a variable exported from the dll and use it to initialize a local variable, it crashes. This pattern does not work, I don't know why. But this pattern is used a lot in sofia-sip. I don't know whether changing this pattern is the right thing to do. Maybe it is a bug in the compiler, epoc, or whatever and we should fix the real bug instead. (?) For example, see: ./libsofia-sip-ua/nua/test_nua_params.c line 59 that uses NUTAG_ANY, which is a macro expanding to symbol nutag_any from the dll. Regards, Alban ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel