[GRASS5] Just some questions

Jens Oberender grass at troja.net
Wed Nov 12 17:47:00 EST 2003


Hi Markus

> > Looks like I were pert and premature with my mail.
> > I only compiled 5.0.3 and 5.3-snapshot. 5.7-snapshot didn't compile,
> > but I
> 
> Why? Error (please post to the list)?

Here is the Error:

make[2]: Entering directory
`/usr/src/packages/BUILD/grass57_exp_2003_11_08/lib/gis'
gcc -I/usr/src/packages/BUILD/grass57_exp_2003_11_08/include
-I/usr/src/packages/BUILD/grass57_exp_2003_11_08/dist.i686-pc-linux-gnu/i
nclude -O2 -g -march=i586 -mcpu=i686 -fmessage-length=0  -Wall
-Wconversion -Wno-implicit-int   -fPIC   
-I/usr/src/packages/BUILD/grass57_exp_2003_11_08/include
-I/usr/src/packages/BUILD/grass57_exp_2003_11_08/dist.i686-pc-linux-gnu/i
nclude \
        -o OBJ.i686-pc-linux-gnu/adj_cellhd.o -c adj_cellhd.c
adj_cellhd.c: In function `G_adjust_Cell_head':
adj_cellhd.c:44: error: `PACKAGE' undeclared (first use in this function)
adj_cellhd.c:44: error: (Each undeclared identifier is reported only once
adj_cellhd.c:44: error: for each function it appears in.)
make[2]: *** [OBJ.i686-pc-linux-gnu/adj_cellhd.o] Error 1
make[2]: Leaving directory
`/usr/src/packages/BUILD/grass57_exp_2003_11_08/lib/gis'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory
`/usr/src/packages/BUILD/grass57_exp_2003_11_08/lib'
make: *** [default] Error 1

And the configure I use:

./configure --with-postgres-includes='/usr/include/pgsql
/usr/include/pgsql/libpq /usr/include/pgsql/server' --with-freetype
--with-lapack --with-blas --with-readline --with-dbm --with-cxx
--with-freetype-includes=/usr/include/freetype2 --with-motif
--with-motif-includes=/usr/X11R6/include --with-glw --with-nls --with-gdal
--with-grass50=/usr/src/packages/BUILD/grass53_exp_2003_11_08

I didn't have a closer look at it!

> > tried it only once last week.
> > I didn't look close to the sources of 5.7, only 5.0 and 5.3. My
> > statement footed on those two. :-(
> 
> That was not really clear before.
>  
> > The 5.7 sources look very clear, but I can't say anything about the
> > the finish installation.
> 
> We do autocompilation every Saturday morning:
> http://grass.itc.it/grass51/binary/linux/
> It successded at least on Nov 8. Of course it may be possible that
> errors were introduced later. So it would be useful to know
> before next Saturday :-)
>  
> > The problem with building shared (5.0) is, that some stuff isn't
> > build, for example the man pages aren't created.
> 
> Are you sure?
> Try
>  grep html src/CMD/lists/GRASS
> 
> should print 'html'. If not, you are right (then post it to the list).

It prints html, but it isn't built!
The error is here:

mk/Makefile.in:

binaries:
        @echo "making binaries ..."
        echo "Start of compilation: "`date` > ${ERROR_LOG}
        -cat ${SRCDIR}/src/CMD/lists/GRASS
${DSTDIR}/src/CMD/lists/optional | \
                grep -v '^ *#' | grep -v '^ *$$' | grep -v '^html$$' | \
                while read dir ; do \
                        mkdir -p $$dir ; \
                        ${MAKE} -I${DSTDIR}/mk -I${SRCDIR}/mk -C
${SRCDIR}/$$dir -f makefile || \
                                echo "Compilation error in module: $$dir"
>> ${ERROR_LOG} ; \
                done
        echo "End of compilation:   "`date` >> ${ERROR_LOG}


> > > > What about cleaning these things up and using GNU autotools for
> > > > building.
> > > 
> > > See this comment:
> > > http://grass.itc.it/pipermail/grass5/2002-April/009033.html
> > 
> > To fix that problem with building shared I worked my way through the
> > Makefiles.
> > And that was very complicating.
> 
> Yes, the Makefile system in 5.0/5.3 is a nightmare.
> In 5.7 it's much more standard, but could be even better.
> 
> > My opinion is that the autotools stuff is clearer and more powerful,
> > but I don't have any experiences with such a huge project as grass.
> > 
> > Perhaps I can help somehow.
> 
> Yes: Apply the autotools to GRASS 5.7 and post the patches. If it is
> liked, we could apply it.

Perhaps I'll have a look at it! :-)

Ciao,
	Jens Oberender




More information about the grass-dev mailing list