aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: aMule compiling error on Mac OS X 10.7  (Read 3698 times)

devilman

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 28
aMule compiling error on Mac OS X 10.7
« 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?
Logged
Io sono il demone nato per eliminare voi tutti dalla faccia della Terra. Io sono DEVILMAN!

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: aMule compiling error on Mac OS X 10.7
« Reply #1 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.
Logged
concordia cum veritate

devilman

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 28
Re: aMule compiling error on Mac OS X 10.7
« Reply #2 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
Logged
Io sono il demone nato per eliminare voi tutti dalla faccia della Terra. Io sono DEVILMAN!

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: aMule compiling error on Mac OS X 10.7
« Reply #3 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.
Logged
concordia cum veritate