Your message dated Tue, 14 Feb 2006 22:46:27 -0500
with message-id <[EMAIL PROTECTED]>
and subject line libast: FTBFS (amd64/gcc-4.0): invalid lvalue in assignment
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: libast
Severity: normal
Tags: patch

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

 cc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include/libast 
-I/usr/include -g -Wall -O2 -Wp,-MD,.deps/array.pp -c array.c  -fPIC -DPIC -o 
.libs/array.o
array.c: In function 'spif_array_show':
array.c:188: warning: pointer targets in passing argument 1 of 
'spif_str_new_from_ptr' differ in signedness
array.c:190: warning: pointer targets in passing argument 2 of 
'spif_str_append_from_ptr' differ in signedness
array.c:194: warning: pointer targets in passing argument 2 of 
'spif_str_append_from_ptr' differ in signedness
array.c:198: warning: format '%d' expects type 'int', but argument 3 has type 
'size_t'
array.c:205: warning: pointer targets in passing argument 2 of 
'spif_str_append_from_ptr' differ in signedness
array.c: In function 'spif_array_reverse':
array.c:460: error: invalid lvalue in assignment
make[3]: *** [array.lo] Error 1
make[3]: Leaving directory `/libast-0.6/src'

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

This patch also adds the missing 'libltdl3-dev' to the Build-Depends
in debian/control.

Regards
Andreas Jochens

diff -urN ../tmp-orig/libast-0.6/debian/control ./debian/control
--- ../tmp-orig/libast-0.6/debian/control       2003-11-01 23:32:00.000000000 
+0100
+++ ./debian/control    2004-12-27 13:42:57.566756648 +0100
@@ -2,7 +2,7 @@
 Section: libs
 Priority: optional
 Maintainer: Laurence J. Lane <[EMAIL PROTECTED]>
-Build-Depends: libimlib2-dev, xlibs-dev, cdbs, debhelper (>>4.1.0)
+Build-Depends: debhelper (>> 4.1.0), cdbs, libimlib2-dev, libltdl3-dev, 
xlibs-dev
 Standards-Version: 3.6.1.0
 
 Package: libast2
diff -urN ../tmp-orig/libast-0.6/include/libast.h ./include/libast.h
--- ../tmp-orig/libast-0.6/include/libast.h     2003-01-07 10:03:33.000000000 
+0100
+++ ./include/libast.h  2004-12-27 13:30:01.000000000 +0100
@@ -380,7 +380,7 @@
 #else
 # define SWAP(a, b)  do {void *tmp = ((void *)(a)); (a) = (b); (b) = tmp;} 
while (0)
 #endif
-#define BINSWAP(a, b)  (((long) (a)) ^= ((long) (b)) ^= ((long) (a)) ^= 
((long) (b)))
+#define BINSWAP(a, b)  a = (long)a^(long)b; b = (long)b^(long)a; a = 
(long)a^(long)b
 
 #define CONST_STRLEN(x)            (sizeof(x) - 1)
 #define BEG_STRCASECMP(s, constr)  (strncasecmp(s, constr, 
CONST_STRLEN(constr)))
diff -urN ../tmp-orig/libast-0.6/src/obj.c ./src/obj.c
--- ../tmp-orig/libast-0.6/src/obj.c    2002-07-26 06:17:17.000000000 +0200
+++ ./src/obj.c 2004-12-27 13:34:05.000000000 +0100
@@ -120,7 +120,7 @@
     if (SPIF_OBJ_ISNULL(self)) {
         return FALSE;
     }
-    SPIF_OBJ_CLASS(self) = cls;
+    self->cls = cls;
     return TRUE;
 }
 
diff -urN ../tmp-orig/libast-0.6/src/str.c ./src/str.c
--- ../tmp-orig/libast-0.6/src/str.c    2002-07-31 23:56:55.000000000 +0200
+++ ./src/str.c 2004-12-27 13:35:30.000000000 +0100
@@ -378,7 +378,7 @@
         self->mem++;
         self->s = SPIF_CAST(charptr) REALLOC(self->s, self->mem);
     }
-    SPIF_CAST(char) (self->s[self->len - 1]) = c;
+    self->s[self->len - 1] = c;
     self->s[self->len] = 0;
     return TRUE;
 }
diff -urN ../tmp-orig/libast-0.6/src/url.c ./src/url.c
--- ../tmp-orig/libast-0.6/src/url.c    2002-07-31 23:56:55.000000000 +0200
+++ ./src/url.c 2004-12-27 13:36:16.000000000 +0100
@@ -500,6 +500,6 @@
         spif_str_append(tmp_str, self->query);
     }
 
-    SPIF_STR(self) = tmp_str;
+    self = tmp_str;
     return TRUE;
 }


--- End Message ---
--- Begin Message ---
tags 287376 = wontfix
thanks

The patch is obsolete. Post one against the newer code if necessary.

--- End Message ---

Reply via email to