php4: FTBFS (amd64/gcc-4.0): invalid lvalue in assignment

Bug #15351 reported by Debian Bug Importer
4
Affects Status Importance Assigned to Milestone
Debian
Fix Released
Unknown
Ubuntu
Fix Released
High
Martin Pitt

Bug Description

Automatically imported from Debian bug report #287956 http://bugs.debian.org/287956

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Automatically imported from Debian bug report #287956 http://bugs.debian.org/287956

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Fri, 31 Dec 2004 08:31:04 +0100
From: Andreas Jochens <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: php4: FTBFS (amd64/gcc-4.0): invalid lvalue in assignment

Package: php4
Severity: normal
Tags: patch

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

 gcc -I/php4-4.3.10/ext/xmlrpc/libxmlrpc -DVERSION=0.50 -Iext/xmlrpc/ -I/php4-4.3.10/ext/xmlrpc/ -DPHP_ATOM_INC -I/php4-4.3.10/apache-build/include -I/php4-4.3.10/apache-build/main -I/php4-4.3.10 -I/php4-4.3.10/apache-build/Zend -I/usr/include/libxml2 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/c-client -I/php4-4.3.10/ext/mbstring/mbregex -I/php4-4.3.10/ext/mbstring/libmbfl -I/php4-4.3.10/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql -I/php4-4.3.10/main -I/php4-4.3.10/Zend -I/php4-4.3.10/TSRM -I/php4-4.3.10/apache-build/ -I/php4-4.3.10/apache-build/TSRM -O2 -Wall -fsigned-char -fno-strict-aliasing -gstabs -c /php4-4.3.10/ext/xmlrpc/libxmlrpc/xml_element.c -fPIC -DPIC -o ext/xmlrpc/libxmlrpc/.libs/xml_element.o
/php4-4.3.10/ext/xmlrpc/libxmlrpc/xml_element.c: In function 'xml_elem_free_non_recurse':
/php4-4.3.10/ext/xmlrpc/libxmlrpc/xml_element.c:191: error: invalid lvalue in assignment
/php4-4.3.10/ext/xmlrpc/libxmlrpc/xml_element.c: In function 'xml_elem_entity_escape':
/php4-4.3.10/ext/xmlrpc/libxmlrpc/xml_element.c:316: warning: pointer targets in assignment differ in signedness
/php4-4.3.10/ext/xmlrpc/libxmlrpc/xml_element.c:331: warning: pointer targets in assignment differ in signedness
make[1]: *** [ext/xmlrpc/libxmlrpc/xml_element.lo] Error 1
make[1]: Leaving directory `/php4-4.3.10/apache-build'
make: *** [build-apache-stamp] Error 2

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

Regards
Andreas Jochens

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 2004-12-30 22:50:25.000000000 +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);
    }

Revision history for this message
Martin Pitt (pitti) wrote :

 php4 (4:4.3.10-10ubuntu5) hoary; urgency=low
 .
   * Added debian/patches/049-gcc-4.0.patch: Fix FTBFS with gcc 4.0. (#9042)
   * debian/rules: Use -g instead of -gstabs to allow building on ppc64.
     (#9043)

Revision history for this message
In , Adam Conrad (adconrad) wrote : Bug#287956: fixed in php4 4:4.3.10-13
Download full text (6.7 KiB)

Source: php4
Source-Version: 4:4.3.10-13

We believe that the bug you reported is fixed in the latest version of
php4, which is due to be installed in the Debian FTP archive:

libapache-mod-php4_4.3.10-13_powerpc.deb
  to pool/main/p/php4/libapache-mod-php4_4.3.10-13_powerpc.deb
libapache2-mod-php4_4.3.10-13_powerpc.deb
  to pool/main/p/php4/libapache2-mod-php4_4.3.10-13_powerpc.deb
php4-cgi_4.3.10-13_powerpc.deb
  to pool/main/p/php4/php4-cgi_4.3.10-13_powerpc.deb
php4-cli_4.3.10-13_powerpc.deb
  to pool/main/p/php4/php4-cli_4.3.10-13_powerpc.deb
php4-common_4.3.10-13_powerpc.deb
  to pool/main/p/php4/php4-common_4.3.10-13_powerpc.deb
php4-curl_4.3.10-13_powerpc.deb
  to pool/main/p/php4/php4-curl_4.3.10-13_powerpc.deb
php4-dev_4.3.10-13_powerpc.deb
  to pool/main/p/php4/php4-dev_4.3.10-13_powerpc.deb
php4-domxml_4.3.10-13_powerpc.deb
  to pool/main/p/php4/php4-domxml_4.3.10-13_powerpc.deb
php4-gd_4.3.10-13_powerpc.deb
  to pool/main/p/php4/php4-gd_4.3.10-13_powerpc.deb
php4-imap_4.3.10-13_powerpc.deb
  to pool/main/p/php4/php4-imap_4.3.10-13_powerpc.deb
php4-ldap_4.3.10-13_powerpc.deb
  to pool/main/p/php4/php4-ldap_4.3.10-13_powerpc.deb
php4-mcal_4.3.10-13_powerpc.deb
  to pool/main/p/php4/php4-mcal_4.3.10-13_powerpc.deb
php4-mhash_4.3.10-13_powerpc.deb
  to pool/main/p/php4/php4-mhash_4.3.10-13_powerpc.deb
php4-mysql_4.3.10-13_powerpc.deb
  to pool/main/p/php4/php4-mysql_4.3.10-13_powerpc.deb
php4-odbc_4.3.10-13_powerpc.deb
  to pool/main/p/php4/php4-odbc_4.3.10-13_powerpc.deb
php4-pear_4.3.10-13_all.deb
  to pool/main/p/php4/php4-pear_4.3.10-13_all.deb
php4-recode_4.3.10-13_powerpc.deb
  to pool/main/p/php4/php4-recode_4.3.10-13_powerpc.deb
php4-snmp_4.3.10-13_powerpc.deb
  to pool/main/p/php4/php4-snmp_4.3.10-13_powerpc.deb
php4-sybase_4.3.10-13_powerpc.deb
  to pool/main/p/php4/php4-sybase_4.3.10-13_powerpc.deb
php4-xslt_4.3.10-13_powerpc.deb
  to pool/main/p/php4/php4-xslt_4.3.10-13_powerpc.deb
php4_4.3.10-13.diff.gz
  to pool/main/p/php4/php4_4.3.10-13.diff.gz
php4_4.3.10-13.dsc
  to pool/main/p/php4/php4_4.3.10-13.dsc
php4_4.3.10-13_all.deb
  to pool/main/p/php4/php4_4.3.10-13_all.deb

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Adam Conrad <adconrad@0c3.net> (supplier of updated php4 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Mon, 18 Apr 2005 00:29:54 -0600
Source: php4
Binary: php4-cgi php4-sybase php4-recode libapache-mod-php4 php4-cli php4-dev libapache2-mod-php4 php4-snmp php4-odbc php4-xslt php4-mysql php4-domxml php4-gd php4-ldap php4-imap php4-common php4-curl php4 php4-pear php4-mcal php4-mhash
Architecture: source powerpc all
Version: 4:4.3.10-13
Distribution: unstable
Urgency: low
Maintainer: Adam Conrad <adconrad@0c3.net>
Changed-B...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.