Hello,
At 21:59 +0200 on 2014-4-12 Martin Costabel wrote:
>
> That configure script is 10 years old, from a time when iostream.h was
> still a valid C++ header file. It does
>
> #include <iostream.h>
> #include <fstream.h>
>
> and thinks the resulting error message about iostream.h not found means
> ios::binary is not available. The fix is to patch the configure script
> (or acinclude.m4 and then run autoreconf) so that it #includes the right
> iostream and fstream headers.
Ah yes, I should have thought about this one... The following patch
does it for me, though I am not sure whether this is the best way to
go about it:
------ libsidplay.diff begins ------
diff -Pur libsidplay-olde/libsidplay.info libsidplay/libsidplay.info
--- libsidplay-olde/libsidplay.info 2014-04-12 17:23:08.000000000 -0400
+++ libsidplay/libsidplay.info 2014-04-12 17:22:37.000000000 -0400
@@ -1,6 +1,8 @@
Package: libsidplay
Version: 1.36.59
-Revision: 1001
+Revision: 1002
+PatchFile: %n.patch
+PatchFile-MD5: ccfbfa50a0e36e5e40da75676fe596fd
GCC: 4.0
Depends: %N-shlibs (= %v-%r)
BuildDependsOnly: true
diff -Pur libsidplay-olde/libsidplay.patch libsidplay/libsidplay.patch
--- libsidplay-olde/libsidplay.patch 1969-12-31 19:00:00.000000000 -0500
+++ libsidplay/libsidplay.patch 2014-04-12 17:22:37.000000000 -0400
@@ -0,0 +1,21 @@
+diff -Pur libsidplay-1.36.59-orig/configure libsidplay-1.36.59/configure
+--- libsidplay-1.36.59-orig/configure 2004-08-17 07:34:55.000000000 -0400
++++ libsidplay-1.36.59/configure 2014-04-12 16:54:26.000000000 -0400
+@@ -2869,14 +2869,14 @@
+ cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h. */
+
+-#include <iostream.h>
+-#include <fstream.h>
++#include <iostream>
++#include <fstream>
+
+ int
+ main ()
+ {
+
+-ifstream myTest("test",ios::in|ios::binary);
++std::ifstream myTest("test",std::ios::in|std::ios::binary);
+
+ ;
+ return 0;
------ libsidplay.diff ends ------
Many thanks!
Cheers,
Stefan
--
If it was so, it might be; and if it were so, it would be; but as it
isn't, it ain't. That's logic. --Lewis Carroll, Through the Looking-Glass
No HTML emails and proprietary attachments please <http://bruda.ca/ascii>
------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Fink-users mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users