terminalstatic / go-xsd-validate

Xsd validation for go based on libxml2
MIT License
72 stars 18 forks source link

malloc.h is not available on MacOS #8

Closed vikingair closed 4 years ago

vikingair commented 4 years ago

Please replace your dependency malloc.h by stdlib.h. Then it starts working on MacOS, too.

Here he you can see that malloc.h seems to be deprecated: https://stackoverflow.com/a/56463133

terminalstatic commented 4 years ago

In the current commit and latest tagged version there is no malloc.h, this was fixed a year ago, see here Could it be that you're checking out an older version?

egamble commented 4 years ago

Version 0.1.2 of go-xsd-validate depends on malloc.h, which is no longer available on MacOS.

vikingair commented 4 years ago

I'm still not very familiar with golang and it's packages, but I installed the lib 4 months ago and it was the version 0.1.2 that contained malloc.h in the libxml2.go file.

Can't it be that something didn't work correctly when publishing the lib?

terminalstatic commented 4 years ago

OK I had another look and realized I obviously didn't push the v0.1.3 tag to remote (so this change was only present in master). I used the current HEAD and tagged it with v0.1.4. Thanks you guys for the hint.

vikingair commented 4 years ago

Thank you for your fast fix and your lib. I can confirm that it works now :+1: