You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Yves Martin <yv...@elca.ch> on 2007/03/30 08:10:51 UTC

Re: [neon] Re: Subversion/Neon win32 compilation

On Thu, 2007-03-29 at 16:10 +0200, Ulrich Eckhardt wrote:
> > util.c
> > ..\..\..\subversion\libsvn_ra_dav\util.c(688) : warning C4133:
> > 'function' : incompatible types - from 'void (__cdecl *)(void *,const
> > char *,size_t)' to 'ne_block_reader'
> 
> Incompatible function pointers are an invitation for f***up. Note: for MS 
> Windows, the calling convention (__cdecl) is also an important part of the 
> function signature!
> 
> Disclaimer: I have never compiled neon or SVN on win32.

Thank you Ulrich for your answer.
Have you got a proposal how to fix these issues ?
Errors are marked on function pointer affectation but the "__cdecl"
keyword is never explicitly written in any sources files.

It seems "ne_decompress_reader" has four parameters in signature and the
compiler expect only 3 ??

I'm trying to build Subversion 1.4.x (branch) with Neon 0.26.x (branch)
as latest win32 releases are built with 0.26.3. But errors are the same
with 0.25.x

I really wonder who compiles win32 binary for Subversion and how ;)

Thank you in advance for any help.
Best regards,
-- 
Yves Martin

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [neon] Re: Subversion/Neon win32 compilation

Posted by Yves Martin <yv...@elca.ch>.
On Fri, 2007-03-30 at 10:40 +0200, Ulrich Eckhardt wrote:
> On Friday 30 March 2007 10:10, Yves Martin wrote:
> > It seems "ne_decompress_reader" has four parameters in signature and the
> > compiler expect only 3 ??
> 
> Okay, if that is the case you don't even need the calling convention to mess 
> up things. It simply means that the functions don't match. Why that is the 
> case, when this last used to work or how it should be fixed is beyond me, I'd 
> have to take a real look at the code.

I'm wrong. The problem comes from the spool_reader definition in util.c;
Neon expects an integer as return type (ne_block_reader definition) and
the lacks of the SVN_NEON_0_25 defines it as "void".

Comparing with a Linux compilation, I think I have to add
#DEFINE SVN_NEON_0_25 1
#DEFINE SVN_NEON_0_26 1
in subversion/svn_private_config.h

I guess it should be the gen_make.py responsability to generate that
file right.

Great ! My compilation is over !
Best regards,
-- 
Yves Martin

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [neon] Re: Subversion/Neon win32 compilation

Posted by Ulrich Eckhardt <ec...@satorlaser.com>.
On Friday 30 March 2007 10:10, Yves Martin wrote:
> On Thu, 2007-03-29 at 16:10 +0200, Ulrich Eckhardt wrote:
> > > util.c
> > > ..\..\..\subversion\libsvn_ra_dav\util.c(688) : warning C4133:
> > > 'function' : incompatible types - from 'void (__cdecl *)(void *,const
> > > char *,size_t)' to 'ne_block_reader'
> >
> > Incompatible function pointers are an invitation for f***up. Note: for MS
> > Windows, the calling convention (__cdecl) is also an important part of
> > the function signature!
> >
> > Disclaimer: I have never compiled neon or SVN on win32.
>
> Thank you Ulrich for your answer.
> Have you got a proposal how to fix these issues ?
> Errors are marked on function pointer affectation but the "__cdecl"
> keyword is never explicitly written in any sources files.

About the __cdecl, you can set the default calling convention with a compiler 
switch or override it in the code using the __cdecl attribute. In general, 
don't mess with the compiler switch. Often, when such things are concerned, 
the code in question hides it behind a macro that resolves to nothing on 
platforms that don't use this.

> It seems "ne_decompress_reader" has four parameters in signature and the
> compiler expect only 3 ??

Okay, if that is the case you don't even need the calling convention to mess 
up things. It simply means that the functions don't match. Why that is the 
case, when this last used to work or how it should be fixed is beyond me, I'd 
have to take a real look at the code.

> I'm trying to build Subversion 1.4.x (branch) with Neon 0.26.x (branch)
> as latest win32 releases are built with 0.26.3. But errors are the same
> with 0.25.x
>
> I really wonder who compiles win32 binary for Subversion and how ;)

Hmmm, since Tigris has binaries for download, someone obviously managed to do 
it - have you asked them? Also, IIRC SVN includes branched copies of some 
libraries in their own code, maybe you need to use those?

Uli

-- 
Sator Laser GmbH
Geschäftsführer: Ronald Boers, Amtsgericht Hamburg HR B62 932

**************************************************************************************
           Visit our website at <http://www.satorlaser.de/>
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Sator Laser GmbH ist für diese Folgen nicht verantwortlich.

**************************************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org


Re: Subversion win32 crash with neon 0.26.x over https/SPNEGO

Posted by "D.J. Heap" <dj...@gmail.com>.
On 4/2/07, Yves Martin <yv...@elca.ch> wrote:
[snip]
>
> Is it possible to implement the virtual host SPNEGO support in neon also
> for win32 platform ? It works properly on Linux but not on Windows.
>


Sorry, I really have no idea what's involved there or why it would be
different on Windows.

DJ

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Subversion win32 crash with neon 0.26.x over https/SPNEGO

Posted by Yves Martin <yv...@elca.ch>.
On Sat, 2007-03-31 at 20:31 -0600, D.J. Heap wrote:
> On 3/30/07, Martin Yves <yv...@elca.ch> wrote:
> >
> > My Subversion compilation on win32 platform was successful.
> > A first test with 1.4.x branch and neon 0.25.5 works properly
> > (I mean: SPNEGO authentication works if the URL contains the server
> > fully qualified name)
> >
> > When building with neon 0.26.x, the svn command line crash with a null
> > pointer (yes I'm a Java guy) in libsvn_ra_dav/util.c:
> >

> Have you tried with neon's HEAD version?  I seem to recall some auth
> related fixes that haven't been in a release yet (r1161 looks like it
> may be relevant).

You're right - I have tested 1164 and it not longer crashs.

But I find many 404 trials in debug messages before getting my "list"
result. I will compare with my Linux 1.4.2 / neon 0.25.5 before
reporting.

Is it possible to implement the virtual host SPNEGO support in neon also
for win32 platform ? It works properly on Linux but not on Windows.

Thank you.
Best regards,
-- 
Yves Martin

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Subversion win32 crash with neon 0.26.x over https/SPNEGO

Posted by "D.J. Heap" <dj...@gmail.com>.
On 3/30/07, Martin Yves <yv...@elca.ch> wrote:
>
>
>  Hello,
>
> My Subversion compilation on win32 platform was successful.
> A first test with 1.4.x branch and neon 0.25.5 works properly
> (I mean: SPNEGO authentication works if the URL contains the server
> fully qualified name)
>
> When building with neon 0.26.x, the svn command line crash with a null
> pointer (yes I'm a Java guy) in libsvn_ra_dav/util.c:
>


Have you tried with neon's HEAD version?  I seem to recall some auth
related fixes that haven't been in a release yet (r1161 looks like it
may be relevant).

DJ

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Subversion win32 crash with neon 0.26.x over https/SPNEGO

Posted by Martin Yves <yv...@elca.ch>.
 Hello,

My Subversion compilation on win32 platform was successful.
A first test with 1.4.x branch and neon 0.25.5 works properly
(I mean: SPNEGO authentication works if the URL contains the server
fully qualified name)

When building with neon 0.26.x, the svn command line crash with a null
pointer (yes I'm a Java guy) in libsvn_ra_dav/util.c:

  /* Register the "error" accepter and body-reader with the request --
     the one to use when HTTP status is *not* 2XX */
  if (ras->compression)
    decompress_err = ne_decompress_reader(req, ra_dav_error_accepter,
                                          ne_xml_parse_v, error_parser);
  else
    ne_add_response_body_reader(req, ra_dav_error_accepter, 
                                ne_xml_parse_v, error_parser);

  /* run the request and get the resulting status code. */
  rv = ne_request_dispatch(req);

. req is null
. ras->compression is 0
. The raw stack trace follows if someone can get something out of it
. I'm happy: I can reproduce the bug now !

Thank you in advance for any help (patch proposal for instance ?)

svn.exe!_ne_parse_statusline()  + 0x15c1 bytes
svn.exe!_ne_end_request()  + 0x54 bytes
svn.exe!_ne_request_dispatch()  + 0x3e bytes
svn.exe!parsed_request(ne_session_s * sess=0x00b22d28, const char *
method=0x004bf7a8, const char * url=0x00b0b2e0, const char *
body=0x00000000, apr_file_t * body_file=0x00000000, void
(ne_xml_parser_s *, void *)* set_parser=0x00471da0, const
svn_ra_dav__xml_elm_t * elements=0x004c0ff0, int use_neon_shim=1, int
(void *, int, int)* validate_compat_cb=0x00471810, int (void *, const
svn_ra_dav__xml_elm_t *, const char * *)* startelm_compat_cb=0x00471990,
int (void *, const svn_ra_dav__xml_elm_t *, const char *)*
endelm_compat_cb=0x00471b70, int (void *, int, const char *, const char
*, const char * *)* startelm_cb=0x00000000, int (void *, int, const char
*, unsigned int)* cdata_cb=0x00000000, int (void *, int, const char *,
const char *)* endelm_cb=0x00000000, void * baton=0x0012faec, apr_hash_t
* extra_headers=0x00b0b308, int * status_code=0x00000000, int
spool_response=0, apr_pool_t * pool=0x00b0b0c0)  Line 715 + 0x6 bytes
svn.exe!svn_ra_dav__parsed_request_compat(ne_session_s *
sess=0x00b22d28, const char * method=0x004bf7a8, const char *
url=0x00b0b2e0, const char * body=0x00b24a60, apr_file_t *
body_file=0x00000000, void (ne_xml_parser_s *, void *)*
set_parser=0x00471da0, const svn_ra_dav__xml_elm_t *
elements=0x004c0ff0, int (void *, int, int)* validate_cb=0x00471810, int
(void *, const svn_ra_dav__xml_elm_t *, const char * *)*
startelm_cb=0x00471990, int (void *, const svn_ra_dav__xml_elm_t *,
const char *)* endelm_cb=0x00471b70, void * baton=0x0012faec, apr_hash_t
* extra_headers=0x00b0b308, int * status_code=0x00000000, int
spool_response=0, apr_pool_t * pool=0x00b0b0c0)  Line 880 + 0x57 bytes
svn.exe!svn_ra_dav__get_props(apr_hash_t * * results=0x0012fb38,
ne_session_s * sess=0x00b22d28, const char * url=0x00b0b2e0, int
depth=0, const char * label=0x00000000, const ne_propname *
which_props=0x004c0eb0, apr_pool_t * pool=0x00b0b308)  Line 539
svn.exe!svn_ra_dav__get_props_resource(svn_ra_dav_resource_t * *
rsrc=0x0012fba4, ne_session_s * sess=0x00b22d28, const char *
url=0x00b0b2a8, const char * label=0x00000000, const ne_propname *
which_props=0x004c0eb0, apr_pool_t * pool=0x00b0b0c0)  Line 559 + 0x1d
bytes
svn.exe!svn_ra_dav__search_for_starting_props(svn_ra_dav_resource_t * *
rsrc=0x0012fba4, const char * * missing_path=0x0012fba8, ne_session_s *
sess=0x00b22d28, const char * url=0x003fd128, apr_pool_t *
pool=0x00b0b0c0)  Line 668 + 0x1b bytes
svn.exe!svn_ra_dav__get_baseline_props(svn_string_t *
bc_relative=0x0012fbe8, svn_ra_dav_resource_t * * bln_rsrc=0x0012fbe4,
ne_session_s * sess=0x00b22d28, const char * url=0x003fd128, long
revision=-1, const ne_propname * which_props=0x004c0ed8, apr_pool_t *
pool=0x00b0b0c0)  Line 776 + 0x22 bytes
svn.exe!svn_ra_dav__get_baseline_info(int * is_dir=0x00000000,
svn_string_t * bc_url=0x00000000, svn_string_t * bc_relative=0x00000000,
long * latest_rev=0x0012fc6c, ne_session_s * sess=0x00b22d28, const char
* url=0x003fd128, long revision=-1, apr_pool_t * pool=0x00b0b0c0)  Line
904 + 0x2c bytes
svn.exe!svn_ra_dav__get_latest_revnum(svn_ra_session_t *
session=0x00b0b1b8, long * latest_revnum=0x0012fc6c, apr_pool_t *
pool=0x00b0b0c0)  Line 1246 + 0x20 bytes
svn.exe!svn_client__get_revision_number(long * revnum=0x0012fc6c,
svn_ra_session_t * ra_session=0x00b0b1b8, const svn_opt_revision_t *
revision=0x0012fcfc, const char * path=0x00b0b0f8, apr_pool_t *
pool=0x00b0b0c0)  Line 65 + 0x10 bytes
svn.exe!svn_client__repos_locations(const char * * start_url=0x0012fcdc,
svn_opt_revision_t * * start_revision=0x0012fce0, const char * *
end_url=0x0012fce8, svn_opt_revision_t * * end_revision=0x0012fce4,
svn_ra_session_t * ra_session=0x00b0b1b8, const char * path=0x00b0b0f8,
const svn_opt_revision_t * revision=0x0012fcfc, const svn_opt_revision_t
* start=0x0012fcec, const svn_opt_revision_t * end=0x0012fd0c,
svn_client_ctx_t * ctx=0x00af4598, apr_pool_t * pool=0x00b0b0c0)  Line
762 + 0x16 bytes
svn.exe!svn_client__ra_session_from_path(svn_ra_session_t * *
ra_session_p=0x0012fd50, long * rev_p=0x0012fd54, const char * *
url_p=0x0012fd60, const char * path_or_url=0x00b0b0f8, const
svn_opt_revision_t * peg_revision_p=0x0012fdd8, const svn_opt_revision_t
* revision=0x0012fe50, svn_client_ctx_t * ctx=0x00af4598, apr_pool_t *
pool=0x00b0b0c0)  Line 928 + 0x38 bytes
svn.exe!svn_client_list(const char * path_or_url=0x00b0b0f8, const
svn_opt_revision_t * peg_revision=0x0012fdd8, const svn_opt_revision_t *
revision=0x0012fe50, int recurse=0, unsigned int dirent_fields=1, int
fetch_locks=0, svn_error_t * (void *, const char *, const svn_dirent_t
*, const svn_lock_t *, const char *, apr_pool_t *)*
list_func=0x00403890, void * baton=0x0012fdd0, svn_client_ctx_t *
ctx=0x00af4598, apr_pool_t * pool=0x00b0b0c0)  Line 125 + 0x38 bytes
svn.exe!svn_cl__list(apr_getopt_t * os=0x00af4188, void *
baton=0x00000000, apr_pool_t * pool=0x00af4070)  Line 305 + 0x2b bytes
svn.exe!main(int argc=3, const char * * argv=0x003f3fc0)  Line 1485 +
0x10 bytes
svn.exe!__tmainCRTStartup()  Line 586 + 0x17 bytes

-- 
Yves Martin