Package: php3
Version: 3:3.0.18-29
Severity: normal
Tags: patch
When building 'php3' on amd64/unstable with gcc-4.0,
I get the following error:
gcc -c language-scanner.c -o language-scanner.o
In file included from /usr/include/stdlib.h:433,
from language-scanner.c:1484:
/usr/include/sys/types.h:153: error: duplicate 'unsigned'
/usr/include/sys/types.h:153: error: two or more data types in declaration
specifiers
make[1]: *** [language-scanner.o] Error 1
make[1]: Leaving directory `/php3-3.0.18/convertor'
make: *** [build-arch-stamp] Error 2
With the attached patch 'php3' can be compiled
on amd64 using gcc-4.0.
Regards
Andreas Jochens
diff -urN ../tmp-orig/php3-3.0.18/convertor/token_cache.h
./convertor/token_cache.h
--- ../tmp-orig/php3-3.0.18/convertor/token_cache.h 2000-02-08
00:54:50.000000000 +0100
+++ ./convertor/token_cache.h 2005-04-02 08:00:26.365220547 +0200
@@ -37,7 +37,7 @@
#include "php_alloc.h"
-#define uint unsigned int
+#include <sys/types.h>
#define SUCCESS 0
#define FAILURE -1
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]