Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 22384 - getting aspell to compile using gcc 3.3
Summary: getting aspell to compile using gcc 3.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: John Mylchreest (RETIRED)
URL:
Whiteboard:
Keywords:
: 21813 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-06-07 01:22 UTC by Travis Tilley (RETIRED)
Modified: 2003-06-30 15:00 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Travis Tilley (RETIRED) gentoo-dev 2003-06-07 01:22:36 UTC
apell requires some pretty minor patching in order to compile using gcc 3.3. The first is to 
include an additional required header: 
 
 
--- prog/checker_string.cpp 
+++ prog/checker_string.cpp     2003/02/25 08:02:15 
@@ -9,6 +9,7 @@ 
 #include "document_checker.hpp" 
 #include "copy_ptr-t.hpp" 
 #include "asc_ctype.hpp" 
+#include <assert.h> 
 
 static int get_line(FILE * in, CharVector & d) 
 { 
 
 
 
and the second is to get rid of a pesky compiler error: 
 
 
--- common/posib_err.cpp 
+++ common/posib_err.cpp 
@@ -74,7 +74,7 @@ 
   { 
     assert(err_ != 0); 
     assert(err_->refcount == 1); 
-    char * & m = const_cast<char *>(err_->err->mesg); 
+    char * m = const_cast<char *>(err_->err->mesg); 
     unsigned int orig_len = strlen(m); 
     unsigned int new_len = fn.size() + 2 + orig_len + 1; 
     char * s = new char[new_len]; 
 
 
It seems to me most of the gcc 3.3 related compile errors require quick one-line edits more 
often than not. I'm going to continue with gcc 3.3 fun tomorrow and submit any other patches 
needed to compile an entire system with it.
Comment 1 John Mylchreest (RETIRED) gentoo-dev 2003-06-11 14:42:46 UTC
this bug has now been resolved and an updated ebuild committed to portage.
please give 15 minutes or so from now, emerge sync, and try merging the new aspell.

if there are still issues, please mail me.

Thanks :)
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2003-06-30 15:00:41 UTC
*** Bug 21813 has been marked as a duplicate of this bug. ***