I'm trying to install Asterisk on my Macbook Pro (Intel Core i5) running Mavericks. Ideally I want to install version 1.8, because that's what's running on the server, but 11.7 is fine too.
After googling around I've tried many permutations of configure flags, but that strategy is not getting me anywhere.
I have Xcode 5.0.2. and the command line tools installed, 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=-O6
with OPTIMIZE=-Os
. This seems to have the same effect as CFLAGS=-mtune=generic
, namely preventing this error:
Generating embedded module rules ...
[CC] chan_agent.c -> chan_agent.o
error: invalid value '6' in '-O6'
The other option I'm using is --without-netsnmp
as suggested here because that module was throwing errors during the make process as well.
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 4
, as suggested here.
Two examples of 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'll either need actually understand what's going on or a "magic" solution.