hey,im having some troubles compiling in fc4 w/ gcc 4.0.1 2005072.. i ran configure and everything went well... then i ran make and every seemed to be going well but then i got this error after about 15 seconds of stuff working properly:
gnushare.h:67: error: ISO C++ forbids declaration of MShareThread with no typegnushare.h:67: error: expected ; before * token
make[3]: *** [controller.o] Error 1
make[3]: Leaving directory `/home/c0ldshadow/targz/mutella-0.4.5.tar.gz_FILES/mutella-0.4.5/mutella'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/c0ldshadow/targz/mutella-0.4.5.tar.gz_FILES/mutella-0.4.5/mutella'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/c0ldshadow/targz/mutella-0.4.5.tar.gz_FILES/mutella-0.4.5'
make: *** [all] Error 2
[c0ldshadow@localhost mutella-0.4.5]$
any advice would be greatly appreciate, regards,--c0ldshadow
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have also this problem when compiling with gcc 4.0.2 20050901 (Suse Linux). How could I compile mutella with gcc 4.0.x. Using gcc 3.x is just a work around.
controller.cpp:460:4: warning: #warning add a proper knownDB entry
gnushare.h:67: error: ISO C++ forbids declaration of ‘MShareThread’ with no type
gnushare.h:67: error: expected ‘;’ before ‘*’ token
make[3]: *** [controller.o] Error 1
make[3]: Leaving directory `/usr/local/src/mutella-0.4.5/mutella'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/mutella-0.4.5/mutella'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/mutella-0.4.5'
make: *** [all] Error 2
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
copy the above into mutella-0.4.5-gcc41-1.patch, have the file in the same directory as the source code and issue the following command
patch -Np1 -i mutella-0.4.5-gcc41-1.patch
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have this error to :(
fedora 5
try compile on gcc 3.4.5, 3.2.3, 4.1.0 and patch gnushare.h -> #include "mthread.h" but all time this error. may be try install early version?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Unfortunately the forum malformed the code, it needs to be precisely aligned so I've uploaded it to my server where you can download it.
Grab it from the following location;
hey,im having some troubles compiling in fc4 w/ gcc 4.0.1 2005072.. i ran configure and everything went well... then i ran make and every seemed to be going well but then i got this error after about 15 seconds of stuff working properly:
gnushare.h:67: error: ISO C++ forbids declaration of MShareThread with no typegnushare.h:67: error: expected ; before * token
make[3]: *** [controller.o] Error 1
make[3]: Leaving directory `/home/c0ldshadow/targz/mutella-0.4.5.tar.gz_FILES/mutella-0.4.5/mutella'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/c0ldshadow/targz/mutella-0.4.5.tar.gz_FILES/mutella-0.4.5/mutella'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/c0ldshadow/targz/mutella-0.4.5.tar.gz_FILES/mutella-0.4.5'
make: *** [all] Error 2
[c0ldshadow@localhost mutella-0.4.5]$
any advice would be greatly appreciate, regards,--c0ldshadow
I think with gcc 3.x (x = 3, 4 or 5) it should work properly. The gcc guys apparently have made a few drastic changes in gcc 4.x.
I have also this problem when compiling with gcc 4.0.2 20050901 (Suse Linux). How could I compile mutella with gcc 4.0.x. Using gcc 3.x is just a work around.
controller.cpp:460:4: warning: #warning add a proper knownDB entry
gnushare.h:67: error: ISO C++ forbids declaration of ‘MShareThread’ with no type
gnushare.h:67: error: expected ‘;’ before ‘*’ token
make[3]: *** [controller.o] Error 1
make[3]: Leaving directory `/usr/local/src/mutella-0.4.5/mutella'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/mutella-0.4.5/mutella'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/mutella-0.4.5'
make: *** [all] Error 2
The following patch will correct this
diff -Nur mutella-0.4.5-orig/mutella/gnushare.h mutella-0.4.5/mutella/gnushare.h
--- mutella-0.4.5-orig/mutella/gnushare.h 2002-11-15 20:22:57.000000000 +0000
+++ mutella-0.4.5/mutella/gnushare.h 2006-01-25 20:44:18.364621500 +0000
@@ -26,6 +26,7 @@
#include "mthread.h"
class MGnuDirector;
+class MShareThread;
class MGnuShare
{
copy the above into mutella-0.4.5-gcc41-1.patch, have the file in the same directory as the source code and issue the following command
patch -Np1 -i mutella-0.4.5-gcc41-1.patch
I have this error to :(
fedora 5
try compile on gcc 3.4.5, 3.2.3, 4.1.0 and patch gnushare.h -> #include "mthread.h" but all time this error. may be try install early version?
Unfortunately the forum malformed the code, it needs to be precisely aligned so I've uploaded it to my server where you can download it.
Grab it from the following location;
http://web01.slackhost.net/~admin74/patches/mutella-0.4.5-gcc41-1.patch
Sorry, but early version give more error
Im again here :)
Sorry, but compile is OK! Im only patch gnushare.h handmade -> class MShareThread; and compile is complete!