| Summary: | media-gfx/freecad-0.11.3729 with dev-lang/swig-2.0.4-r1 - swigpyrun.inl:35:55: error: invalid conversion from 'void*' to 'PyObject*' | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Alessandro Capogna <alessandro.capogna> |
| Component: | Current packages | Assignee: | Andreas K. Hüttel <dilfridge> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | fordfrog, mail, sci |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
freecad-0.11.3729.log
swig-2.0.4-r1.log Disable old pre-generated Swig sources Make FreeCAD compatible with Swig 2.0.4+ |
||
|
Description
Alessandro Capogna
2011-11-27 22:22:22 UTC
Created attachment 293993 [details]
freecad-0.11.3729.log
Created attachment 293995 [details]
swig-2.0.4-r1.log
yes, it's a swig problem because with dev-lang/swig-1.3.40-r1 i have no problems Please provide emerge --info. (In reply to comment #4) > Please provide emerge --info. It's in attachment #293993 [details]. Swig commit http://swig.svn.sourceforge.net/viewvc/swig/trunk/Lib/python/pyrun.swg?r1=12235&r2=12596 has added an extra parameter SWIG_Python_NewPointerObj(). This was released later as swig-2.0.4. In addition to this, the FreeCAD sources include files which are pre-generated with various old Swig versions. They don't build with changes in a new Swig versions, and are really meant for creating a universal binary package which has to work with various Swig versions. Therefore, on Gentoo is not a loss to remove these files and use just the newest Swig. Patches follow. Created attachment 296875 [details, diff]
Disable old pre-generated Swig sources
This should be applied unconditionally to disable old pre-generated Swig sources.
Created attachment 296877 [details, diff]
Make FreeCAD compatible with Swig 2.0.4+
This should be applied only when Swig 2.0.4+ is installed on the system.
(In reply to comment #7) > Created attachment 296875 [details, diff] [details, diff] > Disable old pre-generated Swig sources > > This should be applied unconditionally to disable old pre-generated Swig > sources. Eww. Talking about code ugliness... Testing... Fixed with the bump to media-gfx/freecad-0.12.5284-r2 |