aMule Forum

English => Compilation problems => Topic started by: devilman on October 03, 2011, 08:42:19 PM

Title: aMule compiling error on Mac OS X 10.7
Post by: devilman on October 03, 2011, 08:42:19 PM
Hi guys,

I'm trying to compile aMule on Mac OS X 10.7 but I get this error in aMule RC2 source and in aMule SVN:

Code: [Select]
MuleDebug.cpp: In function ‘void OnUnhandledException()’:
MuleDebug.cpp:81: error: invalid use of incomplete type ‘struct std::type_info’
<built-in>:0: error: forward declaration of ‘struct std::type_info’
make[4]: *** [MuleDebug.o] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Why? depends on what?
Title: Re: aMule compiling error on Mac OS X 10.7
Post by: GonoszTopi on October 05, 2011, 08:12:01 PM
I'd like to see whether inserting
Code: [Select]
#include <typeinfo> near the top of MuleDebug.cpp solves the problem or not.
Title: Re: aMule compiling error on Mac OS X 10.7
Post by: devilman on October 10, 2011, 04:01:10 PM
I'd like to see whether inserting
Code: [Select]
#include <typeinfo> near the top of MuleDebug.cpp solves the problem or not.

This problem was solved, but now I have a new one:
Code: [Select]
ld: warning: ignoring file onlinesig.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file linuxmon.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file wxcas.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file wxcasprint.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file wxcasframe.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file wxcasprefs.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file wxcascte.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file wxcaspix.o, file was built for unsupported file format which is not the architecture being linked (i386)
Undefined symbols for architecture i386:
  "_main", referenced from:
      start in crt1.10.6.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
make[5]: *** [wxcas] Error 1
make[4]: *** [all-recursive] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Title: Re: aMule compiling error on Mac OS X 10.7
Post by: GonoszTopi on October 31, 2011, 10:36:15 PM
I bet something is really screwed up there.

First of all, the first error shouldn't happen at all (specifying the return type of a function without declaring that type? or the MacOSX version returns something different?). Second, seems like the object files are built for ppc but the linker wants to link an i386 executable. Or you use a compiler not compatible with the system linker. Or the other way around.

I'd check whether the compiler, linker and the system libraries are compatible with each other.