Can someone help me how to install Zaptel drivers on FEDORA 5? Is that impossible yet?
Thanks.
same as fedora core 4, i would assume…
download, decompress, make, make install…
if you’re getting an error, post it.
Tomcar
April 26, 2006, 6:38pm
4
I’ve tried both to install zaptel-1.2.5-14.1.rhfc5.at.i386.rpm and zaptel-1.2.5-14.1.rhfc5.at.src.rpm (from atrpms.net/dist/fc5/zaptel ).
When I try to run “genzaptelconf” in Asterisk@Home (2.8) it says:
STOPPING ASTERISK
Asterisk ended with exit status 0
Asterisk shutdown normally.
Asterisk Stopped
STOPPING FOP SERVER
-bash: line 1: 4077 Killed /var/www/html/panel/safe_opserver
FOP Server Stopped
Generating ‘/etc/zaptel.conf’
Generating ‘/etc/asterisk/zapata-auto.conf’
Notice: Configuration file is /etc/zaptel.conf
line 0: Unable to open master device ‘/dev/zap/ctl’
1 error(s) detected
Unloading zaptel hardware drivers:.
Removing zaptel module: ERROR: Module zaptel does not exist in /proc/modules
[FAILED]
Loading zaptel framework: FATAL: Module zaptel not found.
[FAILED]
Waiting for zap to come online…Error: missing /dev/zap!
SETTING FILE PERMISSIONS
Permissions OK
STARTING ASTERISK
Asterisk Started
STARTING FOP SERVER
FOP Server Started
No such command ‘zap’ (type ‘help’ for help)
Verbosity is at least 3
It says the same when booting the machine.
When I try to compile the source (i guess it’s located at /usr/src/zaptel?) i get a long list of errors.
At the beginning:
ZAPTELVERSION=“1.2.5” build_tools/make_version_h > version.h.tmp
if cmp -s version.h.tmp version.h ; then echo; else
mv version.h.tmp version.h ;
fi
rm -f version.h.tmp
/lib/modules/2.6.16-1.2096_FC5/build
make -C /lib/modules/2.6.16-1.2096_FC5/build SUBDIRS=/usr/src/zaptel XPPMOD= modules
make[1]: Entering directory `/usr/src/kernels/2.6.16-1.2096_FC5-i686’
CC [M] /usr/src/zaptel/zaptel.o
In file included from include/linux/mutex.h:14,
from include/linux/fs.h:220,
from include/linux/proc_fs.h:6,
from /usr/src/zaptel/zaptel.c:46:
include/linux/spinlock_types.h:27: error: conflicting types for âspinlock_tâ
include/linux/spinlock.h:91: error: previous declaration of âspinlock_tâ was here
In file included from include/linux/mutex.h:14,
from include/linux/fs.h:220,
from include/linux/proc_fs.h:6,
from /usr/src/zaptel/zaptel.c:46:
include/linux/spinlock_types.h:29:1: warning: “SPINLOCK_MAGIC” redefined
In file included from include/linux/capability.h:45,
from include/linux/sched.h:7,
from include/linux/module.h:10,
from /usr/src/zaptel/zaptel.c:45:
include/linux/spinlock.h:83:1: warning: this is the location of the previous definition
include/linux/spinlock_types.h:40: error: conflicting types for ârwlock_tâ
include/linux/spinlock.h:204: error: previous declaration of ârwlock_tâ was here
In file included from include/linux/mutex.h:14,
from include/linux/fs.h:220,
from include/linux/proc_fs.h:6,
from /usr/src/zaptel/zaptel.c:46:
include/linux/spinlock_types.h:47:1: warning: “SPIN_LOCK_UNLOCKED” redefined
In file included from include/linux/capability.h:45,
from include/linux/sched.h:7,
from include/linux/module.h:10,
from /usr/src/zaptel/zaptel.c:45:
include/linux/spinlock.h:92:1: warning: this is the location of the previous definition
In file included from include/linux/mutex.h:14,
from include/linux/fs.h:220,
from include/linux/proc_fs.h:6,
from /usr/src/zaptel/zaptel.c:46:
include/linux/spinlock_types.h:52:1: warning: “RW_LOCK_UNLOCKED” redefined
In file included from include/linux/capability.h:45,
from include/linux/sched.h:7,
from include/linux/module.h:10,
from /usr/src/zaptel/zaptel.c:45:
include/linux/spinlock.h:205:1: warning: this is the location of the previous definition
/usr/src/zaptel/zaptel.c: In function âzt_qevent_lockâ:
/usr/src/zaptel/zaptel.c:709: error: âspinlock_tâ has no member named âlockâ
/usr/src/zaptel/zaptel.c:709: error: âspinlock_tâ has no member named âbabbleâ
/usr/src/zaptel/zaptel.c:709: error: âspinlock_tâ has no member named âbabbleâ
/usr/src/zaptel/zaptel.c:709: error: âspinlock_tâ has no member named âmoduleâ
/usr/src/zaptel/zaptel.c:709: error: âspinlock_tâ has no member named âolineâ
/usr/src/zaptel/zaptel.c:709: warning: format â%sâ expects type âchar *â, but argument 6 has type âvoid *â
and it keeps saying the same thing down to:
This is a known issue with the latest CentOS 4/RHEL 4 latest kernel and I assume its the same on FC5. See this thread below on how to edit the Makefile for Zaptel to work around the issue.
http://forums.digium.com/viewtopic.php?t=5681
Alternatively you can edit the kernel source as outlined in step “Patch and Compile Zaptel” on the FreePBX setup wiki.
http://www.aussievoip.com/wiki/index.php?page=freePBX-Centos
Scott
Tomcar
April 27, 2006, 2:20pm
6
Thank you, now it works!
I found a lot of information about this bug before, and I tried to fix it but it seems I didn’t manage to do that until now.
Thank you again!!
Regards - Tomas