[GRASS-user] GRASS 6.2 RC2 - Compile with Python Problem

A B pytopo at gmail.com
Mon Oct 9 01:34:47 EDT 2006

I would really like to try the new python_grass module but I cannot
seem to get it to compile.

I compiled GRASS 6.2 RC2 for CYGWIN

My configure options were:
--with-python --with-postgres --with-gdal

When I run make from within the swig/python directory I get:
ld: /cygdrive/c/pkg/downloads/grass-6.2.0RC2/dist.i686-pc-cgwin/lib/libgrass_D.so:
No such file: No such file or directory
make: *** [python_grass6.so] Error 1

The directory /cygdrive/c/pkg/downloads/grass-6.2.0RC2/dist.i686-pc-cgwin/lib
only has ".dll" files and no ".so" files.

So I edited the make files and changed the ".so" to ".dll" did a "make clean"
then a "make" within the swig/python directory again.  Make seemed to
run more but when it got to the last step where the
"_python_grass6.dll" gets created, I got a bunch of "undefined
reference" errors.

python_grass6_wrap.o -o _python_grass6.dll

python_grass6_wrap.o:python_grass6_wrap.c:(.text+0xae): undefined
reference to `strlen'
python_grass6_wrap.o:python_grass6_wrap.c:(.text+0x13e): undefined reference to
python_grass6_wrap.o:python_grass6_wrap.c:(.text+0x1ef): undefined reference to
python_grass6_wrap.o:python_grass6_wrap.c:(.text+0x4df): undefined reference to
python_grass6_wrap.o:python_grass6_wrap.c:(.text+0x793): undefined reference to
python_grass6_wrap.o:python_grass6_wrap.c:(.text+0x7c4): undefined reference to
. . . . .

and the "undefined reference" errors continue on for quite some time.
The "_python_grass6.dll" file is produced but it does not appear to

The only other errors I see are in the error.log file.

GRASS GIS compilation log
Started compilation: Sat Oct  7 09:17:40 CST 2006
Errors in:
Finished compilation: Sat Oct  7 10:00:22 CST 2006
(In case of errors please change into the directory with error and run 'make')

I tried running make in the v.digit directory and got more reference
errors but they seem to be related just to tcltk.

Does anyone have any suggestions on what I should try next?



More information about the grass-user mailing list