Package: php4
Version: 4:4.3.10-10
Severity: normal
Tags: patch

When building 'php4' on ppc64/unstable with gcc-4.0,
I get the following error:

checking for long... yes
checking size of long... configure: error: cannot compute sizeof (long), 77
See `config.log' for more details.
make: *** [configure-apache-stamp] Error 1

This is caused by the '-gstabs' compiler switch which does not work
for ppc64. Please use '-g' instead of '-gstabs' on ppc64.

With the attached patch 'php4' can be compiled
on ppc64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/php4-4.3.10/debian/rules ./debian/rules
--- ../tmp-orig/php4-4.3.10/debian/rules        2005-03-26 20:25:08.230512823 
+0100
+++ ./debian/rules      2005-03-26 20:24:47.567387053 +0100
@@ -31,7 +31,7 @@
   CFLAGS += -mieee
 endif
 
-ifeq (ia64-linux,$(DEB_HOST_GNU_TYPE))
+ifeq ($(DEB_HOST_GNU_TYPE), $(findstring $(DEB_HOST_GNU_TYPE), ia64-linux 
powerpc64-linux))
   CFLAGS += -g
 else
   CFLAGS += -gstabs
diff -urN ../tmp-orig/php4-4.3.10/ext/xmlrpc/libxmlrpc/xml_element.c 
./ext/xmlrpc/libxmlrpc/xml_element.c
--- ../tmp-orig/php4-4.3.10/ext/xmlrpc/libxmlrpc/xml_element.c  2004-06-01 
22:16:18.000000000 +0200
+++ ./ext/xmlrpc/libxmlrpc/xml_element.c        2005-03-26 20:25:00.166024873 
+0100
@@ -188,7 +188,7 @@
 
       Q_Destroy(&root->children);
       Q_Destroy(&root->attrs);
-      my_free((char*)root->name);
+      my_free(root->name);
       simplestring_free(&root->text);
       my_free(root);
    }


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to