Python and PVM
Andrew Dalke
dalke at acm.org
Tue May 16 04:21:40 EDT 2000
Mitchell R Whorlow said:
>I am attempting to add a few more PVM function calls to the Python
>module for PVM available at www.flyn.org. [...]
>I get undefined symbol errors when I try to import pypvm.
>I am hoping that someone can spare some time to help me out.
> ./configure
> gcc -fPIC -O -I/usr/local/include -I/usr/lib/python1.5/config \
-DHAVE_CONFIG_H -c ./pypvm_coremodule.c
> gcc -shared pypvm_coremodule.o -L/usr/local/pvm3/lib/FREEBSD -lpvm3\
-o pypvm_coremodule.so
>>>> import pypvm
>Traceback (innermost last):
> File "<stdin>", line 1, in ?
> File "/usr/local/lib/python1.5/site-packages/pypvm.py", line 25, in ?
> from pypvm_core import *
>ImportError:
>/usr/local/lib/python1.5/site-packages/pypvm_coremodule.so: Undefined
>symbol "pvm_gettid"
It's been a few years since I last did anything serious with PVM (though
I did start in the 2.x days! :). I recall those functions are part of the
group library, and not in the core PVM library . Try adding "-lgpvm3" to
your "gcc -shared" line, as in:
gcc -shared pypvm_coremodule.o -L/usr/local/pbm3/lib/FREEBSD -lgpvm3 lpvm3 \
-o pypvm_coremodule.so
Looking it up in the PVM book:
http://www.netlib.org/pvm3/book/node46.html
] The dynamic process group functions are built on top of the core
] PVM routines. A separate library libgpvm3.a must be linked with
] user programs that make use of any of the group functions
Make sure you compile the group server as well.
http://www.netlib.org/pvm3/faq_html/node55.html
Andrew
dalke at acm.org
More information about the Python-list
mailing list