diff --git a/python/INSTALLING_PYTHON_PKGS.md b/python/INSTALLING_PYTHON_PKGS.md index c17bb87..d3f054d 100644 --- a/python/INSTALLING_PYTHON_PKGS.md +++ b/python/INSTALLING_PYTHON_PKGS.md @@ -26,3 +26,20 @@ You will also need to set the following environment variables for build: If you have issues that you cannot debug, feel free to join the community channels documented [here](http://ibm.biz/ibmioss)! + + +### reportlab + +When installing reportlab, you may encounter a compile error such as: + +```c + 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: + +```bash + CFLAGS=-D_LINUX_SOURCE_COMPAT pip3.9 install reportlab +```