|
|
[This was already posted to povray.programming, but
bug### [at] povrayorg suggested that I post here to
encourage "discussion and investigation by [my] fellow POV-Ray
enthusiasts".]
Version 3.50b doesn't build as is with gcc on an IA64 running Linux.
The following patch corrects the problem. Basically, int32 and
u_int32 need to be defined as ints, not longs, on IA64; and, the
prototype for Opts_Locate_File() should use the u_int32 typedef
instead of hardwiring in "unsigned long". (Tsk, tsk.)
-- Scott
=============== BEGIN: povray-3.50b-itanium-g++.patch ===============
--- src/frame.h.ORIG Mon Oct 7 14:37:45 2002
+++ src/frame.h Mon Oct 7 14:37:59 2002
@@ -44,12 +44,12 @@
class pov_istream_class;
class pov_ostream_class;
-typedef unsigned long u_int32 ;
+typedef unsigned int u_int32 ;
typedef unsigned short u_int16 ;
typedef unsigned char u_int8 ;
typedef unsigned char byte ;
-typedef signed long int32 ;
+typedef signed int int32 ;
typedef signed short int16 ;
typedef signed char int8 ;
--- src/optin.cpp.ORIG Mon Oct 7 14:44:11 2002
+++ src/optin.cpp Mon Oct 7 14:44:55 2002
@@ -364,7 +364,7 @@
static bool matches(char *v1, char *v2);
-POV_ISTREAM *Opts_Locate_File(char *filename, unsigned long stype, char *buffer, int
err_flag, POVMSObjectPtr obj);
+POV_ISTREAM *Opts_Locate_File(char *filename, u_int32 stype, char *buffer, int
err_flag, POVMSObjectPtr obj);
/*****************************************************************************
================= END: povray-3.50b-itanium-g++.patch =================
Post a reply to this message
|
|