[MacPorts] #31485: asterisk: invalid value '6' in '-O6'
MacPorts
noreply at macports.org
Tue Oct 4 04:25:27 PDT 2011
#31485: asterisk: invalid value '6' in '-O6'
--------------------------------+-------------------------------------------
Reporter: andrew@… | Owner: mr_bond@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.0.3
Keywords: clang | Port: asterisk
--------------------------------+-------------------------------------------
Comment(by andrew@…):
Still no joy. Compiles with the same error. Seems like this is probably an
Asterisk bug, and might be best addressed by them.
I've done some more investigating, and the following things seem to be
true.
The asterisk configure script is incorrectly deciding that Mac OSX does
not support weak_import, and so is not correctly defining
{{{
HAVE_ATTRIBUTE_weak_import
}}}
Manually defining this in include/asterisk/autoconfig.h once configure is
run succeeds. The correct thing to do here would be for someone to work
out why the configure script test for this issue does not actually work
successfully.
The code I added was:
{{{
#define HAVE_ATTRIBUTE_weak_import 1
}}}
In addition, you need to define
{{{
CONFIG_LDFLAGS=/usr/lib/bundle1.so
}}}
in the makeopts file. I'm assuming you can pass this option to the
configure script via environment variables or something, but not sure.
This was for Asterisk 1.8.7.0, and making these changes resulted in a
successful build of Asterisk, that actually works (test calls even
made...!!!!)
--
Ticket URL: <https://trac.macports.org/ticket/31485#comment:5>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list