[GRASS5] Build 5.1 with Sun cc

Hi,
  I'm trying to build cvs grass51 on Solaris 9.
My first pass was with the sun compiler. It stopped first at
lib/db/sqlp/test/test.c complaining about the -static flag. -Bstatic
fixes this. GCC 3.1.1 also stops, since it seems solaris needs some dl
stubs for static linking. Is there some reason this is static?
  The sun cc continues to lib/vector/dglib/helpers.c. at line 79
it suggests this is an invalid cast expression

if ( (pnode = gnTreeNewNode( nodeid , (gnTreeData_u)0 ,
  (gnTreeData_u)0)) == NULL ) return NULL;

The manual says "expression being cast and the type of the cast must
be scalar types". I assume gnTreeData_u is type union? and this is
causing the problem. Is there some way to work around this?

Thanks, mark

On Wednesday 03 July 2002 04:07 pm, Mark Sutton wrote:

Hi,
  I'm trying to build cvs grass51 on Solaris 9.
My first pass was with the sun compiler. It stopped first at
lib/db/sqlp/test/test.c complaining about the -static flag. -Bstatic
fixes this. GCC 3.1.1 also stops, since it seems solaris needs some dl
stubs for static linking. Is there some reason this is static?

Removed.

Radim

lib/vector/diglib/test.c also has a static flag.

On Wed, 3 Jul 2002, Radim Blazek wrote:

On Wednesday 03 July 2002 04:07 pm, Mark Sutton wrote:
> Hi,
> I'm trying to build cvs grass51 on Solaris 9.
> My first pass was with the sun compiler. It stopped first at
> lib/db/sqlp/test/test.c complaining about the -static flag. -Bstatic
> fixes this. GCC 3.1.1 also stops, since it seems solaris needs some dl
> stubs for static linking. Is there some reason this is static?

Removed.

Radim

On Wednesday 03 July 2002 04:35 pm, Mark Sutton wrote:

lib/vector/diglib/test.c also has a static flag.

OK, also removed.

Radim