Hello,

wt., 28 sie 2018 o 14:42 Dan Langille <d...@langille.org> napisał(a):

> The comment in the patch is not accurate: "not defined on BSD systems"
> because this is not always true.
>

Sorry about that. I'm not a *BSD expert, I wrote my understanding of the
problem.


>
> It appears to be a special circumstance as indicated by my initial queries
> here:
> https://lists.freebsd.org/pipermail/freebsd-ports/2018-August/114171.html
>
> From the above URL:
>
> "I'd say it's libc++ missing its errno.h having ENODATA defined if the
> following is true:
>
> - both builds are using clang++
> - both builds are using libc++
>
> That header defining ENODATA exists in 11.2 and doesn't exist in 10.4
> (contrib/libc++/include/errno.h)."
>
> On a FreeBSD 11 box, I get this value:
>
> $ grep ENODATA /usr/src/contrib/libc++/include/errno.h
> #ifndef ENODATA
> #define ENODATA 9919
>
> Whereas:
> $ grep EPIPE /usr/include/c++/v1/errno.h
> #ifndef EPIPE
> #define EPIPE 9950\
>
> On FreeBSD 10.4, we see:
>
> $ grep EPIPE *
> errno.h:#define EPIPE           32              /* Broken pipe */
>
> I do not know the implications of using a different value here. Can you
> advise here please?
>

Well, the fix to this problem is the solution existed in Bacula for a very
long time. I just placed it in one file (bsockcore.c) but forget to add it
to other one (bsock.c). I'm not sure who was an original author for this
fix, I have to check a git log.

I am still working on finding a better solution.
>

Great! Thank you.

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