Opened 13 years ago
Closed 10 years ago
#31497 closed update (duplicate)
asterisk: update to 1.8.7.0
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | andrew@…, cedayiv@… | |
Port: | asterisk |
Description
asterisk should probably be updated to 1.8.7.0
Attachments (1)
Change History (12)
comment:1 Changed 13 years ago by andrew@…
comment:2 Changed 13 years ago by andrew@…
Given the statements made in https://issues.asterisk.org/jira/browse/ASTERISK-18213 I would highly recommend this change, and ditching my previous suggestion.
Currently 1.8.7 does not have the required support for Lion, but the patches required could be manually applied, or this could be held until the release of 1.8.8, or a combination of both.
comment:4 Changed 13 years ago by stefan.van.der.eijk@…
I'm trying to build the current 1.8 SVN.
I needed to add "use_parallel_build no" to the Portfile to get over this:
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_Users_stefan_ports_net_asterisk/asterisk/work/1.8' :info:build Building Documentation For: channels pbx apps codecs formats cdr cel bridges funcs tests main res addons :info:build menuselect/menuselect --check-deps menuselect.makeopts :info:build make: menuselect/menuselect: No such file or directory :info:build make: *** [menuselect.makeopts] Error 1 :info:build make: Leaving directory `/opt/local/var/macports/build/_Users_stefan_ports_net_asterisk/asterisk/work/1.8' :info:build shell command " cd "/opt/local/var/macports/build/_Users_stefan_ports_net_asterisk/asterisk/work/1.8" && /usr/bin/make -j2 -w all " returned error 2 :error:build Target org.macports.build returned: shell command failed (see log for details)
but am now bumping against:
:info:build [LD] chan_iax2.o iax2-parser.o iax2-provision.o -> chan_iax2.so :info:build ld: duplicate symbol _ast_tvdiff_sec in iax2-parser.o and chan_iax2.o for architecture x86_64 :info:build clang: error: linker command failed with exit code 1 (use -v to see invocation) :info:build make[1]: *** [chan_iax2.so] Error 1 :info:build make: *** [channels] Error 2
comment:5 Changed 13 years ago by stefan.van.der.eijk@…
Opened a ticket with digium a while back: https://issues.asterisk.org/jira/browse/ASTERISK-18744
comment:6 follow-up: 8 Changed 12 years ago by cedayiv@…
I couldn't build Asterisk with MacPorts either. For what it's worth, I was able to smoothly build Asterisk 10.7.1 by hand this morning. I am running OS X 10.8.1 Mountain Lion with Xcode 4.4.1.
Here's what I did, following along to some instructions I saw on the digium.com forums:
- Use MacPorts to build all the dependencies for asterisk 1.6.2 as shown by:
port deps asterisk
- Download the 10.7.1 tarball from asterisk.org
./configure --host=x86_64-darwin
make menuselect
- Under Resource Modules, unselect the res_snmp module and save changes.
sudo make
sudo make install
- Add /usr/local/sbin to my path
Hope this helps. I'm not sure whether steps 4 & 5 were necessary.
comment:8 Changed 10 years ago 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:
- Use MacPorts to build all the dependencies for asterisk 1.6.2 as shown by:
port deps asterisk
- Download the 10.7.1 tarball from asterisk.org
./configure --host=x86_64-darwin
make menuselect
- Under Resource Modules, unselect the res_snmp module and save changes.
sudo make
sudo make install
- Add /usr/local/sbin to my path
Hope this helps. I'm not sure whether steps 4 & 5 were necessary.
comment:9 Changed 10 years ago by mf2k (Frank Schima)
Cc: | marc.blanchet@… removed |
---|---|
Owner: | changed from mr_bond@… to marc.blanchet@… |
Assigning to current maintainer. See #44845.
comment:10 Changed 10 years ago by mf2k (Frank Schima)
Owner: | changed from marc.blanchet@… to macports-tickets@… |
---|
This port no longer has a maintainer. See #46360.
comment:11 Changed 10 years ago by mf2k (Frank Schima)
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Let move this to #43233 where there is a patch.
It might be worth following the standard Asterisk process of having multiple Asterisk versions available - e.g. asterisk16 and asterisk18