Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 40256 - net-misc/asterisk now has version 0.7.1
Summary: net-misc/asterisk now has version 0.7.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement
Assignee: Stefan Knoblich (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-03 02:07 UTC by Russell Cloran
Modified: 2004-03-17 12:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild, manifest, new Makefile patch. ie: the whole directory. (asterisk-0.7.1.tar.bz2,2.92 KB, application/octet-stream)
2004-02-03 02:13 UTC, Russell Cloran
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Russell Cloran 2004-02-03 02:07:51 UTC
net-misc/asterisk (Asterisk PBX) now has version 0.7.1 available. 

Reproducible: Always
Steps to Reproduce:
Comment 1 Russell Cloran 2004-02-03 02:13:58 UTC
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
Comment 2 Rubberneck 2004-02-03 21:41:47 UTC
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

Comment 3 Russell Cloran 2004-02-04 02:13:43 UTC
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
Comment 4 Stefan Knoblich (RETIRED) gentoo-dev 2004-02-12 17:19:04 UTC
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
Comment 5 Kevin 2004-03-16 08:30:05 UTC
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>
Comment 6 Stefan Knoblich (RETIRED) gentoo-dev 2004-03-16 08:59:05 UTC
asterisk-0.7.2 + required zaptel/zapata versions are in the tree now
Comment 7 Kevin 2004-03-16 09:17:57 UTC
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.
Comment 8 Stefan Knoblich (RETIRED) gentoo-dev 2004-03-17 12:48:12 UTC
fixed in cvs