[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Help] librostlab-blast fails its autopkgtest with C++ issue



Andreas Tille <andreas@an3as.eu> writes:

> However, what I do not understand is that the build of
> librg-blast-parser-perl remains on failing[1] (versioned Build-Depends on
> fixed librostlab-blast0-dev was set):

Looks like fallout from a clash between Perl headers' definition of
YYEMPTY as a macro and Rost Lab headers' use of it as an enum name:

  In file included from
  /usr/lib/x86_64-linux-gnu/perl/5.32/CORE/perl.h:3938,
                   from Parser.xs:9:
  /usr/lib/x86_64-linux-gnu/perl/5.32/CORE/parser.h:12:25: error: expected
  identifier before '(' token
     12 | #define YYEMPTY         (-2)
        |                         ^
  /usr/lib/x86_64-linux-gnu/perl/5.32/CORE/parser.h:12:25: error: expected
  '}' before '(' token
  In file included from /usr/include/rostlab/blast-parser-driver.h:26,
                   from Parser.xs:15:
  rostlab/blast-parser-parser.h:246:7: note: to match this '{'

AFAICT, you can address it by patching Parser.xs either to

  #undef YYEMPTY

before including the Rost Lab header or to include the latter before any
Perl headers.

-- 
Aaron M. Ucko, KB1CJC (amu at alum.mit.edu, ucko at debian.org)
http://www.mit.edu/~amu/ | http://stuff.mit.edu/cgi/finger/?amu@monk.mit.edu


Reply to: