Attached is one more tweak. I did all the tests. All of them work
except for the 2 that are included as cpp files for some reason, that
just include c files. Those are test_nua, and test_tport. The errors
building them looks something like this:
1>------ Build started: Project: test_tport, Configuration: Debug Win32
------
1>Compiling...
1>test_class.cpp
1>c:\program files\microsoft visual studio
8\vc\platformsdk\include\wspiapi.h(44) : error C2894: templates cannot
be declared to have 'C' linkage
1>Build log was saved at
"file://c:\src\sofia-sip\win32\tests\test_tport\Debug\BuildLog.htm"
1>test_tport - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped
==========
> -----Original Message-----
> From: Pekka Pessi [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 20, 2006 4:57 PM
> To: Michael Jerris
> Cc: [email protected]
> Subject: Re: [Sofia-sip-devel] sofia-sip changes (2006-09-19)
>
> On 9/20/06, Michael Jerris <[EMAIL PROTECTED]> wrote:
> > One more round, this file includes 3 patches, one that lets it
compile
> > again on windows, 1 that resolves the level 3 64 bit warnings
(beware
> > of
> > what I did for tport.c, that one needs some review), and one that
> > resolves
> > the remaining level 4 warnings.
>
> > The first patch also includes a fix: pass correct url, not param to
> > url_has_param in the file nta.c
>
> Thanks. I have appied the patches. This time I compiled the stuff also
> on Windows, and fixed the POSIX wrappers, or so I hope.
>
> Mike, could you review the latest darcs version? Please compile also
> the test cases and see if you can run the tests by win32/check.cmd
> when compiling with newer VC.
>
> --Pekka
>
> --
> Pekka.Pessi mail at nokia.com
New patches:
[fix typo in struct typedef on su_iovec_s -> su_iovec_t on windows
[EMAIL PROTECTED] {
hunk ./libsofia-sip-ua/su/sofia-sip/su.h 258
-} su_iovec_s;
+} su_iovec_t;
}
[a few more little type tweaks
[EMAIL PROTECTED] {
hunk ./libsofia-sip-ua/msg/msg_parser.c 1943
- vec[n-1].mv_len += len;
+ vec[n-1].mv_len += (u_long)len;
hunk ./libsofia-sip-ua/tport/tport.c 3175
- iov[i].mv_len -= n - total;
+ iov[i].mv_len -= (u_long)(n - total);
hunk ./libsofia-sip-ua/tport/tport.c 3177
- if (tport_queue_rest(self, msg, &iov[i], iovused - i) >= 0)
+ if (tport_queue_rest(self, msg, &iov[i], (ssize_t)(iovused - i)) >= 0)
hunk ./libsofia-sip-ua/tport/tport.c 3577
- int iovused;
+ size_t iovused;
hunk ./libsofia-sip-ua/tport/tport.c 3603
- iov[i].mv_len -= n - total;
+ iov[i].mv_len -= (u_long)(n - total);
}
Context:
[RELEASE: updated.
[EMAIL PROTECTED]
[su_os_nw.h, su_os_nw.c: updated su_root_remove_network_changed() prototype.
[EMAIL PROTECTED]
Updated documentation, too.
]
[msg module: updated documentation.
[EMAIL PROTECTED]
[Added Doxygen alias @VERSION_1_12_2. Using it to document additions.
[EMAIL PROTECTED]
[su.h, su.c: added su_is_blocking(). Using it in tport.
[EMAIL PROTECTED]
[win32 fixes
[EMAIL PROTECTED]
Changes in iptsec/auth_common.c, test_nua_params.c, nua/test_register.c,
nua/test_sip_events.c, sres.c, win32/unistd.h.
]
[Updated libsofia_sip_ua(_static).dsp.
[EMAIL PROTECTED]
[tport: updated internal interfaces to use ssize_t/size_t.
[EMAIL PROTECTED]
[htable.h: using size_t in htable_resize(), too.
[EMAIL PROTECTED]
[su.h, su.c, stun.c: fixed su_recvfrom() prototype.
[EMAIL PROTECTED]
[sres.c: fixed definition of sres_send() and sres_recvfrom() on win32.
[EMAIL PROTECTED]
[utils/Doxyfile: fixed doxytag links, inclusion of Doxyfile.rfc
[EMAIL PROTECTED]
[Defining non-standard define UINT32_MAX where it is used.
[EMAIL PROTECTED]
[Added /D HAVE_CONFIG_H to win32 .dsp files
[EMAIL PROTECTED]
[resolve msvc level 4 warnings
[EMAIL PROTECTED]
[resolve msvc level 3 64 bit warnings
[EMAIL PROTECTED]
[Windows type fixes
[EMAIL PROTECTED]
[torture_sip.c: fixed typo in test_manipulation().
[EMAIL PROTECTED]
[torture_sip.c: removed tests for deprecated q-parameter of Accept-Contact
header.
[EMAIL PROTECTED]
[torture_sip.c: added msg_copy() to test_manipulation()
[EMAIL PROTECTED]
[torture_sip.c: added tests for header manipulation.
[EMAIL PROTECTED]
[torture_sip.c: moved main to the end.
[EMAIL PROTECTED]
[sip_util.c: sip_aor_strip() now uses memmove() when copying overlapping
strings.
[EMAIL PROTECTED]
[nua_session.c, test_100rel.c: allow restart (authentication) of PRACK request.
test it, too.
[EMAIL PROTECTED]
[nua_stack.c: nua_stack_event() now allows sending after-1.12.0 events to
application
[EMAIL PROTECTED]
[Added comment on TAG_NULL vs TAG_END.
[EMAIL PROTECTED]
[Fixes for using size_t/ssize_t/su_socket_t and isize_t/usize_t/issize_t.
[EMAIL PROTECTED]
su, sip, msg, http, url, sdp, soa, etc..
]
[still MORE msvc 2005 warnings fixes
[EMAIL PROTECTED]
[sip_basic.c: fixed sip_contact_class initializer.
[EMAIL PROTECTED]
[url: updated doxygen documentation.
[EMAIL PROTECTED]
[Missing #include
[EMAIL PROTECTED]
[The Sofia-SIP m4 macros are no longer installed to /usr/share/aclocal/.
[EMAIL PROTECTED]
[su_bm.c: fixed stupid bug brought from documenting stuff.
[EMAIL PROTECTED]
[libsofia-sip-ua/Doxyfile.aliases: moved @RFCXXXX aliases to an autogenerated
file Doxyfile.rfc.
[EMAIL PROTECTED]
[nta.c: fixed problem of processing requests without Via lines
[EMAIL PROTECTED]
Bug reported by Henrik Nordstr-Aöm. -b
]
[nua_session.c, nua_tag.h: do not auto-answer re-INVITE if media is disabled.
[EMAIL PROTECTED]
Updated NUTAG_AUTOANSWER() documentation. Added @bug description there.
]
[sip_caller_prefs.c: ignoring fields cp_q, cp_require and cp_explicit in
Reject-Contact.
[EMAIL PROTECTED]
[Updated top-level documentation. Added links from submodules to toplevel.
[EMAIL PROTECTED]
For module-specific mainpage, added @MODULEPAGE alias.
For links, added @SofiaSIP alias.
]
[nua: updated documentation.
[EMAIL PROTECTED]
[COPYRIGHTS: removed ipt/sha1.[hc] - they are used no more.
[EMAIL PROTECTED]
[su: updated some documentation.
[EMAIL PROTECTED]
[sresolv: updated documentation.
[EMAIL PROTECTED]
[sdp: updated documentation.
[EMAIL PROTECTED]
[msg: updated documentation. Making use of new doxygen features.
[EMAIL PROTECTED]
[nta: updated docmentation. improved links to sip module.
[EMAIL PROTECTED]
[sip: updated doxygen docs. Using aliased links to header groups like @Contact.
[EMAIL PROTECTED]
[msg_types.h: removed deprecated types.
[EMAIL PROTECTED]
[bnf: added links to sofia-sip-ua in documentation.
[EMAIL PROTECTED]
[libsofia-sip-ua/Makefile.am: fixed empty-doxytags target
[EMAIL PROTECTED]
[Doxyfiles: renamed doxytag fles. Reordered input.
[EMAIL PROTECTED]
[Add proper handling of unknown NUA events to nua_glib.
[EMAIL PROTECTED]
[nua: added NUTAG_M_DISPLAY(), NUTAG_M_USERNAME(), NUTAG_M_PARAMS() and
NUTAG_M_FEATURES().
[EMAIL PROTECTED]
These tags are used to modify the Contact header generated by the stack in
the nua_handle_contact_by_via() header. Currently, the tags only affect
Contact header generated for registration.
Updated internal outbound interface in order to make use of the new features.
]
[nua: saving nua->nua_args even after nua_create() has completed.
[EMAIL PROTECTED]
[test_nua.c: printing initializiation test events with -I option
[EMAIL PROTECTED]
[Added missing nua_glib_op.c file.
[EMAIL PROTECTED]
[Added missing nua_glib_op.h file. Documentation updates to nua_glib.c.
[EMAIL PROTECTED]
[Fixes to the su_glib API, updated the su_glib unit test to use
g_main_loop_run().
[EMAIL PROTECTED]
[Added assertions guarding against invalid use of the nua_glib API.
[EMAIL PROTECTED]
[Fixes to nua_glib doxygen output.
[EMAIL PROTECTED]
[Added missing signal definition for nua_glib::cancel-answered.
[EMAIL PROTECTED]
[Added nua_glib::cancel-answered signal.
[EMAIL PROTECTED]
[Fixed #1485968: doxygen docs for libsofia-sip-ua-glib are broken.
[EMAIL PROTECTED]
[New interface for su_glib. The old one is still there but deprecated.
libsofia-sip-ua-glib interface version to 1:0:1.
[EMAIL PROTECTED]
[Big update to to nua_glib. Separated nua_glib operator code to
nua_glib_oper.c, improved documentation, and error handling.
[EMAIL PROTECTED]
[Fixed doxygen documentation for libsofia-sip-ua-glib (closed bug #1485968.
Added example code to the su_glib doxygen documentation.
[EMAIL PROTECTED]
[su_tagarg.h: ta_start() initializes all of ta_list in all cases.
[EMAIL PROTECTED]
[Fixed build error caused by undefined REF_MAX.
[EMAIL PROTECTED]
[Doxygen documentation fixes.
[EMAIL PROTECTED]
[msg module: using size_t. Checking for input value for offsets.
[EMAIL PROTECTED]
[msg module: updated documentation.
[EMAIL PROTECTED]
[iptsec: fixed doxygen errors.
[EMAIL PROTECTED]
[features: made most feature variables non-const. Fixed documentation.
[EMAIL PROTECTED]
[su_alloc.c: defining REF_MAX.
[EMAIL PROTECTED]
[more msvc warning fixes
[EMAIL PROTECTED]
[Fixed build error caused by undefined REF_MAX.
[EMAIL PROTECTED]
[libsofia-sip-ua: more 64-bit fixes: internally using size_t instead of int.
[EMAIL PROTECTED]
[sres.c: small fixes with size_t usage.
[EMAIL PROTECTED]
Note that sresolv module tries very hard not to depend on <sofia-sip/su.h>.
]
[fix safe to fix msvc 2005 level 3 warnings with /w64 by changing many types of
variables internal to fuctions, to be more strongly typed to function
prototypes and returns
[EMAIL PROTECTED]
[fix msvc 2005 level 3 warnings
[EMAIL PROTECTED]
[soa.c: soa_set_sdp() uses now issize_t, too.
[EMAIL PROTECTED]
[su_win32/sofia-sip/su_configure.h: take 3 on defining suitable values for
win32/win64. Now use __w64 as explained by Michael Jerris.
[EMAIL PROTECTED]
[win32/sofia-sip/su_configure.h: using values from <basetsd.h>
[EMAIL PROTECTED]
Always defining isize_t, usize_t as size_t on Windows, issize_t as ssize_t.
Note that <limits.h> with _POSIX_ on VC uses 16-bit values for SSIZE_MAX,
for instance.
]
[sofia-sip/su_types.h: documenting isize_t, issize_t, and usize_t.
[EMAIL PROTECTED]
[Added a workaround for platforms such as VC6 that do not support %z modifier
for printing size/ssize_t (a C99 feature).
[EMAIL PROTECTED]
[Avoid preprocessor warning in tport about redefining version.
[EMAIL PROTECTED]
[Allow test_nta.c to be built without dirent.h interface.
[EMAIL PROTECTED]
[Fixed a segfault handling an invalid tagtype in su_taglist.
[EMAIL PROTECTED]
[Warn users that NUTAG_IDENTITY is not yet implemented.
[EMAIL PROTECTED]
[Updated TODO list.
[EMAIL PROTECTED]
[Added ability to select transport to use by passing NTATAG_TPORT() to
nta_outgoing_*create() functions.
Kai Vehmanen <[EMAIL PROTECTED]>**20060907132931]
[RELEASE: describing nutag_early_answer, isize_t&co.
[EMAIL PROTECTED]
[nua: optionally include answer in 1XX response.
[EMAIL PROTECTED]
The SDP answer is included in non-realiable 1XX response, if
NUTAG_EARLY_ANSWER(1) is included in nua_response() tags, or the user SDP is
specified with SOATAG_USER_SDP() or SOATAG_USER_SDP_STR() in nua_response()
tags.
test_basic_call.c: added test_basic_call_2() for testing the call setup
where 180 contains the answer and the SDP in 200 OK is ignored.
]
[win32/sofia-sip/su_configure.h: fixed SU_INTPTR_T definition. Defining
SIZE_MAX and SSIZE_MAX if needed.
[EMAIL PROTECTED]
[su_tag_inline.h: fixed t_xtra() return type (size_t instead of int).
[EMAIL PROTECTED]
[su: using isize_t, usize_t, issize_t in API.
[EMAIL PROTECTED]
Internally using size_t.
]
[nth_client.c: not using su_salloc().
[EMAIL PROTECTED]
[nua: using isize_t, size_t.
[EMAIL PROTECTED]
[nta: using usize_t in tport API.
[EMAIL PROTECTED]
[sres.c: using size_t.
[EMAIL PROTECTED]
[su_configure.h.in, sac-su2.m4: added compatibility types for size parameters.
[EMAIL PROTECTED]
Sofia-SIP 1.12 API passes size in int or unsigned int in numerous places.
Now use typedes isize_t (used instead of int), usize_t (used instead of
unsigned) and issize_t (used instead of int when returning signed size).
With --disable-size-compat, make API to use size_t or ssize_t instead of
int/unsigned int.
win32/sofia-sip/su_configure.h: define suitable values for isize_t, usize_t
and issize_t.
]
[url module: using isize_t, usize_t, issize_t in API.
[EMAIL PROTECTED]
[msg module: using isize_t, usize_t, issize_t in API.
[EMAIL PROTECTED]
]
[tport module: using isize_t/usize_t/issize_t in API.
[EMAIL PROTECTED]
[soa module: using isize_t/usize_t/issize_t in API.
[EMAIL PROTECTED]
[sdp module: using isize_t in API.
[EMAIL PROTECTED]
[iptsec: using isize_t, usize_t, issize_t in API.
[EMAIL PROTECTED]
Fixed basic authentication crashing with too long username/password.
]
[sip module: using isize_t, usize_t, issize_t in API.
[EMAIL PROTECTED]
[bnf module: using isize_t and issize_t in API.
[EMAIL PROTECTED]
[http: using isize_t, usize_t, issize_t in API.
[EMAIL PROTECTED]
Internally using size_t/ssize_t.
]
[tport module: using isize_t, usize_t, issize_t in API.
[EMAIL PROTECTED]
Using internally size_t.
]
[stun: using isize_t, usize_t, and issize_t in API.
[EMAIL PROTECTED]
Internally, this looks like all mess.
]
[tport.c, nta.c. nth_client.c: using msg_addr() sparingly.
[EMAIL PROTECTED]
[ipt: using isize_t, usize_t, issize_t in API.
[EMAIL PROTECTED]
Internally using size_t.
]
[fix msvc warnings for hash_value_t
Michael Jerris <[EMAIL PROTECTED]>**20060904182655]
[Using su_socket() and su_socket_t. Added socket_tag_class, tag_socket_v(),
tag_socket_vr().
[EMAIL PROTECTED]
[su module: use socklen_t where appropriate.
[EMAIL PROTECTED]
su.h, su_localinfo.h (li_addrlen), su_addrinfo.c, su_localinfo.c.
]
[htable.h: allow template user to define hash value type.
[EMAIL PROTECTED]
Added HTABLE_DECLARE_WITH(), HTABLE_PROTOS_WITH(), HTABLE_BODIES_WITH().
]
[msg.c, sofia-sip/msg_addr.h: removed deprecated function msg_addrlen().
[EMAIL PROTECTED]
[sresolv: use sres_socket_t in API instead of plain int.
[EMAIL PROTECTED]
sres_socket_t is typedef to SOCKET or int.
]
[Fixed to in internal nua functions: subsribe->subscribe
[EMAIL PROTECTED]
[soa_static.c: fixed problem of a new offer not including active codec.
[EMAIL PROTECTED]
test_soa.c: added test for dropping codecs from new offer.
Based on patch by Legostayev Denis.
]
[nua module: updated doxygen documentation.
[EMAIL PROTECTED]
[nta_check.c: updated documentation.
[EMAIL PROTECTED]
[tport module: fixed doxygen file entries.
[EMAIL PROTECTED]
[RELEASE: updated.
[EMAIL PROTECTED]
[su_root.c: fixed race condition in su_task_execute().
[EMAIL PROTECTED]
Patch #1552626 by Andrzej Ciarkowski:
While running test_nua example it crashes on
su_task_execute() (called from test_nat_flush()). The
function has race condition - call to
pthread_cond_wait(frame->cond, frame->mutex); may
happen when memory pointed by frame is already
deallocated by the message dispatcher. This is clearly
visible in VC++ Debug builds, as debug version of
Windows allocator overwrites freed memory with some
rubbish, so that mutex and cond both point into
garbage. The frame probably should not be allocated as
a part of the message.
]
[test_soa.c: testing codec negotiation when new codecs are added to previously
rejected media.
[EMAIL PROTECTED]
[test_soa.c: testing SOATAG_AUDIO_AUX().
[EMAIL PROTECTED]
[soa_static.c: added new tag SOATAG_AUDIO_AUX() for listing auxiliary codecs.
[EMAIL PROTECTED]
Auxiliary codecs are now included in m=line even if there is no matching
codec at remote end. They are also ignored when selecting common codecs.
]
[soa_tag.h, soa_tag.c: added SOATAG_AUDIO_AUX().
[EMAIL PROTECTED]
[soa_static.c: always upgrade answer if offer has changed.
[EMAIL PROTECTED]
sdp.c: fixed sdp_media_cmp() - now include m_mode in comparison.
Based on bug report and initial patch submitted by Legostayev Denis.
]
[nta.c, nta.docs: updated stateless callback documentation.
[EMAIL PROTECTED]
Updated documentation of nta_outgoing_tcancel(), too.
]
[sip_util.c: fixed return value for 405.
[EMAIL PROTECTED]
[RELEASE: mention UPDATE bug.
[EMAIL PROTECTED]
[nua_session.c: fixed problem of UAC receiving UPDATE on an early dialog.
[EMAIL PROTECTED]
test_100rel.c: added test for original UAS sending UPDATE.
]
[msrps:// URL scheme
[EMAIL PROTECTED]
[test_sresolv warnings
[EMAIL PROTECTED]
[test_nua_params.c: fixed test of refer_expires.
[EMAIL PROTECTED]
[TAG not-rel-sofia-sip-ua-1.2.1work2
[EMAIL PROTECTED]
Patch bundle hash:
e721faaf899916e456dad24a60eb94b31f90cde7
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sofia-sip-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel