Skip to content

GCC compiler error: lvalue required as increment operand #10

Description

@okorpela

I can't compile hoedown on Ubuntu 22.04.2 LTS.

I tried to clone the source code (commit id ea875e6) and run command "pip install ."

I got GCC compiler errors for file hoedownpy/hoedown.c:

  hoedownpy/hoedown.c: In function ‘__pyx_tp_dealloc_7hoedown_BaseRenderer’:
  hoedownpy/hoedown.c:4501:5: error: lvalue required as increment operand
   4501 |     ++Py_REFCNT(o);
        |     ^~
  hoedownpy/hoedown.c:4503:5: error: lvalue required as decrement operand
   4503 |     --Py_REFCNT(o);
        |     ^~
  hoedownpy/hoedown.c: In function ‘__pyx_tp_dealloc_7hoedown_Markdown’:
  hoedownpy/hoedown.c:4762:5: error: lvalue required as increment operand
   4762 |     ++Py_REFCNT(o);
        |     ^~
  hoedownpy/hoedown.c:4764:5: error: lvalue required as decrement operand
   4764 |     --Py_REFCNT(o);
        |     ^~
  hoedownpy/hoedown.c: In function ‘__Pyx_modinit_type_init_code’:
  hoedownpy/hoedown.c:5164:34: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
   5164 |   __pyx_type_7hoedown_SmartyPants.tp_print = 0;
        |                                  ^
  hoedownpy/hoedown.c:5172:35: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
   5172 |   __pyx_type_7hoedown_BaseRenderer.tp_print = 0;
        |                                   ^
  hoedownpy/hoedown.c:5181:35: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
   5181 |   __pyx_type_7hoedown_HtmlRenderer.tp_print = 0;
        |                                   ^
  hoedownpy/hoedown.c:5190:38: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
   5190 |   __pyx_type_7hoedown_HtmlTocRenderer.tp_print = 0;
        |                                      ^
  hoedownpy/hoedown.c:5198:31: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
   5198 |   __pyx_type_7hoedown_Markdown.tp_print = 0;

error.txt

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions