Note for packagers whose packages need swig

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

there is long standing problem with SWIG when you are wrapping around
C code and use system headers. SWIG doesn't define "standard" C
preprocessor macros. Due this it might happen that wrapped code uses
wrong data types, wrong function prototypes etc. There is bug about
this problem in upsteam bugzilla
(http://sourceforge.net/tracker/?func=detail&atid=101645&aid=1604332&group_id=1645)
but upsteam is not going to fix it.

List of packages whose use SWIG and their maintainers is on
http://atkac.fedorapeople.org/packages_needs_swig. I think every
maintainer should check his package and if it uses system C headers he
should add this to .i file (SWIG template)

$ cpp -dM /dev/null | grep -v __STDC__ > cpp_macros.h # SWIG defines __STDC__ macro

and then add '%include "cpp_macros.h" to top of .i file

After that you can be sure that wrapped code uses correct data sizes.
Feel free to ask me if you have any question.

Regards, Adam

-- 
Adam Tkac, Red Hat, Inc.

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux