Venkat Ramanan | 7 Oct 18:23

Compilation problems on Fedora Core2.

Hi all,

Both the latest matplotlib (0.98.3) and the maintenance release (0.91.4) 
fail to compile for me with identical error msg.

I'm using Fedora Core 2, which I can't upgrade unfortunately.

I've installed python2.5.2,  numpy-1.1.1, pygtk-2.4 and they seem work ok.

The relevant line is,

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall 
-Wstrict-prototypes -fPIC -I/usr/include/libpng12 -I/usr/local/include 
-I/usr/include -I. -Isrc -Iswig -Iagg23/include -I. 
-I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. 
-I/usr/local/include -I/usr/include -I. -I/usr/include/pygtk-2.0 
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 
-I/usr/include/pango-1.0 -I/usr/X11R6/include 
-I/usr/include/freetype2/config -I/data/opt/include/python2.5 -c 
src/_gtkagg.cpp -o build/temp.linux-i686-2.5/src/_gtkagg.o
In file included from /data/opt/include/python2.5/Python.h:8,
                 from /usr/include/pygtk-2.0/pygobject.h:5,
                 from src/_gtkagg.cpp:10:
/data/opt/include/python2.5/pyconfig.h:942:1: warning: "_POSIX_C_SOURCE" 
redefined
In file included from /usr/include/string.h:26,
                 from /usr/include/c++/3.3.3/cstring:51,
                 from src/_gtkagg.cpp:1:
/usr/include/features.h:132:1: warning: this is the location of the 
(Continue reading)

Michael Droettboom | 7 Oct 18:32
Gravatar

Re: Compilation problems on Fedora Core2.

This is a known problem with old versions of pygtk.

See here:

http://osdir.com/ml/python.matplotlib.general/2004-11/msg00101.html

Cheers,
Mike

Venkat Ramanan wrote:
> Hi all,
>
> Both the latest matplotlib (0.98.3) and the maintenance release (0.91.4) 
> fail to compile for me with identical error msg.
>
> I'm using Fedora Core 2, which I can't upgrade unfortunately.
>
> I've installed python2.5.2,  numpy-1.1.1, pygtk-2.4 and they seem work ok.
>
> The relevant line is,
>
> gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall 
> -Wstrict-prototypes -fPIC -I/usr/include/libpng12 -I/usr/local/include 
> -I/usr/include -I. -Isrc -Iswig -Iagg23/include -I. 
> -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. 
> -I/usr/local/include -I/usr/include -I. -I/usr/include/pygtk-2.0 
> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
> -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 
> -I/usr/include/pango-1.0 -I/usr/X11R6/include 
> -I/usr/include/freetype2/config -I/data/opt/include/python2.5 -c 
(Continue reading)

Venkat Ramanan | 7 Oct 18:40

Re: Compilation problems on Fedora Core2.

Thanks for the quick and helpful pointer.

I have a related question not specifically matplotlib related.

I installed pygtk-2.4 using "python setup.py install". Is there an easy 
way to remove it from the python install?

Thanks,
Venkat.

Michael Droettboom wrote:
> This is a known problem with old versions of pygtk.
>
> See here:
>
> http://osdir.com/ml/python.matplotlib.general/2004-11/msg00101.html
>
> Cheers,
> Mike
>
> Venkat Ramanan wrote:
>> Hi all,
>>
>> Both the latest matplotlib (0.98.3) and the maintenance release 
>> (0.91.4) fail to compile for me with identical error msg.
>>
>> I'm using Fedora Core 2, which I can't upgrade unfortunately.
>>
>> I've installed python2.5.2,  numpy-1.1.1, pygtk-2.4 and they seem 
>> work ok.
(Continue reading)

Venkat Ramanan | 7 Oct 18:43

Re: Compilation problems on Fedora Core2.

Sorry, I seem to have installed pygtk by
configure --prefix=/data/opt
make
make install

Bye,
Venkat.

Venkat Ramanan wrote:
> Thanks for the quick and helpful pointer.
>
> I have a related question not specifically matplotlib related.
>
> I installed pygtk-2.4 using "python setup.py install". Is there an easy 
> way to remove it from the python install?
>
> Thanks,
> Venkat.
>
> Michael Droettboom wrote:
>   
>> This is a known problem with old versions of pygtk.
>>
>> See here:
>>
>> http://osdir.com/ml/python.matplotlib.general/2004-11/msg00101.html
>>
>> Cheers,
>> Mike
>>
(Continue reading)

John Hunter | 7 Oct 18:43
Gravatar

Re: Compilation problems on Fedora Core2.

On Tue, Oct 7, 2008 at 11:32 AM, Michael Droettboom <mdroe@...> wrote:
> This is a known problem with old versions of pygtk.
>
> See here:
>
> http://osdir.com/ml/python.matplotlib.general/2004-11/msg00101.html

See also this FAQ:

http://matplotlib.sourceforge.net/faq.html#PYGTK24

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

Gmane