aMule Forum

English => Multiplatform => Mac OSX => Topic started by: mirko.g on December 30, 2011, 10:51:54 AM

Title: Building aMule 2.3.1 on Snow Leopard
Post by: mirko.g 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
Title: Re: Building aMule 2.3.1 on Snow Leopard
Post by: Stu Redman 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.
Title: Re: Building aMule 2.3.1 on Snow Leopard
Post by: GonoszTopi 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).