hhatto / hhatto/python-hoedown

GCC compiler error: lvalue required as increment operand

Open
#10 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
52
Forks
4
PR merge metrics
No merged PRs in 30d

Description

I can't compile hoedown on Ubuntu 22.04.2 LTS.

I tried to clone the source code (commit id ea875e6ce8edb95cf769c279572fc645ba8bdae0) 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](https://github.com/hhatto/python-hoedown/files/12239303/error.txt)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.