Bloodnok has asked for the wisdom of the Perl Monks concerning the following question:
Greeting fellow monastarians ,
Using v5.12.4 perl on Ubuntu 11.10, I seem to have run into problem(s) using h2xs on a header file including it's own nested header file(s) - whereby the attempt always fails to #include the nested file :
h2xs -Oxan IBM::Notes IBM/Notes/acl Defaulting to backwards compatibility with perl 5.12.4 If you intend this module to be compatible with earlier perl versions, + please specify a minimum perl version with the -b option. Overwriting existing IBM-Notes!!! Writing IBM-Notes/ppport.h Scanning typemaps... Scanning /usr/share/perl/5.12/ExtUtils/typemap Scanning IBM/Notes/acl.h for functions... In file included from <stdin>:1:0: IBM/Notes/acl.h:24:20: fatal error: global.h: No such file or director +y compilation terminated. In file included from <stdin>:1:0: IBM/Notes/acl.h:24:20: fatal error: global.h: No such file or director +y compilation terminated. Scanning IBM/Notes/acl.h for typedefs... Writing IBM-Notes/lib/IBM/Notes.pm Writing IBM-Notes/Notes.xs Writing IBM-Notes/fallback/const-c.inc Writing IBM-Notes/fallback/const-xs.inc Writing IBM-Notes/Makefile.PL Writing IBM-Notes/README Writing IBM-Notes/t/IBM-Notes.t Writing IBM-Notes/Changes Writing IBM-Notes/MANIFEST
I've tried the following, all without any success ....
- Modifying Makefile.PL to add the path to the included file to the INC definition UPDATE: (in retrospect, this was nugative effort in as much as h2xs re-writes MAKEFILE.pl anyway)
- Using the '-F' flag to specify the extra '-I' flag to the compiler
In the interests of completeness, I have tried googling for the/any answer/help, but also to no avail, so any & all suggestions/advice gratefully received.
TIA & best rgds to all ,
A user level that continues to overstate my experience :-))
Back to
Seekers of Perl Wisdom