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