[DebianGIS-dev] Bug#338552: avce00: Big endian problems

Hamish hamish_nospam at yahoo.com
Thu Nov 10 23:51:54 UTC 2005


Package: avce00
Version: 1.3.0-1
Severity: normal

Hi,

apparently there are problems on big-endian systems.

see:
http://grass.itc.it/pipermail/grass5/2005-November/020142.html

text of that email is reproduced below.
Hamish

===============================================================
[GRASS5] importing .e00 files
William Kyngesburye <kyngchaos at kyngchaos.com>
Wed, 9 Nov 2005 11:42:20 -0600

I saw that right away, just didn't think to mention it.  And I got  
distracted from building the avce00 stuff.

But, when I got to the e00compr program, I noticed that the byte  
order isn't specified in the makefile.  Since e00compr and avce00  
both use the CPL stuff, I suggest you add -DCPL_MSB to the e00compr  
CFLAGS also.


On Nov 9, 2005, at 10:44 AM, Kirk R. Wythers wrote:

> Thanks to everyone for their suggestions on getting .e00 files  
> imported. Here is the solution. I wanted to get it into the dev  
> archives for others.
>
> It turns out to be a Mac issue (big vs. little edian). avcimport's  
> default build is to use the switch DCPL_LSB byte ordering. On a Mac  
> (at least a G5 Mac) the byte order switch needs to be MSB (just  
> like a Sun). Here is the bit of code in the GNUMakefile.
>
> #  Byte ordering ... default is Intel ordering (CPL_LSB),
> #  Select CPL_MSB for SUNs or other platforms with MSB first ordering.
> #
> BYTE_ORDER_FL = -DCPL_MSB
> #BYTE_ORDER_FL = -DCPL_LSB
>
> WIth that change (and re-building avcimport of course), the  
> v.in.e00 script runs just fine.
>
> Kirk
>




More information about the Pkg-grass-devel mailing list