net-misc/asterisk (Asterisk PBX) now has version 0.7.1 available. Reproducible: Always Steps to Reproduce:
Created attachment 24878 [details] ebuild, manifest, new Makefile patch. ie: the whole directory. The ebuild attached here is very sketchy. I did not take a lot of time trying to make sure it would work. It does, however, work on my system. Things I have changed from 0.5.0 ebuild: - inherit "webapp" instead of "webapp-apache". I'm fairly certain that this is wrong, but the webapp-apache eclass contains 'DEPEND="${DEPEND} net-www/apache"', and I did not want to install apache. - Updated asterisk-0.7.1-Makefile-samples.patch to apply exactly the same changes to the new Makefile - Remove asterisk-0.5.0-makefile-fix.diff, as these fixes appear to have been merged into the Makefile Thanks, Russell
Seems to require a newer version of zaptel than 0.7.0? I guess the newer 0.8.0? gcc -c -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE -O3 -march=pentium4 -funroll-loops -pipe -march=i686 -DZAPTEL_OPTIMIZATIONS -DASTERISK_VERSION=\"0.7.1\" -DINSTALL_PREFIX=\"\" -DASTETCDIR=\"/etc/asterisk\" -DASTLIBDIR=\"/usr/lib/asterisk\" -DASTVARLIBDIR=\"/var/lib/asterisk\" -DASTVARRUNDIR=\"/var/run\" -DASTSPOOLDIR=\"/var/spool/asterisk\" -DASTLOGDIR=\"/var/log/asterisk\" -DASTCONFPATH=\"/etc/asterisk/asterisk.conf\" -DASTMODDIR=\"/usr/lib/asterisk/modules\" -DASTAGIDIR=\"/var/lib/asterisk/agi-bin\" -DBUSYDETECT_MARTIN -DNEW_PRI_HANGUP -Wno-missing-prototypes -Wno-missing-declarations -DZAPATA_PRI -DIAX_TRUNKING -DCRYPTO -fPIC -o chan_zap.o chan_zap.c chan_zap.c: In function `zt_train_ec': chan_zap.c:1106: `ZT_ECHOTRAIN' undeclared (first use in this function) chan_zap.c:1106: (Each undeclared identifier is reported only once chan_zap.c:1106: for each function it appears in.) chan_zap.c: In function `do_monitor': chan_zap.c:4932: `ZT_ONHOOKTRANSFER' undeclared (first use in this function) make[1]: *** [chan_zap.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/asterisk-0.7.1/work/asterisk-0.7.1/channels' make: *** [subdirs] Error 1 !!! ERROR: net-misc/asterisk-0.7.1 failed. !!! Function src_compile, Line 73, Exitcode 2 !!! Make failed
I'd guess this would be the case. Whilst I would love to help out and update the ebuild, it seems that more than just zero work is required, whilst the ebuild says that kernel 2.6 isn't supported by zaptel-0.7.0, the README.Linux26 file in the zaptel-0.8.0 tarball says: ---- 8<----- To build for Linux 2.6, first you must be sure that you have a symlink to your linux-2.6 sources in /usr/src/linux-2.6 and then you can type: # make linux26 # make install ---- 8<----- All in all, this means actual work. Building asterisk with USE="noiax nopri nozaptel" does the trick for me :P
the samples makefile patch isn't needed anymore (at least in asterisk-0.7.2) they've cleaned up some parts of the makefile and it works now w/o the patch
I just tried and failed to successfully emerge 0.7.2: bash-2.05b# ACCEPT_KEYWORDS="~x86" emerge -pv asterisk These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild N ] net-misc/asterisk-0.7.2 +alsa +doc +gtk -mmx +mysql -noiax -nopri -nozaptel -vhosts -vhosts 0 kB Total size of downloads: 0 kB Failure message: gcc -c -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE -mcpu=athlon-xp -O3 -pipe -march=i686 -DZAPTEL_OPTIMIZATIONS -DASTERISK_VERSION=\"0.7.2\" -DINSTALL_PREFIX=\"\" -DASTETCDIR=\"/etc/asterisk\" -DASTLIBDIR=\"/usr/lib/asterisk\" -DASTVARLIBDIR=\"/var/lib/asterisk\" -DASTVARRUNDIR=\"/var/run\" -DASTSPOOLDIR=\"/var/spool/asterisk\" -DASTLOGDIR=\"/var/log/asterisk\" -DASTCONFPATH=\"/etc/asterisk/asterisk.conf\" -DASTMODDIR=\"/usr/lib/asterisk/modules\" -DASTAGIDIR=\"/var/lib/asterisk/agi-bin\" -DBUSYDETECT_MARTIN -DNEW_PRI_HANGUP -Wno-missing-prototypes -Wno-missing-declarations -DIAX_TRUNKING -DCRYPTO -fPIC -o chan_zap.o chan_zap.c chan_zap.c: In function `zt_train_ec': chan_zap.c:1113: error: `ZT_ECHOTRAIN' undeclared (first use in this function) chan_zap.c:1113: error: (Each undeclared identifier is reported only once chan_zap.c:1113: error: for each function it appears in.) chan_zap.c: In function `do_monitor': chan_zap.c:5038: error: `ZT_ONHOOKTRANSFER' undeclared (first use in this function) chan_zap.c: In function `__unload_module': chan_zap.c:7168: warning: unused variable `i' make[1]: *** [chan_zap.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/asterisk-0.7.2/work/asterisk-0.7.2/channels' make: *** [subdirs] Error 1 !!! ERROR: net-misc/asterisk-0.7.2 failed. !!! Function src_compile, Line 56, Exitcode 2 !!! Make failed emerge info data: Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.22-gentoo-r7) ================================================================= System uname: 2.4.22-gentoo-r7 i686 AMD Athlon(tm) XP Gentoo Base System version 1.4.3.13 Autoconf: sys-devel/autoconf-2.58 Automake: sys-devel/automake-1.7.7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-mcpu=athlon-xp -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/env.d" CXXFLAGS="-mcpu=athlon-xp -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="X Xaw3d alsa apm arts avi berkdb bonobo cdr crypt cups doc encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml guile imlib java jpeg kde kerberos krb4 ldap libg++ libwww mad mikmod motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sasl sdl slang spell ssl svga tcltk tcpd tetex truetype x86 xml2 xmms xv zlib" Anyone know how to solve this problem? Anyone have asterisk running on a gentoo box? Thanks. Kevin <gentoo@gnosys.biz>
asterisk-0.7.2 + required zaptel/zapata versions are in the tree now
Connecting to ftp.asterisk.org[216.207.245.2]:21... connected. Logging in as anonymous ... Logged in! ==> SYST ... done. ==> PWD ... done. ==> TYPE I ... done. ==> CWD /pub/telephony/zaptel ... done. ==> PASV ... done. ==> RETR zaptel-0.8.1.tar.gz ... No such file `zaptel-0.8.1.tar.gz'. !!! Couldn't download zaptel-0.8.1.tar.gz. Aborting.
fixed in cvs