[GRASS5] Fixing up projection related code...

On Tue, Apr 15, 2003 at 09:02:11PM -0700, Chris Heg wrote:

I have the following errors building the current 5.1 code on Solaris 8 sparc

configure:
The mysql checks fail.
Line 9519 - add "-lsocket"
Line 9559 - add "-lsocket -lm"

This requires a change in configure.in:

Should
$SOCKLIB
be added somewhere? I am not sure how to update that.

The prototype for G_ask_datum_name in gisdefs.h is different from the
function in get_datum_name.c

/lib/gis/get_datum_name.c has: "int G_ask_datum_name(char *datum)"

Change /include/gisdefs.h line 520
from: int G_ask_datum_name(char *datum, char *datum)
to: int G_ask_datum_name(char *datum)

In the current CVS versions of 5.0 HEAD and 5.1 it seems to
be fixed:

GRASS 5.1.0-cvs:~/grass51/include > grep G_ask_datum_name ../lib/gis/get_datum_name.c
* G_ask_datum_name(char *datumname, char *ellpsname)
int G_ask_datum_name(char *datumname, char *ellpsname)

GRASS 5.1.0-cvs:~/grass51/include > grep G_ask_datum_name gisdefs.h
int G_ask_datum_name(char *, char *);

You may want to run
cvs up -dP
in both source code directories.

This one I have not figured out:
make is looking for the non-existent file "datumtransform.table" in
/lib/gis. There is a "datum.table", but no "datumtransform.table" Where
should I look?

You have to update 5.0 from CVS, then you get the file.

Thanks for posting the mysql problem,

Markus

Markus Neteler wrote:

On Tue, Apr 15, 2003 at 09:02:11PM -0700, Chris Heg wrote:
> I have the following errors building the current 5.1 code on Solaris 8 sparc
>
> configure:
> The mysql checks fail.
> Line 9519 - add "-lsocket"
> Line 9559 - add "-lsocket -lm"

This requires a change in configure.in:

Should
$SOCKLIB
be added somewhere? I am not sure how to update that.

Line 873:

LOC_CHECK_LIBS(mysqlclient,mysql_query,MySQL,$MYSQLLIBPATH,MYSQLLIB,$ZLIB,$SOCKLIB,$MATHLIB)

--
Glynn Clements <glynn.clements@virgin.net>

On Wed, Apr 16, 2003 at 02:26:41PM +0100, Glynn Clements wrote:

Markus Neteler wrote:

> On Tue, Apr 15, 2003 at 09:02:11PM -0700, Chris Heg wrote:
> > I have the following errors building the current 5.1 code on Solaris 8 sparc

[...]

Line 873:

LOC_CHECK_LIBS(mysqlclient,mysql_query,MySQL,$MYSQLLIBPATH,MYSQLLIB,$ZLIB,$SOCKLIB,$MATHLIB)

Glynn,
may I ask to submit this as I have a really strange problem here:

GRASS 5.1.0-cvs:~/grass51 > autoconf
configure.in:39: error: possibly undefined macro: AC_MSG_ERROR

autoconf (GNU Autoconf) 2.53

With 2.13 everything worked fine. As I want to use the external
PROJ4 (also a GRASS 5.1 requirement now), I had to upgrade to
Autoconf 2.5x as PROJ4/CVS since some weeks refuses to work with
autoconf 2.13.

But due to this update I cannot generate GRASS's configure any
more.

Do we need an upgrade of "aclocal.m4"? I browsed the web
but didn't find help so far. Is there any initialization to be
defined in configure.in? The file of PROJ4 didn't inspire me...

Markus

Markus Neteler wrote:

> > On Tue, Apr 15, 2003 at 09:02:11PM -0700, Chris Heg wrote:
> > > I have the following errors building the current 5.1 code on Solaris 8 sparc
[...]
> Line 873:
>
> LOC_CHECK_LIBS(mysqlclient,mysql_query,MySQL,$MYSQLLIBPATH,MYSQLLIB,$ZLIB,$SOCKLIB,$MATHLIB)

Glynn,
may I ask to submit this as I have a really strange problem here:

GRASS 5.1.0-cvs:~/grass51 > autoconf
configure.in:39: error: possibly undefined macro: AC_MSG_ERROR

autoconf (GNU Autoconf) 2.53

The manual for autoconf 2.57 still lists AC_MSG_ERROR as a valid
macro, so it looks like a problem with your autoconf installation.

http://www.gnu.org/manual/autoconf/html_chapter/autoconf_7.html#SEC88

In any case, I'll submit a fix.

--
Glynn Clements <glynn.clements@virgin.net>

On Wed, Apr 16, 2003 at 06:22:15PM +0100, Glynn Clements wrote:

Markus Neteler wrote:

> > > On Tue, Apr 15, 2003 at 09:02:11PM -0700, Chris Heg wrote:
> > > > I have the following errors building the current 5.1 code on Solaris 8 sparc
> [...]
> > Line 873:
> >
> > LOC_CHECK_LIBS(mysqlclient,mysql_query,MySQL,$MYSQLLIBPATH,MYSQLLIB,$ZLIB,$SOCKLIB,$MATHLIB)
>
> Glynn,
> may I ask to submit this as I have a really strange problem here:
>
> GRASS 5.1.0-cvs:~/grass51 > autoconf
> configure.in:39: error: possibly undefined macro: AC_MSG_ERROR
>
> autoconf (GNU Autoconf) 2.53

The manual for autoconf 2.57 still lists AC_MSG_ERROR as a valid
macro, so it looks like a problem with your autoconf installation.

http://www.gnu.org/manual/autoconf/html_chapter/autoconf_7.html#SEC88

Thanks for the hint. Surprising is that my 'autoconf' works for PROJ4/CVS.
It "just" fails for GRASS. Does this suggest anything 'aclocal.m4' related?

In any case, I'll submit a fix.

Thanks,

Markus