Hi,

the error produced by unadf is due to it not supporting 64-bit
mode.  From the README file in the COMPILATION section:

  The size of long must be 4, the size of short 2.

In 64-bit mode on x86-64, sizeof(long) is 8 and sizeof(short) is
2.  The following small program will show the sizes:

  #include <stdlib.h>
  #include <stdio.h>
  
  int
  main(int argc, char *argv[])
  {
    printf("sizeof(char)  = %u.\n", sizeof(char));
    printf("sizeof(short) = %u.\n", sizeof(short));
    printf("sizeof(int)   = %u.\n", sizeof(int));
    printf("sizeof(long)  = %u.\n", sizeof(long));
  
    return 0;
  }

On my machine (Linux tirith 2.6.18-2-amd64-k8-tirith #1 SMP Sat Oct 25
23:43:12 EDT 2008 x86_64 GNU/Linux) running Debian 4.0 (I think), I
get:

  sizeof(char)  = 1.
  sizeof(short) = 2.
  sizeof(int)   = 4.
  sizeof(long)  = 8.

I'm not quite sure why unadf complains about sizeof(short), but if it
didn't it will definitely complain about sizeof(long).  The program
is simply not written to be portable.  It is not suitable for
inclusion in the x86-64 architecture of debian until it has been made
portable by replacing short and long types with portable types such as
int16_t and int32_t.

Thanks,
Per

-- 
Per Bojsen                                               <per.boj...@gmail.com>
7 Francis Road
Billerica, MA 01821-3618
USA



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to