[xsd-users] FreeBSD compilation error
Boris Kolpackov
boris at codesynthesis.com
Wed Feb 25 05:04:42 EST 2015
Hi Maxim,
Maxim Maslennikov <maxim.maslennikov at gmail.com> writes:
> First I change in file xsd-4.0.0+dep/libxsd-frontend/xsd-frontend/
> semantic-graph/elements.cxx
> return os << path.string ().c_str ();
> to
> return os << wasting( path.string().begin(), path.string().end());
I think a better fix is to #include <iostream> at the top of elements.cxx.
Can you verify that it works (I am pretty sure it will)?
> Second I change in file xsd-4.0.0+dep/build-0.3/git/gitignore
> #! /usr/bin env bash
> to
> #! /usr/bin env sh
> because of FreeBSD doesn’t use bash by default.
It doesn't have to be the default shell, that's why there is env in
there. It should work as long as you have it in PATH somewhere.
> But I get a few Assertion failed messages during testing in file
> xsd-4.0.0+dep/xsd/tests/cxx/parser/validation/built-in/float/driver.cxx
Floating-point parsing/serialization is inherently imprecise and
it seems FreeBSD's libc/libc++ has some peculiarities. You will
have to investigate what's going on there (look at the implementation
of the parser that fails, the input, etc).
Boris
More information about the xsd-users
mailing list