I am trying to install Asterisk on my Macbook Pro (Intel Core i5) using Mavericks. Ideally, I want to install version 1.8, because what works on the server, but 11.7 is also good.
After googling around, I tried many permutations of configure checkboxes, but this strategy didn't get me anywhere.
I have Xcode 5.0.2. and command line tools, as well as gcc-4.8 via Homebrew:
brew tap homebrew/versions
brew install homebrew/versions/gcc48
Based on what I saw in this homebrew formula , I tried replacing OPTIMIZE=-O6with OPTIMIZE=-Os. This seems to have the same effect CFLAGS=-mtune=genericas, namely, preventing this error:
Generating embedded module rules ...
[CC] chan_agent.c -> chan_agent.o
error: invalid value '6' in '-O6'
Another option I'm using is --without-netsnmpas suggested here because this module also threw errors during the make process.
I also tried using the option --host=x86_64-darwin. I tried both with the default compiler and with CC=gcc-4.8.
I tried both make, and make -j 4as suggested here .
Two sample output (using version 11.7):
./configure --host=x86_64-darwin CC=gcc-4.8 CFLAGS=-mtune=generic
make -j 4
...
[CC] enum.c -> enum.o
enum.c: In function 'blr_txt':
enum.c:225:41: error: 'C_IN' undeclared (first use in this function)
ret = ast_search_dns(&context, domain, C_IN, T_TXT, txt_callback);
Using Os instead of O6
./configure --without-netsnmp
make
...
duplicate symbol _ast_tech_to_upper in:
chan_iax2.o
iax2-provision.o
duplicate symbol _ast_rq_is_int in:
chan_iax2.o
iax2-provision.o
ld: 90 duplicate symbols for architecture x86_64
I need to either understand what is happening, or a “magical” solution.