Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 173512 Details for
Bug 227041
app-crypt/calcchecksum-1.6_pre1 fails to build
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to allow compilation with GCC 4.3
calcchecksum-1.6_pre1-gcc43-fix.patch (text/plain), 1.59 KB, created by
John Keeping
on 2008-11-26 21:00:01 UTC
(
hide
)
Description:
Patch to allow compilation with GCC 4.3
Filename:
MIME Type:
Creator:
John Keeping
Created:
2008-11-26 21:00:01 UTC
Size:
1.59 KB
patch
obsolete
>--- calcchecksum/calcchecksum.cpp 2004-01-16 19:10:47.000000000 +0000 >+++ calcchecksum/calcchecksum.cpp 2008-11-26 20:34:03.000000000 +0000 >@@ -9,6 +9,7 @@ > * * > ***************************************************************************/ > >+#include <cstdlib> > > #include <qlineedit.h> > #include <qlabel.h> >@@ -86,7 +87,7 @@ > "Quit some other programs.\n" > "CalcChecksum will be terminated now!"); > printError(err); >- exit(1); >+ std::exit(1); > } > connect(comm, SIGNAL(lineAvailable_signal(const string*)), this, SLOT(handleProgressRequest(const string*))); > >@@ -624,11 +625,11 @@ > } > } else if (unlikely(c == 'S')) { > // Progressbar top-value (total-steps value) >- progressBar->setTotalSteps(atoi(data->substr(1, >+ progressBar->setTotalSteps(std::atoi(data->substr(1, > data->length()).c_str())); > } else { > // push progressBar >- progressBar->setProgress(atoi(data->c_str())); >+ progressBar->setProgress(std::atoi(data->c_str())); > } > } > >diff -Naur ./calcchecksum/globalstuff.cpp ../calcchecksum-1.6-pre1.patched/calcchecksum/globalstuff.cpp >--- ./calcchecksum/globalstuff.cpp 2004-01-13 17:25:56.000000000 +0000 >+++ ../calcchecksum-1.6-pre1.patched/calcchecksum/globalstuff.cpp 2008-11-26 20:35:50.000000000 +0000 >@@ -11,6 +11,7 @@ > > #include "globalstuff.h" > >+#include <cstring> > #include <stdio.h> > #include <sys/stat.h> > >@@ -29,7 +30,7 @@ > ret += "00"; > } else { > sprintf(tmp, "%X", 0xFF & *(buf + i)); >- if (strlen(tmp) == 1) >+ if (std::strlen(tmp) == 1) > ret += '0'; > ret += tmp; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 227041
: 173512 |
173513