installing ppgplot (using OS X 10.3 / gcc 3.4 / python 2.3b)

bwani tifredman at free.fr
Fri Nov 5 05:40:05 EST 2004


Hi Dennis,
I'm sorry, but I don't have the answer to your questions, but I have some
other troubles with installing ppgplot... Hope you can help!

First, the compilation of pgplot did not work smoothly.
I found that I had to use the option g77_gcc_aout with makemake, because
ld does not support the -shared option with OSX. But then, during make, I
got this error when compiling grquit.f:

g77 -c -Wall -O ../../tmp/pgplot/src/grquit.f
/var/tmp//ccSZHXDl.s:25:section difference relocatable subtraction
expression, "LC1" minus "L1$pb" using a symbol at the end of section will
not produce an assembly time constant
/var/tmp//ccSZHXDl.s:25:use a symbol with a constant value created with an
assignment instead of the expression, L_const_sym = LC1 - L1$pb
/var/tmp//ccSZHXDl.s:24:section difference relocatable subtraction
expression, "LC1" minus "L1$pb" using a symbol at the end of section will
not produce an assembly time constant
/var/tmp//ccSZHXDl.s:24:use a symbol with a constant value created with !!
an assignment instead of the expression, L_const_sym = LC1 - L1$pb
make: *** [grquit.o] Error 1


I don't know what this means. I could "fix" this by commenting out the
line with the command "STOP" in grquit.f
Then I got a similar error with:
g77 -Wall -O -o pgpack ../../tmp/pgplot/fonts/pgpack.f

I didn't find any solution for this. But at least, I had a libcpgplot.a
file, so I can go on. The cpg demo can not be built properly neither.

Then I tried to install ppgplot, with the usual python setup.py install
command, and got this error:

gcc -Wl,-F. -Wl,-F. -bundle -framework Python build/temp.darwin-7.5.0-
Power_Macintosh-2.3/src/_ppgplot.o -L/usr/X11R6/lib/ -L/Volumes/
Documents/Astro/APEX/Boa/panther/lib/pgplot -lcpgplot -lpgplot -lX11 -lm
!! -o build/lib.darwin-7.5.0-Power_Macintosh-2.3/ppgplot/_ppgplot.so
ld: Undefined symbols:
_s_copy
_i_indx
_s_cat
_s_cmp
_do_fio
_e_wsfi
_s_wsfi
_e_wsfe
_s_wsfe
_G77_getenv_0
_e_rsfe
_s_rsfe
_f_clos
_f_inqu
_f_open
_do_uio
_e_rsue
_s_rsue


Do you have any idea of what is missing?

I got this error with a version of g77 I had under jaguar and gcc3.3, and
with the latest versions g77 3.4 and gcc 3.5 that I downloaded yesterday.
And I'm running jaguar 10.3.5 (and Python 2.3)

Then I tried a manual linking, using the command that you give (with
-Wl,-framework -Wl,AppKit and so on).
There was no error, and I got a _ppgplot.so file. I copied it to my
ppgplot dir in the python path, and when I import ppgplot in python, I get
again this error:

>>> import ppgplot
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "ppgplot/__init__.py", line 1, in ?
ImportError: Failure linking new module: : dyld: python2.3 Undefined
symbols:
_G77_getenv_0
_do_fio
_do_uio
_e_rsfe
_e_rsue
_e_wsfe
_e_wsfi
_f_clos
_f_inqu
_f_open
_i_indx
_s_cat
_s_cmp
_s_copy
_s_rsfe
_s_rsue
_s_wsfe
_s_wsfi


It's really a pitty, because last week I finally succeeded in installing
pgplot and ppgplot with jaguar (10.2.8). Everything runs fine when doing a
makemake g77_gcc_aout.
The python setup.py install also works fine. And I had no error when
importing to python, and I could actually use it and open some windows and
plot things in them.
But then, I updated my OS to panther on Monday, and nothing works anymore
:(

I also tried to use this previous version of _ppgplot.so file that was
running with 10.2.8, but when I import this one in python, I now get this
error :

>>> import ppgplot
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File
"/Volumes/Documents/Astro/APEX/BoA/Packages/Python/lib/python2.3/site-packages/ppgplot/__init__.py",
line 1, in ?
ImportError: Failure linking new module: : dyld: python2.3 Undefined
symbols:
ppgplot/_ppgplot.so undefined reference to _PyArg_ParseTuple expected to
be defined in the executable
ppgplot/_ppgplot.so undefined reference to _PyCObject_AsVoidPtr expected
to be defined in the executable
ppgplot/_ppgplot.so undefined reference to _PyCObject_Type expected to be
defined in the executable
ppgplot/_ppgplot.so undefined reference to _PyDict_GetItemString expected
to be defined in the executable
ppgplot/_ppgplot.so undefined ref


By the way, the directory that appears at the beginning of this message
does NOT exist anymore! Very strange...

Ok, I hope that you can help me with this, and if this works, maybe I can
also find why you have other kinds of troubles!

Best wishes,
Bwani





More information about the Python-list mailing list