Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 199961 - dev-python/pyopengl-2.0.1.09-r1 fails to build
Summary: dev-python/pyopengl-2.0.1.09-r1 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-22 10:54 UTC by Helmut Jarausch
Modified: 2008-02-24 08:23 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2007-11-22 10:54:18 UTC
Building pyopengl-2.0.1.09-r1 it fails
first with
SWIG Version 1.3.32
...
WARNING!!! wrong swig version.  Need 1.3.13, continuing anyway.

and that fails lateron, first error being
i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -O2 -march=i686 -pipe -fPIC -DGLX_PLATFORM -DNUMERIC -I/usr/include/python2.5 -I/usr/include -I/usr/local/include -I/usr/X11/include -I/usr/X11R6/include -I/usr/include/python2.5/pygsl -I/usr/include/python2.5/numarray -I/usr/include/python2.5/Numeric -I/usr/include -I/usr/local/include -I/usr/X11/include -I/usr/X11R6/include -I/usr/include/python2.5/pygsl -I/usr/include/python2.5/numarray -I/usr/include/python2.5/Numeric -c src/interface_util/interface_util.c -o build/temp.linux-i686-2.5/src/interface_util/interface_util.o
src/interface_util/interface_util.c: In function '_PyObject_FromUnsignedCharArray':
src/interface_util/interface_util.c:124: error: 'PyArray_API' undeclared (first use in this function)

The ancient 1.3.13 ofr swig is no longer available in GenToo, Furthermore
it's ugly to temporarily downgrade for just one package.
Is there another solution?

Thanks,
Helmut.


Reproducible: Always
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-11-22 11:02:58 UTC
(In reply to comment #0)
> The ancient 1.3.13 ofr swig is no longer available in GenToo, Furthermore
> it's ugly to temporarily downgrade for just one package.
> Is there another solution?

This swig message is just a warning and unrelated to the real problem here.
Comment 2 Santiago M. Mola (RETIRED) gentoo-dev 2007-12-04 13:45:01 UTC
Please, post the output of:
# emerge -pv numarray numeric numpy
Comment 3 Helmut Jarausch 2007-12-04 14:16:35 UTC
(In reply to comment #2)
> Please, post the output of:
> # emerge -pv numarray numeric numpy
> 

emerge -pv numarray numeric numpy

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] dev-python/numarray-1.5.2-r1 [1.3.1] USE="doc%* -lapack%" 1,367 kB 
[ebuild   R   ] dev-python/numeric-24.2-r6  USE="doc -lapack (-debug%)" 0 kB 
[ebuild   R   ] dev-python/numpy-1.0.4  USE="-lapack" 0 kB 



Comment 4 Peter Volkov (RETIRED) gentoo-dev 2008-01-03 09:29:49 UTC
Helmut, do you have python-2.4 installed? If so try to unmerge it and pyopengl (do not forget to quickpkg it just in case) and try to install pyopengl again. This helped me to workaround the same problem with dev-python/pyopengl-2.0.0.44.
Comment 5 Tiziano Müller (RETIRED) gentoo-dev 2008-02-24 08:23:48 UTC
Ok, put pyopengl-3.0.0_beta1 in the tree.
Since PyOpenGL-3.x uses ctypes instead of swig, this problem is fixed.