On 05/05/2014 10:39 PM, Pierre Labastie wrote:
> Hi,
> 
> Run into the same error described in:
> http://gcc.gnu.org/ml/gcc/2014-01/msg00245.html
> 
> It seems that g++ does not allow anymore something that was allowed before,
> but I do not know how to fix. The above thread is not helpful, nor other
> places on the internet (there is also an opened gentoo bug, but no patch yet).
> 
> I guess the fix should be easy for somebody knowing C++ (I may try to look at
> textbooks, but I do not know C++ well)
> 
> Pierre
> 

With the attached patch and seds from the book I was able to build it
just fine.

-- 
Note: My last name is not Krejzi.
diff -Naur a/src/core/archive.cpp b/src/core/archive.cpp
--- a/src/core/archive.cpp	2011-11-21 17:06:56.000000000 +0100
+++ b/src/core/archive.cpp	2014-05-06 00:20:21.066705814 +0200
@@ -886,8 +886,7 @@
         catch( eFSServices& e)
           {
             TSTRING errStr = TSS_GetString( cCore, core::STR_BAD_TEMPDIRECTORY );
-            eArchiveOpen e(strTempFile, errStr);
-            throw e;
+            throw ( eArchiveOpen(strTempFile, errStr) );
           }
       }
     ///////////////////////////////////////////////////////////////////////////////
@@ -918,8 +917,7 @@
   }//try
   catch (eFile& fileError) {
     TSTRING errStr = TSS_GetString( cCore, core::STR_BAD_TEMPDIRECTORY );
-    eArchiveOpen e(strTempFile, errStr);
-    throw e;
+    throw ( eArchiveOpen(strTempFile, errStr) );
   }
 
   ///////////////////////////////////////////////////////////////////////////////
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to