[xsd-users] FreeBSD compilation error

Maxim Maslennikov maxim.maslennikov at gmail.com
Wed Feb 25 15:19:54 EST 2015


Hi Boris,

You are right, adding just #include <iostream> is simpler and better and it works.

FreeBSD doesn’t install bash by default. Can I use sh or I should install bash? 

Concerning assertion failed in float test how did you solve the issue in mac os x clang? 

Best Regards,
Maxim Maslennikov
Moscow Russia
+7 985 274-05-70

> On Feb 25, 2015, at 1:04 PM, Boris Kolpackov <boris at codesynthesis.com> wrote:
> 
> 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