Package: libupnp
Version: 1.2.1-1
Severity: normal
Tags: patch

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

gcc -Wall -I./ -I../inc -I../../pil/inc -fPIC -c -Wall -Os -DNDEBUG -I. 
-I../inc -Iinc -c element.c -o obj/element.o
In file included from inc/ixmlparser.h:35,
                 from element.c:32:
../inc/ixml.h:298: warning: type qualifiers ignored on function return type
element.c: In function 'ixmlElement_removeAttributeNode':
element.c:457: error: invalid lvalue in assignment
element.c:458: error: invalid lvalue in assignment
element.c:459: error: invalid lvalue in assignment
make[3]: *** [obj/element.o] Error 1
make[3]: Leaving directory `/libupnp-1.2.1/ixml/src'

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

Regards
Andreas Jochens

diff -urN ../tmp-orig/libupnp-1.2.1/ixml/src/element.c ./ixml/src/element.c
--- ../tmp-orig/libupnp-1.2.1/ixml/src/element.c        2003-01-15 
22:39:43.000000000 +0100
+++ ./ixml/src/element.c        2005-03-28 11:22:07.016192110 +0200
@@ -454,9 +454,9 @@
             element->n.firstAttr = nextSib;
         }
 
-        ( IXML_Attr * ) attrNode->parentNode = NULL;
-        ( IXML_Attr * ) attrNode->prevSibling = NULL;
-        ( IXML_Attr * ) attrNode->nextSibling = NULL;
+        attrNode->parentNode = NULL;
+        attrNode->prevSibling = NULL;
+        attrNode->nextSibling = NULL;
         *rtAttr = ( IXML_Attr * ) attrNode;
         return IXML_SUCCESS;
 


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

Reply via email to