POV-Ray : Newsgroups : povray.general : 64-bit compile bug : 64-bit compile bug Server Time
5 Aug 2024 18:26:15 EDT (-0400)
  64-bit compile bug  
From: Andrew Schultz
Date: 15 Aug 2002 11:05:05
Message: <web.3d5bc2de56d1c4c89ecef47b0@news.povray.org>
This is a bug report:

POV-Ray 3.5 fails to compile on Alpha-Linux (RH72), and probably most other
64-bit platforms.

In file included from /usr/include/tiffio.h:33,
                 from tiff_pov.cpp:46:
/usr/include/tiff.h:64: conflicting types for `typedef int int32'
frame.h:52: previous declaration as `typedef long int int32'

tiffio.h says

#if defined(__s390x__) || defined(__ia64__) || defined(__alpha) ||
(defined(_MIPS_SZLONG) && _MIPS_SZLONG == 64)
typedef int int32;
typedef unsigned int uint32;    /* sizeof (uint32) must == 4 */
#else
typedef long int32;
typedef unsigned long uint32;   /* sizeof (uint32) must == 4 */
#endif

frame.h attempts this:
typedef signed long int32 ;


on a 64-bit machine (linux), a long is 64-bits and int is 32-bits
on a 32-bit machine (linux), a long is 32-bits and int is 32-bits

------------
Andrew Schultz


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.