On Wed, Aug 22, 2007 at 01:03:47AM +0200, Julien Kerihuel wrote:
> On Wed, 2007-08-22 at 00:34 +0930, Dan Shearer wrote:
> > A libmapi client does this:
> > 
> >    #include <libmapi/libmapi.h>
> >    #include <stdio.h>
> >      :
> > 
> > If instead you do this:
> > 
> >    #include <stdio.h>
> >    #include <libmapi/libmapi.h>
> >         :
> 
> libmapi client are not required to include stdio.h since it is already
> included within libmapi/libmapi.h.

Ok, or just about anything else, or anyway quite a number of things.

> > /usr/local/samba/include/ndr/proto.h:77: error: expected declaration 
> > specifiers or '...' \
> >   before 'comparison_fn_t'
> 
> I've only encountered this issue while working on the FreeBSD build
> which doesn't have comparison_fn_t. Did you also had troubles with it
> under Linux?

Yes. But only in the case where libmapi is *not* the first include. If
libmapi is not the first include (whether to stdio or anything else)
comparison_fn_t isn't found. I had a look but didn't get any useful
result, which is why I think it might be a more fundamental mistake in
the chain of includes.

FreeBSD? That's like an operating system only older, right? [1]

> > It looks like OpenChange maybe needs to include something else because
> > if I comment out line 77 in ndr/proto.h everything works fine in libmapi
> > client apps.
> 
> I've already discussed this issue with Jelmer a couple of weeks ago. I
> didn't find any common replacement working both on Linux and FreeBSD.
> Maybe we can instead check the type in configure.ac and add its
> definition to config.h when missing...

I don't think that is the problem here. 

-- 
Dan Shearer
[EMAIL PROTECTED]

[1] Ok so I use it too :-)
_______________________________________________
devel mailing list
[email protected]
http://mailman.openchange.org/listinfo/devel

Reply via email to