Magellan Linux

Diff of /trunk/dvd+rw-tools/patches/dvd+rw-tools-7.1-gcc43.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 554 by niro, Fri Mar 28 09:52:43 2008 UTC revision 555 by niro, Fri Mar 28 10:03:20 2008 UTC
# Line 1  Line 1 
1  diff --git a/source/apps/dvd+rw-tools/gcc43.diff b/source/apps/dvd+rw-tools/gcc43.diff  From 38a48e7fd68973d2a1ccc1f7f59d5d0b59d2b74b Mon Sep 17 00:00:00 2001
2  new file mode 100644  From: Miklos Vajna <vmiklos at frugalware.org>
3  index 0000000..604379b  Date: Sat, 15 Mar 2008 12:27:31 +0100
4  --- /dev/null  Subject: [PATCH] Fix built with gcc-4.3 and newer
5  +++ b/source/apps/dvd+rw-tools/gcc43.diff  
6  @@ -0,0 +1,36 @@  make[1]: Entering directory `/var/tmp/fst/src/dvd+rw-tools-7.1'
7  +From 38a48e7fd68973d2a1ccc1f7f59d5d0b59d2b74b Mon Sep 17 00:00:00 2001  gcc -march=i686 -O2 -pipe -fno-strict-aliasing  -O2 -D_REENTRANT   -c -o growisofs.o growisofs.c
8  +From: Miklos Vajna <vmiklos at frugalware.org>  g++ -march=i686 -O2 -pipe -fno-strict-aliasing  -O2 -fno-exceptions -D_REENTRANT   -c -o growisofs_mmc.o growisofs_mmc.cpp
9  +Date: Sat, 15 Mar 2008 12:27:31 +0100  In file included from growisofs_mmc.cpp:17:
10  +Subject: [PATCH] Fix built with gcc-4.3 and newer  transport.hxx: In member function 'int Scsi_Command::is_reload_needed(int)':
11  +  transport.hxx:366: error: 'INT_MAX' was not declared in this scope
12  +make[1]: Entering directory `/var/tmp/fst/src/dvd+rw-tools-7.1'  make[1]: *** [growisofs_mmc.o] Error 1
13  +gcc -march=i686 -O2 -pipe -fno-strict-aliasing  -O2 -D_REENTRANT   -c -o growisofs.o growisofs.c  make[1]: Leaving directory `/var/tmp/fst/src/dvd+rw-tools-7.1'
14  +g++ -march=i686 -O2 -pipe -fno-strict-aliasing  -O2 -fno-exceptions -D_REENTRANT   -c -o growisofs_mmc.o growisofs_mmc.cpp  make: *** [all] Error 2
15  +In file included from growisofs_mmc.cpp:17:  
16  +transport.hxx: In member function 'int Scsi_Command::is_reload_needed(int)':  This is becase limits.h is no longer automatically included in this
17  +transport.hxx:366: error: 'INT_MAX' was not declared in this scope  version.
18  +make[1]: *** [growisofs_mmc.o] Error 1  
19  +make[1]: Leaving directory `/var/tmp/fst/src/dvd+rw-tools-7.1'  diff --git a/transport.hxx b/transport.hxx
20  +make: *** [all] Error 2  index 35a57a7..412aaaa 100644
21  +  --- a/transport.hxx
22  +This is becase limits.h is no longer automatically included in this  +++ b/transport.hxx
23  +version.  @@ -142,6 +142,7 @@ extern "C" char *plusminus_locale()
24  +---   #include <sys/ioctl.h>
25  + transport.hxx |    1 +   #include <linux/cdrom.h>
26  + 1 files changed, 1 insertions(+), 0 deletions(-)   #include <mntent.h>
27  +  +#include <limits.h>
28  +diff --git a/transport.hxx b/transport.hxx   #include <sys/wait.h>
29  +index 35a57a7..412aaaa 100644   #include <sys/utsname.h>
30  +--- a/transport.hxx   #include <scsi/sg.h>
31  ++++ b/transport.hxx  --
 +@@ -142,6 +142,7 @@ extern "C" char *plusminus_locale()  
 + #include <sys/ioctl.h>  
 + #include <linux/cdrom.h>  
 + #include <mntent.h>  
 ++#include <limits.h>  
 + #include <sys/wait.h>  
 + #include <sys/utsname.h>  
 + #include <scsi/sg.h>  
 +--  
 +1.5.4.3  
 +  

Legend:
Removed from v.554  
changed lines
  Added in v.555