Attempt at compiling the SDTS utilities

Michael Hanratty hanra001 at
Thu Mar 27 10:00:04 EST 1997

In message <199703270203.TAA08489 at alb-co-r.>  writes:
> Hello,
>      We are attempting to compile the SDTS utilities under Solaris 
> 2.5 and we ran into problems.  We first wrote the gmake4.1 file 
> to begin the process.  The following is the printout of our 
> attempt.

I had the same problem.  I fixed it by going into the files with the errors and 
commenting out the declarations for div_t and ldiv_t.  These are already 
declared somewhere in the system files.  I have to warn you though, I have not 
been very successful at creating GRASS files from SDTS format.  There is a bug 
in either these modules or the ARC/INFO modules that create SDTS files.

> rm -f OBJ.sun4/a_toe.o
> gcc -ansi -O -I./f123inc -DFIPS_BSD -I/grass/4.1/src/include  -c
> a_toe.c
> In file included from ./f123inc/stc123.h:385,
>                  from a_toe.c:48:
> ../f123inc/fips_bsd.h:7: conflicting types for `div_t'
> /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.4/2.6.3/include/stdlib.h:
> 27: previous declaration of `d
> iv_t'
> ../f123inc/fips_bsd.h:9: conflicting types for `ldiv_t'
> /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.4/2.6.3/include/stdlib.h:
> 32: previous declaration of `l
> div_t'
> ../f123inc/fips_bsd.h:15: conflicting types for `ldiv'
> /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.4/2.6.3/include/stdlib.h:
> 108: previous declaration of `
> ldiv'
> *** Error code 1
> make: Fatal error: Command failed for target `OBJ.sun4/a_toe.o'
> Current working directory
> /grass/4.1/src.contrib/CERL/SDTS/libes/fips123
> *** Error code 1
> make: Fatal error: Command failed for target `all'
> alb-co-r%

Michael Hanratty                           Phone: (612) 627-4590
St. Anthony Falls Laboratory               Fax: (612) 627-4609
Dept. of Civil Engineering
University of Minnesota
Mississippi River @ 3rd Ave. SE
Minneapolis, MN 55414

More information about the grass-user mailing list