[GRASS5] 64-bit PVF patch (read-only)

If anyone was holding his breath waiting for this patch, you
can exhale now. I have a tarball on my webpage at
http://www.grasshoppernet.com/~bhughes that contains enough
code to allow Alpha-platform machines to read the Portable
Vector Format. I do not recommend it as a general-use patch.
It "ought to work" on non-Alpha machines, but that's easy to
say and harder to prove. Apply to 5.0beta6d source.

Using this patch will disable access to the native-sized
pseudo-version-4 vector files that Alphans have been using, so
if you _need_ this you should continue using the PORT_LONG=8
hack. (and why are you using an Alpha in production???)

I have successfully drawn several of the vector maps in the
Spearfish examples, just to see what the rest of you have been
working on. I expect that there are still bugs. There is PVF
writing code in this patch, but it has not been tested.

This patch is an interim fix for a 64-bit architecture
until somebody does the job properly. This re-write has given
me valuable insight, and this code is not part of The Plan.

Bug reports are welcome, or something-

Bill Hughes

----------------------------------------
If you want to unsubscribe from GRASS Development
Team internal mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'
length: 1875
max: 0

Thanks to Bill for the 64bit PVF. I will test it. For the moment being
I have compiled
beta6f on the alpha. With CC I get the following error, right in the
beginning of compilation:

  /export/venus6b/grass/src/src/raster/r.proj/cmd
    mkdir OBJ.alphaev56-dec-osf4.0d
    make -f OBJ.alphaev56-dec-osf4.0d/make.rules

  rm -f OBJ.alphaev56-dec-osf4.0d/main.o
  cc -g -I/export/venus6b/grass/src/src/include -c main.c
  cc: Error: /export/venus6b/grass/src/src/include/gisdefs.h, line 278:
Invalid declaration.
  int G_fatal_error(char *,...) __attribute__ ((__noreturn__));

This error does not appear with GCC. With this latter compiler however
I had to
exclude i.in.erdas due to the following error:

  GISGEN: src/imagery/i.in.erdas - Wed Jan 5 19:14:27 MET 2000
  #################################################################
  main.c:48: conflicting types for `swab'

/usr/local/lib/gcc-lib/alphaev56-dec-osf4.0d/2.8.0/include/unistd.h:183:
previous declaration of `swab'

All of the other stuff is compiled without problems either with either
compilers.

Luca

--
--> Luca Palmeri - Dip. Proc. Chimici dell'Ingegneria
    Universita' di Padova TEL: +390498275527 -------
------------------------- FAX: +390498275528 -------
--> Think holistic @ the end of the 2nd millenium <--

----------------------------------------
If you want to unsubscribe from GRASS Development
Team internal mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'
length: 2330
max: 0

Thank you for testing i.in.erdas on a 64-bit platform.
I am fairly sure it won't work properly, but I would appreciate hearing
back about it.

I will fix the compile error soon, and hopefully make it into a 64-bit
compatible program.

Angus Carr.

Luca Palmeri wrote:

Thanks to Bill for the 64bit PVF. I will test it. For the moment being
I have compiled
beta6f on the alpha. With CC I get the following error, right in the
beginning of compilation:

  /export/venus6b/grass/src/src/raster/r.proj/cmd
    mkdir OBJ.alphaev56-dec-osf4.0d
    make -f OBJ.alphaev56-dec-osf4.0d/make.rules

  rm -f OBJ.alphaev56-dec-osf4.0d/main.o
  cc -g -I/export/venus6b/grass/src/src/include -c main.c
  cc: Error: /export/venus6b/grass/src/src/include/gisdefs.h, line 278:
Invalid declaration.
  int G_fatal_error(char *,...) __attribute__ ((__noreturn__));

This error does not appear with GCC. With this latter compiler however
I had to
exclude i.in.erdas due to the following error:

  GISGEN: src/imagery/i.in.erdas - Wed Jan 5 19:14:27 MET 2000
  #################################################################
  main.c:48: conflicting types for `swab'

/usr/local/lib/gcc-lib/alphaev56-dec-osf4.0d/2.8.0/include/unistd.h:183:
previous declaration of `swab'

All of the other stuff is compiled without problems either with either
compilers.

Luca

--
--> Luca Palmeri - Dip. Proc. Chimici dell'Ingegneria
    Universita' di Padova TEL: +390498275527 -------
------------------------- FAX: +390498275528 -------
--> Think holistic @ the end of the 2nd millenium <--

----------------------------------------
If you want to unsubscribe from GRASS Development
Team internal mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'
length: 2330
max: 0

----------------------------------------
If you want to unsubscribe from GRASS Development
Team internal mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'
length: 2836
max: 0