[Bug 230527] Re: FTBFS: error: size of array `_dummy' is negative

fabrice_sp coutadeurf at gmail.com
Sat Feb 28 05:23:42 UTC 2009


Hi,

You have to condition the change of length of the variable, otherwise, you will have problems in i386. 
I've been able to go further than this 2 assert, after this change, you have to change a lot of variable, and the code itself is not clean, even for i386.

This is how I did in EmTypes.h:
--- pose-3.5.orig/SrcShared/EmTypes.h
+++ pose-3.5/SrcShared/EmTypes.h
@@ -23,21 +23,38 @@
 	typedef	signed char			int8;
 	typedef	unsigned char		uint8;
 
+#ifndef __amd64__
 	typedef signed short		int16;
 	typedef unsigned short		uint16;
 
 	typedef signed long			int32;
 	typedef unsigned long		uint32;
+#else
+	typedef signed short int	int16;
+	typedef unsigned short int	uint16;
+
+	typedef signed int			int32;
+	typedef unsigned int		uint32;
+#endif
 
 #ifdef _MSC_VER
 	typedef signed __int64		int64;
 	typedef unsigned __int64	uint64;
 #else
+#ifndef __amd64__
 	typedef signed long long	int64;
 	typedef unsigned long long	uint64;
+#else
+	typedef signed long		int64;
+	typedef unsigned long	uint64;
+#endif
 #endif
 
+#ifndef __amd64__
 typedef uint32				emuptr;
+#else
+typedef uint64				emuptr;
+#endif
 
 typedef int 				Bool;
 
So far, I've changed 11 more files to adapt the structures, and even if it's still working for i386, it's not yet fully compiling for am64. And as you said, after getting it compiled in adm64, not sure it won't bomb everywhere...

-- 
FTBFS: error: size of array `_dummy' is negative
https://bugs.launchpad.net/bugs/230527
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list