Well, I can't test this myself, but it is worth a shot. In
matplotlib/src/cntr.c replace all occurences of PyMODINIT_FUNC with
DL_EXPORT(void). You will obviously need to recompile matplotlib
after this. It should occur in 3 places for each of the different
numerix backends. Let us know if this works.
···
On 1/17/06, Hanno Klemm <klemm@...948...> wrote:
Charlie,
unfortunately I don't have rootly powers on this machine, therefore
using a newer version of python would mean that I have to compile and
install it all from scratch in my home directory. Something I would
like to avoid, if possible.Hanno
Charlie Moad <cwmoad@...287...> said:
> So the error is coming from PyMODINIT_FUNC, which is apparently for >=
> python 2.3. There have been several compatibility issues come up with
> 2.2 recently. Are you able to try a newer version of python?
>
> On 1/17/06, klemm@...948... <klemm@...948...> wrote:
> >
> > Dear Charlie,
> >
> > the OS is Linux, Kernel 2.4.21 with SMP running on a Xeon box.
> >
> > uname -a spits out:
> > > uname -a
> > Linux rijkes-n-d99878 2.4.21-20.nfswan2 #1 SMP Mon Sep 13 11:28:02
> > CEST 2004 x86_64 x86_64 x86_64 GNU/Linux
> >
> > Cheers,
> > Hanno
> >
> >
> > Charlie Moad <cwmoad@...287...> said:
> >
> > > Can you tell us more about the OS?
> > >
> > > On 1/17/06, klemm@...948... <klemm@...948...> wrote:
> > > >
> > > > Hi there,
> > > >
> > > > I'm not sure, if I'm mailing to the right list, but I will
give it a
> > > > shot, anyway. I have a problem getting matplotlib installed. After
> > > > compiling fine for a while I get the error message:
> > > >
> > > > ..
> > > > /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching
> > for -lz
> > > > /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching
> > for -lz
> > > > /usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching
> > for -lm
> > > > /usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching
> > for -lm
> > > > /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching
> > for -lc
> > > > /usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching
> > for -lc
> > > > building 'matplotlib._na_cntr' extension
> > > > gcc -DNDEBUG -O2 -g -pipe -D_GNU_SOURCE -fPIC -fPIC
> > -I/usr/local/include
> > > > -I/usr/include -I/glb/home/nlhkl6/install/include -I.
> > > > -I/usr/include/python2.2 -c src/_na_cntr.c -o
> > > > build/temp.linux-x86_64-2.2/_na_cntr.o -DNUMARRAY=1
> > > > src/_na_cntr.c:1705: syntax error before "init_na_cntr"
> > > > error: command 'gcc' failed with exit status 1
> > > >
> > > >
> > > >
> > > > I am using:
> > > > matplotlib 0.86.1
> > > > python 2.2
> > > > Numeric 24.2
> > > > numarray 1.5.0
> > > >
> > > > I have modified basedir in setupext.py to
> > > > ..
> > > > 'linux2' : ['/usr/local', '/usr', '/glb/home/nlhkl6/install'],
> > > > 'linux' : ['/usr/local', '/usr', '/glb/home/nlhkl6/install'],
> > > > ..
> > > >
> > > > the header files for the numarray and the Numeric package are
at the
> > > > last location under include/Numeric and include/Numarray
> > > >
> > > > Furthermore I have modified in setup.py
> > > >
> > > > rc = dict([('backend', 'PS'), ('numerix', 'Numeric')])
> > > >
> > > > because the original form threw errors.
> > > >
> > > > Any help would be much appreciated!
> > > >
> > > > All the best,
> > > > Hanno
> > > >
> > > >
> > > >
> > > > -------------------------------------------------------
> > > > This SF.net email is sponsored by: Splunk Inc. Do you grep through
> > log files
> > > > for problems? Stop! Download the new AJAX search engine that
makes
> > > > searching your log files as easy as surfing the web. DOWNLOAD
> > SPLUNK!
> > > >
> >
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> > > > _______________________________________________
> > > > Matplotlib-users mailing list
> > > > Matplotlib-users@lists.sourceforge.net
> > > > matplotlib-users List Signup and Options
> > > >
> > >
> >
> >
> >
> > --
> >
> >
> >
> >
>--
Hanno Klemm
klemm@...948...