ba8184
Subject: Bug#288621: udftools: FTBFS (amd64/gcc-4.0): invalid lvalue in assignment
ba8184
From: Andreas Jochens <aj@andaco.de>
ba8184
Message-Id: <e1cltqt-00068g-sy@localhost.localdomain>
ba8184
Date: Tue, 04 Jan 2005 19:29:01 +0100
ba8184
Lines: 59
ba8184
ba8184
Package: udftools
ba8184
Severity: normal
ba8184
Tags: patch
ba8184
ba8184
When building 'udftools' on amd64 with gcc-4.0,
ba8184
I get the following error:
ba8184
ba8184
wrudf.c:119: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
ba8184
wrudf.c:119: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
ba8184
wrudf.c:119: warning: pointer targets in passing argument 1 of 'strcmp' differ in signedness
ba8184
wrudf.c:119: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness
ba8184
wrudf.c:230: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
ba8184
wrudf.c:230: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
ba8184
wrudf.c:230: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
ba8184
wrudf.c:230: warning: pointer targets in passing argument 1 of 'strcmp' differ in signedness
ba8184
wrudf.c:230: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness
ba8184
wrudf.c:245: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
ba8184
wrudf.c:245: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
ba8184
wrudf.c:245: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
ba8184
wrudf.c:245: warning: pointer targets in passing argument 1 of 'strcmp' differ in signedness
ba8184
wrudf.c:245: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness
ba8184
wrudf.c:248: error: invalid lvalue in assignment
ba8184
make[2]: *** [wrudf.o] Error 1
ba8184
make[2]: Leaving directory `/udftools-1.0.0b3/wrudf'
ba8184
ba8184
With the attached patch 'udftools' can be compiled
ba8184
on amd64 using gcc-4.0.
ba8184
ba8184
The patch also changes the Build-Depends from 'libreadline4-dev'
ba8184
to 'libreadline5-dev'.
ba8184
ba8184
Regards
ba8184
Andreas Jochens
ba8184
ba8184
diff -urN ../tmp-orig/udftools-1.0.0b3/wrudf/wrudf.c ./wrudf/wrudf.c
ba8184
--- ../tmp-orig/udftools-1.0.0b3/wrudf/wrudf.c	2002-11-26 08:18:51.000000000 +0100
ba8184
+++ ./wrudf/wrudf.c	2005-01-04 16:56:49.394078200 +0100
ba8184
@@ -245,7 +245,7 @@
ba8184
 	    } else if( strncmp( spm->partIdent.ident, UDF_ID_VIRTUAL, strlen(UDF_ID_VIRTUAL)) == 0 )
ba8184
 		virtualPartitionNum = i;
ba8184
 	}
ba8184
-	(char*)spm += spm->partitionMapLength;
ba8184
+	spm = (char*)spm + spm->partitionMapLength;
ba8184
     }
ba8184
 
ba8184
     if( medium == CDR ) {
ba8184
diff -urN ../tmp-orig/udftools-1.0.0b3/debian/control ./debian/control