Hello Martin,

2018-08-14 17:16 GMT+02:00 Martin Simmons <mar...@lispworks.com>:

> >>>>> On Tue, 14 Aug 2018 16:34:07 +0200, Radosław Korzeniewski said:
> >
> > Hello Martin,
> >
> > 2018-08-14 12:56 GMT+02:00 Martin Simmons <mar...@lispworks.com>:
> >
> > > Sorry to say that it doesn't compile on FreeBSD (see below).
> > >
> > > The warnings about BSOCK::recv are probably generic and occur in every
> > > file.
> > >
> >
> > A standard Linux compile does not raise any warnings here.
>
> The warning will depend on the C compiler.  I'm using the default FreeBSD
> clang-based C compiler and passing -Wall.  It looks like gcc (gcc7 at
> least)
> does not issue this warning unless you explicitly pass
> -Woverloaded-virtual.
>
>
> > >
> > > There is some hack for ENODATA in bsockcore.c, but not in bsock.c.
> > >
> >
> > Yes, it should be in bsock.c too.
> >
> > Could you check the following patch:
> >
> > diff --git a/bacula/src/lib/bsock.c b/bacula/src/lib/bsock.c
> > index a6e4d98c3..c6bed981d 100644
> > --- a/bacula/src/lib/bsock.c
> > +++ b/bacula/src/lib/bsock.c
> > @@ -40,6 +40,10 @@
> >
> >  #define BSOCK_DEBUG_LVL    900
> >
> > +#if !defined(ENODATA)              /* not defined on BSD systems */
> > +#define ENODATA  EPIPE
> > +#endif
> > +
> >  /* Commands sent to Director */
> >  static char hello[]    = "Hello %s calling\n";
>
> Yes, thanks, that fixes the compilation.
>
>
Thanks for the info.

best regards
-- 
Radosław Korzeniewski
rados...@korzeniewski.net
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-devel mailing list
Bacula-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to