aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Building aMule 2.3.1 on Snow Leopard  (Read 2178 times)

mirko.g

  • Global Moderator
  • Full Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 188
  • Grattatio pallorum omnia mala repellent!
    • Personal WebSite
Building aMule 2.3.1 on Snow Leopard
« on: December 30, 2011, 10:51:54 AM »

Heya!!! How are you all?
Your Mac favorite compiler is back!   ;D
I'm trying to build aMule but I'm facing this problem:

Code: [Select]
make  all-recursive
Making all in intl
make[2]: Nothing to be done for `all'.
Making all in po
make[2]: Nothing to be done for `all'.
Making all in docs
Making all in man
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all-am'.
Making all in src
Making all in libs
Making all in common
make[4]: Nothing to be done for `all'.
Making all in ec
make  all-recursive
Making all in cpp
make  all-am
make[7]: Nothing to be done for `all-am'.
make[6]: Nothing to be done for `all-am'.
make[4]: Nothing to be done for `all-am'.
Making all in utils
Making all in cas
Making all in docs
make[5]: Nothing to be done for `all'.
gcc -g -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0 -O2 -I/opt/local/include  -lpthread -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib   -o cas cas-cas.o cas-configfile.o cas-functions.o cas-graphics.o cas-html.o cas-lines.o  -lgd -lXpm -lX11 -ljpeg -lfontconfig -lfreetype -lpng -lz -liconv  
Undefined symbols:
  "_CFURLGetFileSystemRepresentation", referenced from:
      _get_path in cas-functions.o
  "_CFRelease", referenced from:
      _get_path in cas-functions.o
  "_FSFindFolder", referenced from:
      _get_path in cas-functions.o
  "_CFURLCreateFromFSRef", referenced from:
      _get_path in cas-functions.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[5]: *** [cas] 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

Dunno if it has to do with this problem, but I noticed that  arch_flags="-arch i386" is not working anymore in aMule configuration as I keep getting:

Quote
Configured aMule 2.3.1 for 'x86_64-apple-darwin10.8.0'.

while using build=i386 I get

Quote
Configured aMule 2.3.1 for 'i386-pc-none'.

Thanks in advance
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3830
  • Engines screaming
Re: Building aMule 2.3.1 on Snow Leopard
« Reply #1 on: December 30, 2011, 01:37:39 PM »

Nice to have you back!  :D
I'd start with a configure that builds only the monolith and work my way from there. No idea if cas is supposed to build on Mac or not. You probably don't need it anyway.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 164
  • Offline Offline
  • Posts: 2714
Re: Building aMule 2.3.1 on Snow Leopard
« Reply #2 on: January 01, 2012, 03:08:19 PM »

Heya!!! How are you all?
Your Mac favorite compiler is back!   ;D
I'm trying to build aMule but I'm facing this problem:

Code: [Select]
make  all-recursive
Making all in intl
make[2]: Nothing to be done for `all'.
Making all in po
make[2]: Nothing to be done for `all'.
Making all in docs
Making all in man
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all-am'.
Making all in src
Making all in libs
Making all in common
make[4]: Nothing to be done for `all'.
Making all in ec
make  all-recursive
Making all in cpp
make  all-am
make[7]: Nothing to be done for `all-am'.
make[6]: Nothing to be done for `all-am'.
make[4]: Nothing to be done for `all-am'.
Making all in utils
Making all in cas
Making all in docs
make[5]: Nothing to be done for `all'.
gcc -g -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0 -O2 -I/opt/local/include  -lpthread -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib   -o cas cas-cas.o cas-configfile.o cas-functions.o cas-graphics.o cas-html.o cas-lines.o  -lgd -lXpm -lX11 -ljpeg -lfontconfig -lfreetype -lpng -lz -liconv 
Undefined symbols:
  "_CFURLGetFileSystemRepresentation", referenced from:
      _get_path in cas-functions.o
  "_CFRelease", referenced from:
      _get_path in cas-functions.o
  "_FSFindFolder", referenced from:
      _get_path in cas-functions.o
  "_CFURLCreateFromFSRef", referenced from:
      _get_path in cas-functions.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[5]: *** [cas] 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

You might need to add
Code: [Select]
-framework CoreServices to your linker flags.

Dunno if it has to do with this problem, but I noticed that  arch_flags="-arch i386" is not working anymore in aMule configuration as I keep getting:

Quote
Configured aMule 2.3.1 for 'x86_64-apple-darwin10.8.0'.

while using build=i386 I get

Quote
Configured aMule 2.3.1 for 'i386-pc-none'.

Thanks in advance

--build=i386-apple-darwin10.8.0 should work, but you still need to pass the right compiler flags (in CFLAGS and CXXFLAGS) to make your compiler produce code for i386, unless you have i386-apple-darwin10.8.0-gcc in your path. (Or something like that).
Logged
concordia cum veritate