You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pip installing reportlab with python3.9 fails building _renderPM extension.
Infileincludedfrom /usr/include/sys/thread.h:41:0,
from /usr/include/sys/ptrace.h:28,
from /usr/include/sys/proc.h:42,
from /usr/include/sys/pri.h:43,
from /usr/include/sys/sched.h:38,
from /usr/include/sched.h:51,
from /usr/include/pthread.h:67,
from /QOpenSys/pkgs/include/python3.9/pythread.h:128,
from /QOpenSys/pkgs/include/python3.9/Python.h:131,
fromsrc/rl_addons/renderPM/_renderPM.c:1:
src/rl_addons/renderPM/libart_lgpl/art_pixbuf.h:38:41: error: expected ';', ',' or ')' before '.' token
typedefvoid (*ArtDestroyNotify) (void*func_data, void*data);
^
Infileincludedfromsrc/rl_addons/renderPM/libart_lgpl/libart.h:11:0,
fromsrc/rl_addons/renderPM/_renderPM.c:11:
src/rl_addons/renderPM/libart_lgpl/art_pixbuf.h:63:3: error: unknowntypename'ArtDestroyNotify'ArtDestroyNotifydestroy;
^~~~~~~~~~~~~~~~
src/rl_addons/renderPM/libart_lgpl/art_pixbuf.h:83:26: error: unknowntypename'ArtDestroyNotify'void*dfunc_data, ArtDestroyNotifydfunc);
^~~~~~~~~~~~~~~~
src/rl_addons/renderPM/libart_lgpl/art_pixbuf.h:87:27: error: unknowntypename'ArtDestroyNotify'void*dfunc_data, ArtDestroyNotifydfunc);
Workaround to resolve the build failure is to define _LINUX_SOURCE_COMPAT.
I think your changes have good info, but most users don't need to know or care about that level of detail. Instead something like this would be more useful to them:
When installing reportlab, you may encounter a compile error such as
src/rl_addons/renderPM/libart_lgpl/art_pixbuf.h:38:41: error: expected ';', ',' or ')' before '.' token
typedef void (*ArtDestroyNotify) (void *func_data, void *data);
^
This is due to a conflict in the reportlab source code and the AIX header files. As a workaround, you can define _LINUX_SOURCE_COMPAT to prevent the conflicting definition:
I think your changes have good info, but most users don't need to know or care about that level of detail. Instead something like this would be more useful to them:
When installing reportlab, you may encounter a compile error such as
src/rl_addons/renderPM/libart_lgpl/art_pixbuf.h:38:41: error: expected ';', ',' or ')' before '.' token
typedef void (*ArtDestroyNotify) (void *func_data, void *data);
^
This is due to a conflict in the reportlab source code and the AIX header files. As a workaround, you can define _LINUX_SOURCE_COMPAT to prevent the conflicting definition:
It appears to me that I am facing the same issue while installing the reportlab package on IBM i V7R3.
could you please suggest CFLAGS=-D_LINUX_SOURCE_COMPAT pip3 install reportlab` if this worked in resolving the issue during the wheel build of reportlab.
We are using python3.9 and pillow version 8.3.1 default from IBM i repo.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
pip installing reportlab with python3.9 fails building
_renderPMextension.Workaround to resolve the build failure is to define
_LINUX_SOURCE_COMPAT.