[PATCH] dvgrab: fix build w/gcc 4.4
Jarod Wilson <[email protected]>
| Newsgroups | gmane.comp.video.kino.devel |
|---|---|
| Organization | Red Hat, Inc. |
| Message-ID | <[email protected]> |
dvgrab fails to build with gcc 4.4. Excerpt from Jakub Jelinek at https://www.redhat.com/archives/fedora-devel-list/2009-February/msg00180.html : C++ <string> (<bits/char_traits.h>) no longer includes <cstdio>. So does <ios>, <streambuf>, <iomanip>, <locale>. When you need anything from C stdio.h, such as EOF, *printf*, *scanf*, remove etc., add #include <cstdio> to all sources that need it. http://sunsite.mff.cuni.cz/rawhide20090126-gcc44/cstdio/ Drilling down there, you can see: http://sunsite.mff.cuni.cz/rawhide20090126-gcc44/cstdio/dvgrab-3.2-1.fc10.src.rpm/ There's an additional build failure after that though. Oh, and the above says 3.2, but 3.3 fails the same way. I've accounted for both build failures in the attached patch, which results in packages that build fine w/gcc 4.4. My regular mailer is being... cranky... so please excuse the attachment... -- Jarod Wilson [email protected] ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ Kino-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/kino-dev
dvgrab-3.3-fix-gcc-4.4-build.patch
(text/plain, 663 B)
diff -Narup dvgrab-3.2.orig/error.cc dvgrab-3.2/error.cc --- dvgrab-3.2.orig/error.cc 2007-07-06 15:04:24.000000000 -0400 +++ dvgrab-3.2/error.cc 2009-02-03 14:29:29.395277495 -0500 @@ -32,6 +32,7 @@ #include <iostream> #include <sstream> #include <iomanip> +#include <cstdio> using std::ostringstream; using std::string; diff -Narup dvgrab-3.2.orig/smiltime.cc dvgrab-3.2/smiltime.cc --- dvgrab-3.2.orig/smiltime.cc 2008-07-21 23:33:35.000000000 -0400 +++ dvgrab-3.2/smiltime.cc 2009-02-03 14:28:55.540346200 -0500 @@ -27,6 +27,7 @@ #include <iostream> #include <iomanip> #include <sstream> +#include <cstdio> #include <stdlib.h> #include <math.h>