Skip to content

Build errors in CTemplate #34

@tkoskela

Description

@tkoskela

Building the dependencies in dep/build on Ubuntu 24.04 with gcc 13.3.0. I get errors of this kind

CXX    libctemplate_la-htmlparser.lo
src/htmlparser/htmlparser.cc: In function ‘int google_ctemplate_streamhtmlparser::state_external(int)’:
src/htmlparser/htmlparser.cc:102:14: error: ‘htmlparser_states_external’ was not declared in this scope; did you mean ‘htmlparser_state_external_enum’?
  102 |       return htmlparser_states_external[st];
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |              htmlparser_state_external_enum
src/htmlparser/htmlparser.cc: In function ‘void google_ctemplate_streamhtmlparser::tag_close(statemachine_ctx*, int, char, int)’:
src/htmlparser/htmlparser.cc:591:25: error: ‘HTMLPARSER_STATE_INT_CDATA_TEXT’ was not declared in this scope; did you mean ‘HTMLPARSER_STATE_TEXT’?
  591 |       ctx->next_state = HTMLPARSER_STATE_INT_CDATA_TEXT;
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                         HTMLPARSER_STATE_TEXT
src/htmlparser/htmlparser.cc:597:25: error: ‘HTMLPARSER_STATE_INT_CDATA_TEXT’ was not declared in this scope; did you mean ‘HTMLPARSER_STATE_TEXT’?
  597 |       ctx->next_state = HTMLPARSER_STATE_INT_CDATA_TEXT;
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                         HTMLPARSER_STATE_TEXT
src/htmlparser/htmlparser.cc: In function ‘void google_ctemplate_streamhtmlparser::exit_state_cdata_may_close(statemachine_ctx*, int, char, int)’:
src/htmlparser/htmlparser.cc:648:23: error: ‘HTMLPARSER_STATE_INT_CDATA_TEXT’ was not declared in this scope; did you mean ‘HTMLPARSER_STATE_TEXT’?
  648 |     ctx->next_state = HTMLPARSER_STATE_INT_CDATA_TEXT;
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Am I missing a dependency?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions