[MacPorts] #31497: asterisk: update to 1.8.7.0
MacPorts
noreply at macports.org
Sun Nov 23 20:07:24 PST 2014
#31497: asterisk: update to 1.8.7.0
---------------------------+-----------------------
Reporter: ryandesign@… | Owner: mr_bond@…
Type: update | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: asterisk |
---------------------------+-----------------------
Comment (by i.m.9l4dy5@…):
Hey,
I’m trying these steps and it has been successful till step #5.
However at #6 I’m getting error messages, all concerning code syntax in
the compat.h file…
$ sudo make
Generating embedded module rules ...
[CC] astdb2sqlite3.c -> astdb2sqlite3.o
clang: warning: argument unused during compilation: '-fnested-functions'
In file included from astdb2sqlite3.c:30:
In file included from
/Users/iii/Desktop/asterisk-13.0.1/include/asterisk.h:27:
/Users/iii/Desktop/asterisk-13.0.1/include/asterisk/compat.h:97:10: error:
expected ')'
uint64_t htonll(uint64_t host64);
^
/usr/include/sys/_endian.h:141:25: note: expanded from macro 'htonll'
#define htonll(x) __DARWIN_OSSwapInt64(x)
^
/usr/include/libkern/_OSByteOrder.h:78:30: note: expanded from macro
'__DARWIN_OSSwapInt64'
(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) :
_OSSwapInt64(x))
^
/Users/iii/Desktop/asterisk-13.0.1/include/asterisk/compat.h:97:10: note:
to match this '('
/usr/include/sys/_endian.h:141:25: note: expanded from macro 'htonll'
#define htonll(x) __DARWIN_OSSwapInt64(x)
^
/usr/include/libkern/_OSByteOrder.h:78:5: note: expanded from macro
'__DARWIN_OSSwapInt64'
(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) :
_OSSwapInt64(x))
^
In file included from astdb2sqlite3.c:30:
In file included from
/Users/iii/Desktop/asterisk-13.0.1/include/asterisk.h:27:
/Users/iii/Desktop/asterisk-13.0.1/include/asterisk/compat.h:97:10: error:
conflicting types for
'__builtin_constant_p'
uint64_t htonll(uint64_t host64);
^
/usr/include/sys/_endian.h:141:25: note: expanded from macro 'htonll'
#define htonll(x) __DARWIN_OSSwapInt64(x)
^
/usr/include/libkern/_OSByteOrder.h:78:6: note: expanded from macro
'__DARWIN_OSSwapInt64'
(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) :
_OSSwapInt64(x))
^
/Users/iii/Desktop/asterisk-13.0.1/include/asterisk/compat.h:97:10: note:
'__builtin_constant_p' is a
builtin with type 'int ()'
/usr/include/sys/_endian.h:141:25: note: expanded from macro 'htonll'
#define htonll(x) __DARWIN_OSSwapInt64(x)
^
/usr/include/libkern/_OSByteOrder.h:78:6: note: expanded from macro
'__DARWIN_OSSwapInt64'
(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) :
_OSSwapInt64(x))
^
In file included from astdb2sqlite3.c:30:
In file included from
/Users/iii/Desktop/asterisk-13.0.1/include/asterisk.h:27:
/Users/iii/Desktop/asterisk-13.0.1/include/asterisk/compat.h:105:10:
error: expected ')'
uint64_t ntohll(uint64_t net64);
^
/usr/include/sys/_endian.h:140:25: note: expanded from macro 'ntohll'
#define ntohll(x) __DARWIN_OSSwapInt64(x)
^
/usr/include/libkern/_OSByteOrder.h:78:30: note: expanded from macro
'__DARWIN_OSSwapInt64'
(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) :
_OSSwapInt64(x))
^
/Users/iii/Desktop/asterisk-13.0.1/include/asterisk/compat.h:105:10: note:
to match this '('
/usr/include/sys/_endian.h:140:25: note: expanded from macro 'ntohll'
#define ntohll(x) __DARWIN_OSSwapInt64(x)
^
/usr/include/libkern/_OSByteOrder.h:78:5: note: expanded from macro
'__DARWIN_OSSwapInt64'
(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) :
_OSSwapInt64(x))
^
In file included from astdb2sqlite3.c:30:
In file included from
/Users/iii/Desktop/asterisk-13.0.1/include/asterisk.h:27:
/Users/iii/Desktop/asterisk-13.0.1/include/asterisk/compat.h:105:10:
error: conflicting types for
'__builtin_constant_p'
uint64_t ntohll(uint64_t net64);
^
/usr/include/sys/_endian.h:140:25: note: expanded from macro 'ntohll'
#define ntohll(x) __DARWIN_OSSwapInt64(x)
^
/usr/include/libkern/_OSByteOrder.h:78:6: note: expanded from macro
'__DARWIN_OSSwapInt64'
(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) :
_OSSwapInt64(x))
^
/Users/iii/Desktop/asterisk-13.0.1/include/asterisk/compat.h:97:10: note:
'__builtin_constant_p' is a
builtin with type 'int ()'
uint64_t htonll(uint64_t host64);
^
/usr/include/sys/_endian.h:141:25: note: expanded from macro 'htonll'
#define htonll(x) __DARWIN_OSSwapInt64(x)
^
/usr/include/libkern/_OSByteOrder.h:78:6: note: expanded from macro
'__DARWIN_OSSwapInt64'
(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) :
_OSSwapInt64(x))
^
4 errors generated.
make[1]: *** [astdb2sqlite3.o] Error 1
make: *** [utils] Error 2
Any ideas how I can fix this?
>
> Here's what I did, following along to some instructions I saw on the
digium.com forums:
> 1. Use MacPorts to build all the dependencies for asterisk 1.6.2 as
shown by: {{{ port deps asterisk }}}
> 2. Download the 10.7.1 tarball from asterisk.org
> 3. {{{ ./configure --host=x86_64-darwin }}}
> 4. {{{ make menuselect }}}
> 5. Under Resource Modules, unselect the res_snmp module and save
changes.
> 6. {{{ sudo make }}}
> 7. {{{ sudo make install }}}
> 8. Add /usr/local/sbin to my path
>
> Hope this helps. I'm not sure whether steps 4 & 5 were necessary.
--
Ticket URL: <https://trac.macports.org/ticket/31497#comment:8>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list