Menu

#56 Build fails with SWIG 4.4.0

open
nobody
None
5
2025-10-15
2025-10-14
No

SWIG is preparing new release 4.4.0. and I am testing rebuild of SWIG's dependencies with it. During the rebuild I found that plplot build failed (see error below). I asked upstream for help and they recommended to try the similar fix as was used for pygsl. I tested it and it worked for me.

The patch which I used is in attachment.

Regards, Jitka

[ 37%] Linking C shared library libplplottcltk.so
cd /builddir/build/BUILD/plplot-5.15.0-build/plplot-5.15.0/redhat-linux-build/bindings/tcl && /usr/bin/cmake -E cmake_link_script CMakeFiles/plplottcltk.dir/link.txt --verbose=1
/builddir/build/BUILD/plplot-5.15.0-build/plplot-5.15.0/redhat-linux-build/bindings/python/plplotcPYTHON_wrap.c: In function ‘SWIG_mod_exec’:
/builddir/build/BUILD/plplot-5.15.0-build/plplot-5.15.0/redhat-linux-build/bindings/python/plplotcPYTHON_wrap.c:23948:3: error: returning ‘void *’ from a function with return type ‘int’ makes integer from pointer without a cast [-Wint-conversion]
23948 | import_array();
| ^~~~~~~~~~~~
gmake[2]: *** [bindings/python/CMakeFiles/plplotc.dir/build.make:82: bindings/python/CMakeFiles/plplotc.dir/plplotcPYTHON_wrap.c.o] Error 1

1 Attachments

Discussion

  • Jitka Plesnikova

    The fix works only for future release SWIG 4.4.0.

     
  • Jitka Plesnikova

    There is updated patch which works for old and new version.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.