Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65416 - net-misc/asterisk-1.0.0 compilation fails on chan_zap.o
Summary: net-misc/asterisk-1.0.0 compilation fails on chan_zap.o
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Stefan Knoblich (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-26 09:23 UTC by Salim Fadhley
Modified: 2004-10-24 09:18 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Salim Fadhley 2004-09-26 09:23:47 UTC
Emerge of Asterisk 1.0.0 fails as follows:

chan_zap.c:9449: error: `PRI_NSF_SDN' undeclared (first use in this function)
chan_zap.c:9451: error: `PRI_NSF_MEGACOM' undeclared (first use in this function)
chan_zap.c:9453: error: `PRI_NSF_ACCUNET' undeclared (first use in this function)
chan_zap.c:9455: error: `PRI_NSF_NONE' undeclared (first use in this function)
make[1]: *** [chan_zap.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/asterisk-1.0.0/work/asterisk-1.0.0/channels'
make: *** [subdirs] Error 1

!!! ERROR: net-misc/asterisk-1.0.0 failed.
!!! Function src_compile, Line 63, Exitcode 2
!!! Make failed

chalfont sal # emerge info
Portage 2.0.50-r11 (default-x86-1.4, gcc-3.3.4, glibc-2.3.3.20040420-r1, 2.6.6)
=================================================================
System uname: 2.6.6 i686 Intel(R) Pentium(R) 4 CPU 2.00GHz
Gentoo Base System version 1.4.16
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache sandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org 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.uk.gentoo.org/gentoo-portage"
USE="X aalib alsa apache2 apm arts artswrappersuid avi berkdb bitmap-fonts bluetooth cdr chroot crypt cups curl dedicateddvd dvdr emacs emacs-w3 encode esd ethereal expat firebird flash foomaticdb foreign-package freetype gd gdbm gif gpm gtk gtk2 imap imlib innodb jabber java jpeg justify jython kde ldap libg++ libwww mad maildir mikmod mmx mpeg mpeg4 mysql nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses nls nopri nozaptel oggvorbis opengl openssh oss pam pdflib perl php png postgres python qt quicktime readline regexp samba sdl slang sox spell ssl svga tcltk tcpd tiff truetype type1 usb virus-scan wmf x86 xfs xine xml xml2 xmms xosd xprint xv xvid yahoo zeo zlib"
Comment 1 Salim Fadhley 2004-09-26 10:22:45 UTC
When I changed my use-flags to allow zaptel and pri the compile worked fine. This should narrow down what needs to be tested.
Comment 2 Stefan Knoblich (RETIRED) gentoo-dev 2004-09-26 14:11:45 UTC
does one of these files exist?: /usr/include/linux/zaptel.h or /usr/local/include/zaptel.h

if yes, please remove zaptel / libpri packages from your system since asterisk
will try to build chan_zap.so, even if nozaptel / nopri is set  (asterisk's build system doesn't care about the use-flags)
Comment 3 Stefan Knoblich (RETIRED) gentoo-dev 2004-10-24 09:18:04 UTC
need feedback