[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: can't compile Parsetexi.xs
From: |
Werner LEMBERG |
Subject: |
Re: can't compile Parsetexi.xs |
Date: |
Thu, 30 Jan 2020 23:43:58 +0100 (CET) |
>> In file included from
>> .../texinfo/tp/Texinfo/XS/parsetexi/Parsetexi.xs:13:0:
>> /usr/lib/perl5/5.26.1/x86_64-linux-thread-multi/CORE/parser.h:22:3:
>> error: conflicting types for ‘yy_stack_frame’
>> } yy_stack_frame;
>> ^~~~~~~~~~~~~~
>> In file included from
>> /usr/lib/perl5/5.26.1/x86_64-linux-thread-multi/CORE/perl.h:3939:0,
>> from .../texinfo/tp/Texinfo/XS/parsetexi/Parsetexi.xs:6:
>> /usr/lib/perl5/5.26.1/x86_64-linux-thread-multi/CORE/parser.h:22:3:
>> note: previous declaration of ‘yy_stack_frame’ was here
>> } yy_stack_frame;
>> ^~~~~~~~~~~~~~
>
> What is odd is that that "parser.h" file is not the one that should
> have been included. It was the file inside the parsetexi directory
> that should have been included.
I compiled in a separate directory.
> I wonder if there needs to be an -I flag added to make sure that
> that directory is searched. It was relying on finding the include
> file in the same directory as the source file (parsetexi/Parsetexi.c
> and parsetexi/parser.h). It is odd that the parser.h in Perl's
> directories is used instead.
As far as I know I have a standard perl installation. What shall I
try now?
Werner