nginx module bindings

Shammah Chancellor via Digitalmars-d digitalmars-d at puremagic.com
Sat Apr 18 16:03:04 PDT 2015


On 2015-04-18 19:15:09 +0000, Jacob Carlborg said:

> On 2015-04-18 17:25, Shammah Chancellor wrote:
> 
>> File(10B2B20F0, "")/usr/include/module.map:36:14: error: header
>> 'float.h' not found
>> File(10B2B20F0, "")/usr/include/module.map:81:14: error: header
>> 'stdarg.h' not found
>> File(10B2B20F0, "")/usr/include/module.map:113:14: error: header
>> 'tgmath.h' not found
> 
> These three are Clang built-in headers. They're shipped with Clang and 
> need to be place in the standard include paths or explicitly added 
> using the -I flag. See the information about libclang [1].
> 
> This is fixed in master, the files are shipped with DStep now. 
> Although, I may not have included all, I have mostly added them as I 
> need.
> 
>> File(10B2B20F0, "")./ngx_config.h:12:10: fatal error:
>> 'ngx_auto_headers.h' file not found
> 
> I'm not sure about this but it could be an related to how these headers 
> are used. DStep is built to generate bindings from one file at a time. 
> That might not always be compatible with the build system a library 
> uses. For example, some headers could be generated in a build step. 
> I've seen some headers using types without including a single header, 
> that still works since another header will include this one plus the 
> other headers that are needed.
> 
> Please read the limitations at the bottom of the documentation [2] to 
> see if any of those apply in your case.
> 
> BTW, I updated the code so it can be built with DMD 2.067.0. I'm just 
> waiting for the Travis build to pass before merging it to master.
> 
> [1] https://github.com/jacob-carlborg/dstep#libclang
> [2] https://github.com/jacob-carlborg/dstep#limitationsknown-issues

I included the -I flag for the location of those included headers.  It 
seems as if maybe it is not including anything.   With that said, I am 
using clan release_34, because I cannot build 32 on MacOS X.

-Shammah



More information about the Digitalmars-d mailing list