Re: [asterisk-users] zaptel compilation problems with linux 2.6.19

2006-12-03 Thread Tzafrir Cohen
Hi

On Sat, Dec 02, 2006 at 07:17:22PM -0500, Matthew Rubenstein wrote:
 On Sat, 2006-12-02 at 09:53 -0700,
 [EMAIL PROTECTED] wrote:
  Date: Sat, 2 Dec 2006 11:51:37 +0200
  From: Tzafrir Cohen [EMAIL PROTECTED]

  Subject: Re: [asterisk-users] zaptel compilation problems with linux
  2.6.19
  To: Asterisk-Users asterisk-users@lists.digium.com
  Message-ID: [EMAIL PROTECTED]
  Content-Type: text/plain; charset=us-ascii
  
  Hi
 
   Hi, and thanks for the help :).
 
 
  On Fri, Dec 01, 2006 at 01:43:20AM -0500, Matthew Rubenstein wrote:
   On Thu, 2006-11-30 at 17:56 -0700,
   [EMAIL PROTECTED] wrote:
Message: 18
Date: Fri, 1 Dec 2006 00:56:10 +0200
From: Tzafrir Cohen [EMAIL PROTECTED]
Subject: Re: [asterisk-users] zaptel compilation problems with
  linux
2.6.19
To: asterisk-users@lists.digium.com
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=us-ascii

On Thu, Nov 30, 2006 at 02:44:03PM -0500, Matthew Rubenstein
  wrote:
   I'm having problems installing ztdummy on my
 CentOS-2.6.16-rc6/Asterisk-1.2.11 datacenter server (no ZAP HW,
  SIP
only
 to PSTN). I unpacked the kernel sources and headers in a
  directory,
made
 (but not re/installed) the kernel, unpacked the zaptel-1.2.11
tarball,
 then went thru the make sequence. It seemed to proceed OK
  (without
 errors, just some warnings), but didn't seem to result in a
  loadable
 ztdummy kernel module. Complete (failed) install session
  transcript
is
 attached to this message; details appended:
 

   
  -
 # cd path-to-zaptel-1.2.11-source
 # export KSRC=path-to-kernel-source-root-dir
 # make clean
 # make config
 [... series of shell script conditionals apparently executed
  OK ...]
 # make linux26
 [... series of CC/LD reports, some warnings, no errors ...]
 # make install
 [... series of INSTALL messages, same warnings from (make
  linux26),
no
 errors ...] 
 # modprobe ztdummy
 FATAL: Module ztdummy not found.
 FATAL: Error running install command for ztdummy
 # modprobe zaptel
 FATAL: Module zaptel not found.

   
  -
 
 (make linux26) generated some warnings about various usb_*_dev
symbols
 undefined in [xpp,wcusb]/*.ko, but no actual errors. (make
  install)

Those are harmless, IIRC. I'll try to recall their source.
   
 I suspected as such. But I don't think the server has full
  USB/UHCI
   support running, or fully installed:
   
  
  -
   # lsmod
   Module  Size  Used by
   binfmt_misc12168  1 
   dm_mod 59512  0 
   thermal13864  0 
   processor  25284  1 thermal
   fan 4772  0 
   floppy 63172  0 
   generic 4836  0 [permanent]
   ide_generic 1504  0 [permanent]
   # modprobe usb_uhci
   FATAL: Module uhci_hcd not found.
   # modprobe uhci
   FATAL: Module uhci_hcd not found.
  
  -
   
   
 repeated those warnings. (modprobe ztdummy) finished with

Was depmod run?
   
 No, but trying it now (after the transcripted session) didn't
  seem to
   help:
  
  -
   # depmod
   # modprobe ztdummy
   FATAL: Module ztdummy not found.
   FATAL: Error running install command for ztdummy
  
  -
   
   
uname -r
   
   # uname -r
   2.6.16-rc6-060427a
  
  so depmod, modprobe and such will look
  under /lib/modules/2.6.16-rc6-060427a ,
  but the modules were installed elsewhere:

[ snip: they are under /lib/modules/2.6.16-rc6/misc ]

  One way to fix this is to move the modules, or pass the kernel
  vesiosion explicitly to make with KVERS . However this raises the
  question: does the kernel source tree you used to build the module
  matches the running kernel version.
  
  Is it a kernel you have built? Is there a link 
  /lib/modules/2.6.16-060427a/build ?

The build link is normally generated automatically by the install
target of the kernel. Are you sure it is a good idea to mess with it?
Why not just build zaptel with the kernel tree that was used to build
the kernel?

  Where is that kernel from? Have you built it?Doesn't look like a
  CentOS
  kernel.
 
   OK, I did the following:
 # cd /lib/modules/2.6.16-rc6-060427a
 # ls -l build source
 lrwxrwxrwx  1 root root26 Sep 10 08:54 build.orig - 
 /home/src/linux-2.6.16-rc6
 lrwxrwxrwx  1 root root26 Sep 10 08:54 source.orig - 
 /home/src/linux-2.6.16-rc6
 # mv build

Re: [asterisk-users] zaptel compilation problems with linux 2.6.19

2006-12-02 Thread Tzafrir Cohen
On Fri, Dec 01, 2006 at 10:55:24AM +0200, Roman Yeryomin wrote:
 On Thursday 30 November 2006 21:49, Tzafrir Cohen wrote::
  On Thu, Nov 30, 2006 at 07:19:14PM +0200, Roman Yeryomin wrote:
   Hello!
  
   I have problems compiling zaptel (tried 1.2.11, 1.2.10 and 1.4.0-beta2 --
   all give the same error) with 2.6.19 kernel
  
 CC [M]  /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/card_fxo.o
   In file included
   from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/xpd.h:26,
   from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/card_fxo.c:28:
   /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/xdefs.h:93: error:
   conflicting types for 'bool'
   include/linux/types.h:36: error: previous declaration of 'bool' was here
   In file included
   from /home/roman/install/asterisk/zaptel-1.4.0-beta2/zconfig.h:9,
   from /home/roman/install/asterisk/zaptel-1.4.0-beta2/zaptel.h:34,
   from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/xproto.h:29,
   from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/xpd.h:27,
   from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/card_fxo.c:28:
   include/linux/config.h:10:3: warning: no newline at end of file
   make[3]: ***
   [/home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/card_fxo.o] Error 1
   make[2]: *** [/home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp] Error
   2 make[1]: *** [_module_/home/roman/install/asterisk/zaptel-1.4.0-beta2]
   Error 2 make[1]: Leaving directory
   `/home/roman/install/kernel/linux-2.6.19' make: *** [linux26] Error 2
  
   seems that commenting out typedef int bool; in xpp/xdefs.h on line 93
   works that out, but don't know if it's completely right thing to do
 
  Simply replacing that int with a _Bool will give several incompatible
  pointer type warnings. The following is from our internal working copy,
  with pathes removed for clarity:
 
CC [M]  xpp/card_fxo.o
  xpp/card_fxo.c: In function `__check_report_battery':
  xpp/card_fxo.c:38: warning: return from incompatible pointer type
CC [M]  xpp/card_fxs.o
  xpp/card_fxs.c: In function `__check_poll_digital_inputs':
  xpp/card_fxs.c:37: warning: return from incompatible pointer type
CC [M]  xpp/xbus-core.o
CC [M]  xpp/xpp_zap.o
  xpp/xpp_zap.c: In function `__check_zap_autoreg':
  xpp/xpp_zap.c:67: warning: return from incompatible pointer type
  xpp/xpp_zap.c: In function `__check_prefmaster':
  xpp/xpp_zap.c:68: warning: return from incompatible pointer type
  xpp/xpp_zap.c: In function `__check_xpp_ec':
  xpp/xpp_zap.c:70: warning: return from incompatible pointer type
  xpp/xpp_zap.c: In function `xpd_read_proc':
  xpp/xpp_zap.c:437: warning: unused variable `chans'
  xpp/xpp_zap.c: In function `proc_sync_write':
  xpp/xpp_zap.c:748: warning: int format, bool arg (arg 5)
  xpp/xpp_zap.c: In function `proc_xpd_ztregister_write':
  xpp/xpp_zap.c:816: warning: int format, bool arg (arg 3)
 
  Most of them seem to be related to the procfs interface. If you don't
  need xpp for yourself and can leave with those warnings, go ahead.
 
  I'll try to resolve them.
 
 hmm... make install also gives an error
 
 install -D -m 644 zaptel.h /usr/include/linux/zaptel.h
 install -D -m 644 torisa.h /usr/include/linux/torisa.h
 install -D -m 644 tonezone.h /usr/include/tonezone.h
 install -m 644 doc/ztcfg.8 /usr/share/man/man8
 install -m 644 doc/zttool.8 /usr/share/man/man8
 [ `id -u` = 0 ]  /sbin/depmod -a 2.6.19 || :
 [ -f /etc/zaptel.conf ] || install -D -m 644 
 zaptel.conf.sample /etc/zaptel.conf
 build_tools/genmodconf linux26  tor2 torisa wcusb wcfxo wctdm wctdm24xxp 
 ztdynamic ztd-eth wct1xxp wcte11xp pciradio ztd-loc ztdummy
 [: 66: ==: unexpected operator
 [: 66: ==: unexpected operator
 Unknown kernel build version requested... exiting.
 make: *** [install] Error 1

This is because of using non-standard '==' in the shell's test ([).
Fixed in the SVN. 

As a quick-fix:

  sed -i -e 's/==/=/g' build_tools/genmodconf 

(replace every '==' with a single '=' in the genmod script)

-- 
   Tzafrir Cohen   
icq#16849755jabber:[EMAIL PROTECTED]
+972-50-7952406   mailto:[EMAIL PROTECTED]   
http://www.xorcom.com  iax:[EMAIL PROTECTED]/tzafrir
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] zaptel compilation problems with linux 2.6.19

2006-12-02 Thread Tzafrir Cohen
Hi

On Fri, Dec 01, 2006 at 01:43:20AM -0500, Matthew Rubenstein wrote:
 On Thu, 2006-11-30 at 17:56 -0700,
 [EMAIL PROTECTED] wrote:
  Message: 18
  Date: Fri, 1 Dec 2006 00:56:10 +0200
  From: Tzafrir Cohen [EMAIL PROTECTED]
  Subject: Re: [asterisk-users] zaptel compilation problems with linux
  2.6.19
  To: asterisk-users@lists.digium.com
  Message-ID: [EMAIL PROTECTED]
  Content-Type: text/plain; charset=us-ascii
  
  On Thu, Nov 30, 2006 at 02:44:03PM -0500, Matthew Rubenstein wrote:
 I'm having problems installing ztdummy on my
   CentOS-2.6.16-rc6/Asterisk-1.2.11 datacenter server (no ZAP HW, SIP
  only
   to PSTN). I unpacked the kernel sources and headers in a directory,
  made
   (but not re/installed) the kernel, unpacked the zaptel-1.2.11
  tarball,
   then went thru the make sequence. It seemed to proceed OK (without
   errors, just some warnings), but didn't seem to result in a loadable
   ztdummy kernel module. Complete (failed) install session transcript
  is
   attached to this message; details appended:
   
  
  -
   # cd path-to-zaptel-1.2.11-source
   # export KSRC=path-to-kernel-source-root-dir
   # make clean
   # make config
   [... series of shell script conditionals apparently executed OK ...]
   # make linux26
   [... series of CC/LD reports, some warnings, no errors ...]
   # make install
   [... series of INSTALL messages, same warnings from (make linux26),
  no
   errors ...] 
   # modprobe ztdummy
   FATAL: Module ztdummy not found.
   FATAL: Error running install command for ztdummy
   # modprobe zaptel
   FATAL: Module zaptel not found.
  
  -
   
   (make linux26) generated some warnings about various usb_*_dev
  symbols
   undefined in [xpp,wcusb]/*.ko, but no actual errors. (make install)
  
  Those are harmless, IIRC. I'll try to recall their source.
 
   I suspected as such. But I don't think the server has full USB/UHCI
 support running, or fully installed:
 
 -
 # lsmod
 Module  Size  Used by
 binfmt_misc12168  1 
 dm_mod 59512  0 
 thermal13864  0 
 processor  25284  1 thermal
 fan 4772  0 
 floppy 63172  0 
 generic 4836  0 [permanent]
 ide_generic 1504  0 [permanent]
 # modprobe usb_uhci
 FATAL: Module uhci_hcd not found.
 # modprobe uhci
 FATAL: Module uhci_hcd not found.
 -
 
 
   repeated those warnings. (modprobe ztdummy) finished with
  
  Was depmod run?
 
   No, but trying it now (after the transcripted session) didn't seem to
 help:
 -
 # depmod
 # modprobe ztdummy
 FATAL: Module ztdummy not found.
 FATAL: Error running install command for ztdummy
 -
 
 
  uname -r
 
 # uname -r
 2.6.16-rc6-060427a

so depmod, modprobe and such will look under /lib/modules/2.6.16-rc6-060427a ,
but the modules were installed elsewhere:

 
 
  ls -l /lib/modules/2.6*/misc/*.ko
 
 # ls -l /lib/modules/2.6*/misc/*.ko
 -rw-r--r--  1 root root 198617 Nov 30 09:24 
 /lib/modules/2.6.16-rc6/misc/pciradio.ko
 -rw-r--r--  1 root root 195365 Nov 30 09:24 
 /lib/modules/2.6.16-rc6/misc/tor2.ko
 -rw-r--r--  1 root root 122139 Nov 30 09:24 
 /lib/modules/2.6.16-rc6/misc/torisa.ko
 -rw-r--r--  1 root root 114623 Nov 30 09:24 
 /lib/modules/2.6.16-rc6/misc/wcfxo.ko
 -rw-r--r--  1 root root 164626 Nov 30 09:24 
 /lib/modules/2.6.16-rc6/misc/wct1xxp.ko
 -rw-r--r--  1 root root 340812 Nov 30 09:24 
 /lib/modules/2.6.16-rc6/misc/wctdm24xxp.ko
 -rw-r--r--  1 root root 215930 Nov 30 09:24 
 /lib/modules/2.6.16-rc6/misc/wctdm.ko
 -rw-r--r--  1 root root 204323 Nov 30 09:24 
 /lib/modules/2.6.16-rc6/misc/wcte11xp.ko
 -rw-r--r--  1 root root 155909 Nov 30 09:24 
 /lib/modules/2.6.16-rc6/misc/wcusb.ko
 -rw-r--r--  1 root root 343208 Nov 30 09:24 
 /lib/modules/2.6.16-rc6/misc/zaptel.ko
 -rw-r--r--  1 root root 106184 Nov 30 09:24 
 /lib/modules/2.6.16-rc6/misc/ztd-eth.ko
 -rw-r--r--  1 root root  92153 Nov 30 09:24 
 /lib/modules/2.6.16-rc6/misc/ztd-loc.ko
 -rw-r--r--  1 root root  72401 Nov 30 09:24 
 /lib/modules/2.6.16-rc6/misc/ztdummy.ko
 -rw-r--r--  1 root root  98511 Nov 30 09:24 
 /lib/modules/2.6.16-rc6/misc/ztdynamic.ko

One way to fix this is to move the modules, or pass the kernel
vesiosion explicitly to make with KVERS . However this raises the
question: does the kernel source tree you used to build the module
matches the running kernel version.

Is it a kernel you have built? Is there a link 
/lib/modules/2.6.16-060427a/build

Re: [asterisk-users] zaptel compilation problems with linux 2.6.19

2006-12-02 Thread Matthew Rubenstein
On Sat, 2006-12-02 at 09:53 -0700,
[EMAIL PROTECTED] wrote:
 Date: Sat, 2 Dec 2006 11:51:37 +0200
 From: Tzafrir Cohen [EMAIL PROTECTED]
 Subject: Re: [asterisk-users] zaptel compilation problems with linux
 2.6.19
 To: Asterisk-Users asterisk-users@lists.digium.com
 Message-ID: [EMAIL PROTECTED]
 Content-Type: text/plain; charset=us-ascii
 
 Hi

Hi, and thanks for the help :).


 On Fri, Dec 01, 2006 at 01:43:20AM -0500, Matthew Rubenstein wrote:
  On Thu, 2006-11-30 at 17:56 -0700,
  [EMAIL PROTECTED] wrote:
   Message: 18
   Date: Fri, 1 Dec 2006 00:56:10 +0200
   From: Tzafrir Cohen [EMAIL PROTECTED]
   Subject: Re: [asterisk-users] zaptel compilation problems with
 linux
   2.6.19
   To: asterisk-users@lists.digium.com
   Message-ID: [EMAIL PROTECTED]
   Content-Type: text/plain; charset=us-ascii
   
   On Thu, Nov 30, 2006 at 02:44:03PM -0500, Matthew Rubenstein
 wrote:
  I'm having problems installing ztdummy on my
CentOS-2.6.16-rc6/Asterisk-1.2.11 datacenter server (no ZAP HW,
 SIP
   only
to PSTN). I unpacked the kernel sources and headers in a
 directory,
   made
(but not re/installed) the kernel, unpacked the zaptel-1.2.11
   tarball,
then went thru the make sequence. It seemed to proceed OK
 (without
errors, just some warnings), but didn't seem to result in a
 loadable
ztdummy kernel module. Complete (failed) install session
 transcript
   is
attached to this message; details appended:

   
  
 -
# cd path-to-zaptel-1.2.11-source
# export KSRC=path-to-kernel-source-root-dir
# make clean
# make config
[... series of shell script conditionals apparently executed
 OK ...]
# make linux26
[... series of CC/LD reports, some warnings, no errors ...]
# make install
[... series of INSTALL messages, same warnings from (make
 linux26),
   no
errors ...] 
# modprobe ztdummy
FATAL: Module ztdummy not found.
FATAL: Error running install command for ztdummy
# modprobe zaptel
FATAL: Module zaptel not found.
   
  
 -

(make linux26) generated some warnings about various usb_*_dev
   symbols
undefined in [xpp,wcusb]/*.ko, but no actual errors. (make
 install)
   
   Those are harmless, IIRC. I'll try to recall their source.
  
I suspected as such. But I don't think the server has full
 USB/UHCI
  support running, or fully installed:
  
 
 -
  # lsmod
  Module  Size  Used by
  binfmt_misc12168  1 
  dm_mod 59512  0 
  thermal13864  0 
  processor  25284  1 thermal
  fan 4772  0 
  floppy 63172  0 
  generic 4836  0 [permanent]
  ide_generic 1504  0 [permanent]
  # modprobe usb_uhci
  FATAL: Module uhci_hcd not found.
  # modprobe uhci
  FATAL: Module uhci_hcd not found.
 
 -
  
  
repeated those warnings. (modprobe ztdummy) finished with
   
   Was depmod run?
  
No, but trying it now (after the transcripted session) didn't
 seem to
  help:
 
 -
  # depmod
  # modprobe ztdummy
  FATAL: Module ztdummy not found.
  FATAL: Error running install command for ztdummy
 
 -
  
  
   uname -r
  
  # uname -r
  2.6.16-rc6-060427a
 
 so depmod, modprobe and such will look
 under /lib/modules/2.6.16-rc6-060427a ,
 but the modules were installed elsewhere:
 
  
  
   ls -l /lib/modules/2.6*/misc/*.ko
  
  # ls -l /lib/modules/2.6*/misc/*.ko
  -rw-r--r--  1 root root 198617 Nov 30
 09:24 /lib/modules/2.6.16-rc6/misc/pciradio.ko
  -rw-r--r--  1 root root 195365 Nov 30
 09:24 /lib/modules/2.6.16-rc6/misc/tor2.ko
  -rw-r--r--  1 root root 122139 Nov 30
 09:24 /lib/modules/2.6.16-rc6/misc/torisa.ko
  -rw-r--r--  1 root root 114623 Nov 30
 09:24 /lib/modules/2.6.16-rc6/misc/wcfxo.ko
  -rw-r--r--  1 root root 164626 Nov 30
 09:24 /lib/modules/2.6.16-rc6/misc/wct1xxp.ko
  -rw-r--r--  1 root root 340812 Nov 30
 09:24 /lib/modules/2.6.16-rc6/misc/wctdm24xxp.ko
  -rw-r--r--  1 root root 215930 Nov 30
 09:24 /lib/modules/2.6.16-rc6/misc/wctdm.ko
  -rw-r--r--  1 root root 204323 Nov 30
 09:24 /lib/modules/2.6.16-rc6/misc/wcte11xp.ko
  -rw-r--r--  1 root root 155909 Nov 30
 09:24 /lib/modules/2.6.16-rc6/misc/wcusb.ko
  -rw-r--r--  1 root root 343208 Nov 30
 09:24 /lib/modules/2.6.16-rc6/misc/zaptel.ko
  -rw-r--r--  1 root root 106184 Nov 30
 09:24 /lib/modules/2.6.16-rc6/misc/ztd-eth.ko
  -rw-r--r--  1 root root  92153 Nov 30
 09:24 /lib/modules/2.6.16-rc6/misc/ztd-loc.ko
  -rw-r--r--  1 root root  72401 Nov 30
 09:24 /lib

Re: [asterisk-users] zaptel compilation problems with linux 2.6.19

2006-12-01 Thread Roman Yeryomin
On Thursday 30 November 2006 21:49, Tzafrir Cohen wrote::
 On Thu, Nov 30, 2006 at 07:19:14PM +0200, Roman Yeryomin wrote:
  Hello!
 
  I have problems compiling zaptel (tried 1.2.11, 1.2.10 and 1.4.0-beta2 --
  all give the same error) with 2.6.19 kernel
 
CC [M]  /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/card_fxo.o
  In file included
  from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/xpd.h:26,
  from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/card_fxo.c:28:
  /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/xdefs.h:93: error:
  conflicting types for 'bool'
  include/linux/types.h:36: error: previous declaration of 'bool' was here
  In file included
  from /home/roman/install/asterisk/zaptel-1.4.0-beta2/zconfig.h:9,
  from /home/roman/install/asterisk/zaptel-1.4.0-beta2/zaptel.h:34,
  from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/xproto.h:29,
  from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/xpd.h:27,
  from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/card_fxo.c:28:
  include/linux/config.h:10:3: warning: no newline at end of file
  make[3]: ***
  [/home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/card_fxo.o] Error 1
  make[2]: *** [/home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp] Error
  2 make[1]: *** [_module_/home/roman/install/asterisk/zaptel-1.4.0-beta2]
  Error 2 make[1]: Leaving directory
  `/home/roman/install/kernel/linux-2.6.19' make: *** [linux26] Error 2
 
  seems that commenting out typedef int bool; in xpp/xdefs.h on line 93
  works that out, but don't know if it's completely right thing to do

 Simply replacing that int with a _Bool will give several incompatible
 pointer type warnings. The following is from our internal working copy,
 with pathes removed for clarity:

   CC [M]  xpp/card_fxo.o
 xpp/card_fxo.c: In function `__check_report_battery':
 xpp/card_fxo.c:38: warning: return from incompatible pointer type
   CC [M]  xpp/card_fxs.o
 xpp/card_fxs.c: In function `__check_poll_digital_inputs':
 xpp/card_fxs.c:37: warning: return from incompatible pointer type
   CC [M]  xpp/xbus-core.o
   CC [M]  xpp/xpp_zap.o
 xpp/xpp_zap.c: In function `__check_zap_autoreg':
 xpp/xpp_zap.c:67: warning: return from incompatible pointer type
 xpp/xpp_zap.c: In function `__check_prefmaster':
 xpp/xpp_zap.c:68: warning: return from incompatible pointer type
 xpp/xpp_zap.c: In function `__check_xpp_ec':
 xpp/xpp_zap.c:70: warning: return from incompatible pointer type
 xpp/xpp_zap.c: In function `xpd_read_proc':
 xpp/xpp_zap.c:437: warning: unused variable `chans'
 xpp/xpp_zap.c: In function `proc_sync_write':
 xpp/xpp_zap.c:748: warning: int format, bool arg (arg 5)
 xpp/xpp_zap.c: In function `proc_xpd_ztregister_write':
 xpp/xpp_zap.c:816: warning: int format, bool arg (arg 3)

 Most of them seem to be related to the procfs interface. If you don't
 need xpp for yourself and can leave with those warnings, go ahead.

 I'll try to resolve them.

hmm... make install also gives an error

install -D -m 644 zaptel.h /usr/include/linux/zaptel.h
install -D -m 644 torisa.h /usr/include/linux/torisa.h
install -D -m 644 tonezone.h /usr/include/tonezone.h
install -m 644 doc/ztcfg.8 /usr/share/man/man8
install -m 644 doc/zttool.8 /usr/share/man/man8
[ `id -u` = 0 ]  /sbin/depmod -a 2.6.19 || :
[ -f /etc/zaptel.conf ] || install -D -m 644 
zaptel.conf.sample /etc/zaptel.conf
build_tools/genmodconf linux26  tor2 torisa wcusb wcfxo wctdm wctdm24xxp 
ztdynamic ztd-eth wct1xxp wcte11xp pciradio ztd-loc ztdummy
[: 66: ==: unexpected operator
[: 66: ==: unexpected operator
Unknown kernel build version requested... exiting.
make: *** [install] Error 1

___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] zaptel compilation problems with linux 2.6.19

2006-11-30 Thread Roman Yeryomin
Hello!

I have problems compiling zaptel (tried 1.2.11, 1.2.10 and 1.4.0-beta2 -- all 
give the same error) with 2.6.19 kernel

  CC [M]  /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/card_fxo.o
In file included 
from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/xpd.h:26, 
from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/card_fxo.c:28:
/home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/xdefs.h:93: error: 
conflicting types for 'bool'
include/linux/types.h:36: error: previous declaration of 'bool' was here
In file included 
from /home/roman/install/asterisk/zaptel-1.4.0-beta2/zconfig.h:9,
from /home/roman/install/asterisk/zaptel-1.4.0-beta2/zaptel.h:34,
from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/xproto.h:29,
from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/xpd.h:27,
from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/card_fxo.c:28:
include/linux/config.h:10:3: warning: no newline at end of file
make[3]: *** [/home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/card_fxo.o] 
Error 1
make[2]: *** [/home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp] Error 2
make[1]: *** [_module_/home/roman/install/asterisk/zaptel-1.4.0-beta2] Error 2
make[1]: Leaving directory `/home/roman/install/kernel/linux-2.6.19'
make: *** [linux26] Error 2

seems that commenting out typedef int bool; in xpp/xdefs.h on line 93 works 
that out, but don't know if it's completely right thing to do

Roman
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] zaptel compilation problems with linux 2.6.19

2006-11-30 Thread Matthew Rubenstein
I'm having problems installing ztdummy on my
CentOS-2.6.16-rc6/Asterisk-1.2.11 datacenter server (no ZAP HW, SIP only
to PSTN). I unpacked the kernel sources and headers in a directory, made
(but not re/installed) the kernel, unpacked the zaptel-1.2.11 tarball,
then went thru the make sequence. It seemed to proceed OK (without
errors, just some warnings), but didn't seem to result in a loadable
ztdummy kernel module. Complete (failed) install session transcript is
attached to this message; details appended:

-
# cd path-to-zaptel-1.2.11-source
# export KSRC=path-to-kernel-source-root-dir
# make clean
# make config
[... series of shell script conditionals apparently executed OK ...]
# make linux26
[... series of CC/LD reports, some warnings, no errors ...]
# make install
[... series of INSTALL messages, same warnings from (make linux26), no
errors ...] 
# modprobe ztdummy
FATAL: Module ztdummy not found.
FATAL: Error running install command for ztdummy
# modprobe zaptel
FATAL: Module zaptel not found.
-

(make linux26) generated some warnings about various usb_*_dev symbols
undefined in [xpp,wcusb]/*.ko, but no actual errors. (make install)
repeated those warnings. (modprobe ztdummy) finished with

-
Building /etc/modprobe.d/zaptel...
***
*** WARNING:
*** If you had custom settings in /etc/modprobe.d/zaptel,
*** they have been moved to /etc/modprobe.d/zaptel.bak.
[...]
-

but seemed to complete without errors. (make install) included a line

-
INSTALL zaptel-1.2.11-source-root-dir/ztdummy.ko
-

Complete (failed) install session transcript is attached.



On Thu, 2006-11-30 at 12:00 -0700,
[EMAIL PROTECTED] wrote:
 Date: Thu, 30 Nov 2006 19:19:14 +0200
 From: Roman Yeryomin [EMAIL PROTECTED]
 Subject: [asterisk-users] zaptel compilation problems with linux
 2.6.19
 To: asterisk-users@lists.digium.com
 Message-ID: [EMAIL PROTECTED]
 Content-Type: text/plain;  charset=us-ascii
 
 Hello!
 
 I have problems compiling zaptel (tried 1.2.11, 1.2.10 and 1.4.0-beta2
 -- all 
 give the same error) with 2.6.19 kernel
 
   CC
 [M]  /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/card_fxo.o
 In file included 
 from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/xpd.h:26, 
 from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/card_fxo.c:28:
 /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/xdefs.h:93:
 error: 
 conflicting types for 'bool'
 include/linux/types.h:36: error: previous declaration of 'bool' was
 here
 In file included 
 from /home/roman/install/asterisk/zaptel-1.4.0-beta2/zconfig.h:9,
 from /home/roman/install/asterisk/zaptel-1.4.0-beta2/zaptel.h:34,
 from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/xproto.h:29,
 from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/xpd.h:27,
 from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/card_fxo.c:28:
 include/linux/config.h:10:3: warning: no newline at end of file
 make[3]: ***
 [/home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/card_fxo.o] 
 Error 1
 make[2]: *** [/home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp]
 Error 2
 make[1]: *** [_module_/home/roman/install/asterisk/zaptel-1.4.0-beta2]
 Error 2
 make[1]: Leaving directory `/home/roman/install/kernel/linux-2.6.19'
 make: *** [linux26] Error 2
 
 seems that commenting out typedef int bool; in xpp/xdefs.h on line
 93 works 
 that out, but don't know if it's completely right thing to do
 
 Roman
 
-- 

(C) Matthew Rubenstein
# make clean
rm -f torisatool makefw tor2fw.h radfw.h
rm -f ztcfg torisatool makefw ztmonitor ztspeed zttool zttest fxotune
rm -f *.o ztcfg tzdriver sethdlc sethdlc-new
rm -f zonedata.lo tonezone.lo libtonezone.so *.lo
make -C kernel-source-root-dir SUBDIRS=zaptel-1.2.11-source-root-dir clean
make[1]: Entering directory `kernel-source-root-dir'
  CLEAN   zaptel-1.2.11-source-root-dir/wct4xxp
  CLEAN   zaptel-1.2.11-source-root-dir/.tmp_versions
make[1]: Leaving directory `kernel-source-root-dir'
rm -rf .tmp_versions
rm -f gendigits tones.h
rm -f libtonezone*
rm -f tor2ee
rm -f fxotune
rm -f core
rm -f ztcfg-shared fxstest
rm -rf misdn*
rm -rf mISDNuser*
# make config
if [ -d /etc/rc.d/init.d ]; then \
install -D -m 755 zaptel.init /etc/rc.d/init.d/zaptel; \
//sbin/chkconfig --add zaptel; \
elif [ -d /etc/init.d ]; then \
install -D -m 755 zaptel.init /etc/init.d/zaptel; \
//sbin/chkconfig --add zaptel; \
fi 
if [ -d /etc/default ]  [ ! -f /etc/default/zaptel ]; then \
install -D -m 644 zaptel.sysconfig /etc/default/zaptel; \
fi
if [ -d /etc/sysconfig ]  [ ! -f /etc

Re: [asterisk-users] zaptel compilation problems with linux 2.6.19

2006-11-30 Thread Tzafrir Cohen
On Thu, Nov 30, 2006 at 07:19:14PM +0200, Roman Yeryomin wrote:
 Hello!
 
 I have problems compiling zaptel (tried 1.2.11, 1.2.10 and 1.4.0-beta2 -- all 
 give the same error) with 2.6.19 kernel
 
   CC [M]  /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/card_fxo.o
 In file included 
 from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/xpd.h:26, 
 from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/card_fxo.c:28:
 /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/xdefs.h:93: error: 
 conflicting types for 'bool'
 include/linux/types.h:36: error: previous declaration of 'bool' was here
 In file included 
 from /home/roman/install/asterisk/zaptel-1.4.0-beta2/zconfig.h:9,
 from /home/roman/install/asterisk/zaptel-1.4.0-beta2/zaptel.h:34,
 from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/xproto.h:29,
 from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/xpd.h:27,
 from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/card_fxo.c:28:
 include/linux/config.h:10:3: warning: no newline at end of file
 make[3]: *** [/home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/card_fxo.o] 
 Error 1
 make[2]: *** [/home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp] Error 2
 make[1]: *** [_module_/home/roman/install/asterisk/zaptel-1.4.0-beta2] Error 2
 make[1]: Leaving directory `/home/roman/install/kernel/linux-2.6.19'
 make: *** [linux26] Error 2
 
 seems that commenting out typedef int bool; in xpp/xdefs.h on line 93 works 
 that out, but don't know if it's completely right thing to do

Simply replacing that int with a _Bool will give several incompatible
pointer type warnings. The following is from our internal working copy,
with pathes removed for clarity:

  CC [M]  xpp/card_fxo.o
xpp/card_fxo.c: In function `__check_report_battery':
xpp/card_fxo.c:38: warning: return from incompatible pointer type
  CC [M]  xpp/card_fxs.o
xpp/card_fxs.c: In function `__check_poll_digital_inputs':
xpp/card_fxs.c:37: warning: return from incompatible pointer type
  CC [M]  xpp/xbus-core.o
  CC [M]  xpp/xpp_zap.o
xpp/xpp_zap.c: In function `__check_zap_autoreg':
xpp/xpp_zap.c:67: warning: return from incompatible pointer type
xpp/xpp_zap.c: In function `__check_prefmaster':
xpp/xpp_zap.c:68: warning: return from incompatible pointer type
xpp/xpp_zap.c: In function `__check_xpp_ec':
xpp/xpp_zap.c:70: warning: return from incompatible pointer type
xpp/xpp_zap.c: In function `xpd_read_proc':
xpp/xpp_zap.c:437: warning: unused variable `chans'
xpp/xpp_zap.c: In function `proc_sync_write':
xpp/xpp_zap.c:748: warning: int format, bool arg (arg 5)
xpp/xpp_zap.c: In function `proc_xpd_ztregister_write':
xpp/xpp_zap.c:816: warning: int format, bool arg (arg 3)

Most of them seem to be related to the procfs interface. If you don't
need xpp for yourself and can leave with those warnings, go ahead.

I'll try to resolve them.

-- 
   Tzafrir Cohen   
icq#16849755jabber:[EMAIL PROTECTED]
+972-50-7952406   mailto:[EMAIL PROTECTED]   
http://www.xorcom.com  iax:[EMAIL PROTECTED]/tzafrir
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] zaptel compilation problems with linux 2.6.19

2006-11-30 Thread Matthew Rubenstein
-source-root-dir/xpp/xpp_usb.ko] 
undefined!
*** Warning: usb_buffer_alloc 
[zaptel-1.2.11-source-root-dir/xpp/xpp_usb.ko] undefined!
*** Warning: usb_alloc_urb [zaptel-1.2.11-source-root-dir/xpp/xpp_usb.ko] 
undefined!
*** Warning: usb_deregister [zaptel-1.2.11-source-root-dir/xpp/xpp_usb.ko] 
undefined!
*** Warning: usb_register_driver 
[zaptel-1.2.11-source-root-dir/xpp/xpp_usb.ko] undefined!
*** Warning: usb_set_interface [zaptel-1.2.11-source-root-dir/wcusb.ko] 
undefined!
*** Warning: usb_control_msg [zaptel-1.2.11-source-root-dir/wcusb.ko] 
undefined!
*** Warning: usb_deregister [zaptel-1.2.11-source-root-dir/wcusb.ko] 
undefined!
*** Warning: usb_register_driver [zaptel-1.2.11-source-root-dir/wcusb.ko] 
undefined!
*** Warning: usb_submit_urb [zaptel-1.2.11-source-root-dir/wcusb.ko] 
undefined!
make[1]: Leaving directory `kernel-source-root-dir'
cc -shared -Wl,-soname,libtonezone.so.1.0 -lm -o libtonezone.so zonedata.lo 
tonezone.lo
build_tools/genudevrules  /etc/udev/rules.d/zaptel.rules
Not installing firmware because we are not using hotplug firmware
install -D -m 755 ztcfg /sbin/ztcfg
if [ -f sethdlc-new ]; then \
install -D -m 755 sethdlc-new /sbin/sethdlc; \
elif [ -f sethdlc ]; then \
install -D -m 755 sethdlc /sbin/sethdlc ; \
fi
if [ -f zttool ]; then install -D -m 755 zttool /sbin/zttool; fi
for x in zaptel.ko tor2.ko torisa.ko wcusb.ko wcfxo.ko wctdm.ko wctdm24xxp.ko 
ztdynamic.ko ztd-eth.ko wct1xxp.ko wcte11xp.ko pciradio.ko ztd-loc.ko 
ztdummy.ko; do \
rm -f /lib/modules/2.6.16-rc6-060427a/extra/$x ; \
done; \
make -C kernel-source-root-dir SUBDIRS=zaptel-1.2.11-source-root-dir 
INSTALL_MOD_PATH= INSTALL_MOD_DIR=misc modules_install;
make[1]: Entering directory `kernel-source-root-dir'
  INSTALL zaptel-1.2.11-source-root-dir/pciradio.ko
  INSTALL zaptel-1.2.11-source-root-dir/tor2.ko
  INSTALL zaptel-1.2.11-source-root-dir/torisa.ko
  INSTALL zaptel-1.2.11-source-root-dir/wcfxo.ko
  INSTALL zaptel-1.2.11-source-root-dir/wct1xxp.ko
  INSTALL zaptel-1.2.11-source-root-dir/wct4xxp/wct4xxp.ko
  INSTALL zaptel-1.2.11-source-root-dir/wctdm.ko
  INSTALL zaptel-1.2.11-source-root-dir/wctdm24xxp.ko
  INSTALL zaptel-1.2.11-source-root-dir/wcte11xp.ko
  INSTALL zaptel-1.2.11-source-root-dir/wcusb.ko
  INSTALL zaptel-1.2.11-source-root-dir/xpp/xpd_fxo.ko
  INSTALL zaptel-1.2.11-source-root-dir/xpp/xpd_fxs.ko
  INSTALL zaptel-1.2.11-source-root-dir/xpp/xpp.ko
  INSTALL zaptel-1.2.11-source-root-dir/xpp/xpp_usb.ko
  INSTALL zaptel-1.2.11-source-root-dir/zaptel.ko
  INSTALL zaptel-1.2.11-source-root-dir/ztd-eth.ko
  INSTALL zaptel-1.2.11-source-root-dir/ztd-loc.ko
  INSTALL zaptel-1.2.11-source-root-dir/ztdummy.ko
  INSTALL zaptel-1.2.11-source-root-dir/ztdynamic.ko
make[1]: Leaving directory `kernel-source-root-dir'
if ! [ -f wcfxsusb.o ]; then \
rm -f /lib/modules/2.6.16-rc6-060427a/misc/wcfxsusb.o; \
fi; \
rm -f /lib/modules/2.6.16-rc6-060427a/misc/wcfxs.o
install -D -m 755 libtonezone.so /usr/lib/libtonezone.so.1.0
[ `id -u` = 0 ]  /sbin/ldconfig || :
rm -f /usr/lib/libtonezone.so
ln -sf libtonezone.so.1.0 \
/usr/lib/libtonezone.so.1
ln -sf libtonezone.so.1.0 \
/usr/lib/libtonezone.so
if [ -x /usr/sbin/sestatus ]  (/usr/sbin/sestatus | grep SELinux status: | 
grep -q enabled) ; then restorecon -v /usr/lib/libtonezone.so; fi
install -D -m 644 zaptel.h /usr/include/linux/zaptel.h
install -D -m 644 torisa.h /usr/include/linux/torisa.h
install -D -m 644 tonezone.h /usr/include/tonezone.h
install -m 644 doc/ztcfg.8 /usr/share/man/man8
install -m 644 doc/zttool.8 /usr/share/man/man8
[ `id -u` = 0 ]  /sbin/depmod -a 2.6.16-rc6-060427a || :
[ -f /etc/zaptel.conf ] || install -D -m 644 zaptel.conf.sample /etc/zaptel.conf
build_tools/genmodconf linux26  tor2 torisa wcusb wcfxo wctdm wctdm24xxp 
ztdynamic ztd-eth wct1xxp wcte11xp pciradio ztd-loc ztdummy
Building /etc/modprobe.d/zaptel...
***
*** WARNING:
*** If you had custom settings in /etc/modprobe.d/zaptel,
*** they have been moved to /etc/modprobe.d/zaptel.bak.
***
*** In the future, do not edit /etc/modprobe.d/zaptel, but
*** instead put your changes in another file
*** in the same directory so that they will not
*** be overwritten by future Zaptel updates.
***
# modprobe ztdummy
FATAL: Module ztdummy not found.
FATAL: Error running install command for ztdummy
# modprobe zaptel
FATAL: Module zaptel not found.
-


On Thu, 2006-11-30 at 12:00 -0700,
[EMAIL PROTECTED] wrote:
 Date: Thu, 30 Nov 2006 19:19:14 +0200
 From: Roman Yeryomin [EMAIL PROTECTED]
 Subject: [asterisk-users] zaptel compilation problems with linux
 2.6.19
 To: asterisk-users@lists.digium.com
 Message-ID: [EMAIL PROTECTED]
 Content-Type: text/plain;  charset=us-ascii
 
 Hello!
 
 I have problems compiling zaptel (tried 1.2.11, 1.2.10 and 1.4.0-beta2
 -- all 
 give the same error) with 2.6.19 kernel
 
   CC
 [M]  /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp

Re: [asterisk-users] zaptel compilation problems with linux 2.6.19

2006-11-30 Thread Matthew Rubenstein
-source-root-dir/xpp/xpp_usb.ko] 
undefined!
*** Warning: usb_buffer_alloc 
[zaptel-1.2.11-source-root-dir/xpp/xpp_usb.ko] undefined!
*** Warning: usb_alloc_urb [zaptel-1.2.11-source-root-dir/xpp/xpp_usb.ko] 
undefined!
*** Warning: usb_deregister [zaptel-1.2.11-source-root-dir/xpp/xpp_usb.ko] 
undefined!
*** Warning: usb_register_driver 
[zaptel-1.2.11-source-root-dir/xpp/xpp_usb.ko] undefined!
*** Warning: usb_set_interface [zaptel-1.2.11-source-root-dir/wcusb.ko] 
undefined!
*** Warning: usb_control_msg [zaptel-1.2.11-source-root-dir/wcusb.ko] 
undefined!
*** Warning: usb_deregister [zaptel-1.2.11-source-root-dir/wcusb.ko] 
undefined!
*** Warning: usb_register_driver [zaptel-1.2.11-source-root-dir/wcusb.ko] 
undefined!
*** Warning: usb_submit_urb [zaptel-1.2.11-source-root-dir/wcusb.ko] 
undefined!
make[1]: Leaving directory `kernel-source-root-dir'
cc -shared -Wl,-soname,libtonezone.so.1.0 -lm -o libtonezone.so zonedata.lo 
tonezone.lo
build_tools/genudevrules  /etc/udev/rules.d/zaptel.rules
Not installing firmware because we are not using hotplug firmware
install -D -m 755 ztcfg /sbin/ztcfg
if [ -f sethdlc-new ]; then \
install -D -m 755 sethdlc-new /sbin/sethdlc; \
elif [ -f sethdlc ]; then \
install -D -m 755 sethdlc /sbin/sethdlc ; \
fi
if [ -f zttool ]; then install -D -m 755 zttool /sbin/zttool; fi
for x in zaptel.ko tor2.ko torisa.ko wcusb.ko wcfxo.ko wctdm.ko wctdm24xxp.ko 
ztdynamic.ko ztd-eth.ko wct1xxp.ko wcte11xp.ko pciradio.ko ztd-loc.ko 
ztdummy.ko; do \
rm -f /lib/modules/2.6.16-rc6-060427a/extra/$x ; \
done; \
make -C kernel-source-root-dir SUBDIRS=zaptel-1.2.11-source-root-dir 
INSTALL_MOD_PATH= INSTALL_MOD_DIR=misc modules_install;
make[1]: Entering directory `kernel-source-root-dir'
  INSTALL zaptel-1.2.11-source-root-dir/pciradio.ko
  INSTALL zaptel-1.2.11-source-root-dir/tor2.ko
  INSTALL zaptel-1.2.11-source-root-dir/torisa.ko
  INSTALL zaptel-1.2.11-source-root-dir/wcfxo.ko
  INSTALL zaptel-1.2.11-source-root-dir/wct1xxp.ko
  INSTALL zaptel-1.2.11-source-root-dir/wct4xxp/wct4xxp.ko
  INSTALL zaptel-1.2.11-source-root-dir/wctdm.ko
  INSTALL zaptel-1.2.11-source-root-dir/wctdm24xxp.ko
  INSTALL zaptel-1.2.11-source-root-dir/wcte11xp.ko
  INSTALL zaptel-1.2.11-source-root-dir/wcusb.ko
  INSTALL zaptel-1.2.11-source-root-dir/xpp/xpd_fxo.ko
  INSTALL zaptel-1.2.11-source-root-dir/xpp/xpd_fxs.ko
  INSTALL zaptel-1.2.11-source-root-dir/xpp/xpp.ko
  INSTALL zaptel-1.2.11-source-root-dir/xpp/xpp_usb.ko
  INSTALL zaptel-1.2.11-source-root-dir/zaptel.ko
  INSTALL zaptel-1.2.11-source-root-dir/ztd-eth.ko
  INSTALL zaptel-1.2.11-source-root-dir/ztd-loc.ko
  INSTALL zaptel-1.2.11-source-root-dir/ztdummy.ko
  INSTALL zaptel-1.2.11-source-root-dir/ztdynamic.ko
make[1]: Leaving directory `kernel-source-root-dir'
if ! [ -f wcfxsusb.o ]; then \
rm -f /lib/modules/2.6.16-rc6-060427a/misc/wcfxsusb.o; \
fi; \
rm -f /lib/modules/2.6.16-rc6-060427a/misc/wcfxs.o
install -D -m 755 libtonezone.so /usr/lib/libtonezone.so.1.0
[ `id -u` = 0 ]  /sbin/ldconfig || :
rm -f /usr/lib/libtonezone.so
ln -sf libtonezone.so.1.0 \
/usr/lib/libtonezone.so.1
ln -sf libtonezone.so.1.0 \
/usr/lib/libtonezone.so
if [ -x /usr/sbin/sestatus ]  (/usr/sbin/sestatus | grep SELinux status: | 
grep -q enabled) ; then restorecon -v /usr/lib/libtonezone.so; fi
install -D -m 644 zaptel.h /usr/include/linux/zaptel.h
install -D -m 644 torisa.h /usr/include/linux/torisa.h
install -D -m 644 tonezone.h /usr/include/tonezone.h
install -m 644 doc/ztcfg.8 /usr/share/man/man8
install -m 644 doc/zttool.8 /usr/share/man/man8
[ `id -u` = 0 ]  /sbin/depmod -a 2.6.16-rc6-060427a || :
[ -f /etc/zaptel.conf ] || install -D -m 644 zaptel.conf.sample /etc/zaptel.conf
build_tools/genmodconf linux26  tor2 torisa wcusb wcfxo wctdm wctdm24xxp 
ztdynamic ztd-eth wct1xxp wcte11xp pciradio ztd-loc ztdummy
Building /etc/modprobe.d/zaptel...
***
*** WARNING:
*** If you had custom settings in /etc/modprobe.d/zaptel,
*** they have been moved to /etc/modprobe.d/zaptel.bak.
***
*** In the future, do not edit /etc/modprobe.d/zaptel, but
*** instead put your changes in another file
*** in the same directory so that they will not
*** be overwritten by future Zaptel updates.
***
# modprobe ztdummy
FATAL: Module ztdummy not found.
FATAL: Error running install command for ztdummy
# modprobe zaptel
FATAL: Module zaptel not found.
-


On Thu, 2006-11-30 at 12:00 -0700,
[EMAIL PROTECTED] wrote:
 Date: Thu, 30 Nov 2006 19:19:14 +0200
 From: Roman Yeryomin [EMAIL PROTECTED]
 Subject: [asterisk-users] zaptel compilation problems with linux
 2.6.19
 To: asterisk-users@lists.digium.com
 Message-ID: [EMAIL PROTECTED]
 Content-Type: text/plain;  charset=us-ascii
 
 Hello!
 
 I have problems compiling zaptel (tried 1.2.11, 1.2.10 and 1.4.0-beta2
 -- all 
 give the same error) with 2.6.19 kernel
 
   CC
 [M]  /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp

Re: [asterisk-users] zaptel compilation problems with linux 2.6.19

2006-11-30 Thread Tzafrir Cohen
On Thu, Nov 30, 2006 at 02:44:03PM -0500, Matthew Rubenstein wrote:
   I'm having problems installing ztdummy on my
 CentOS-2.6.16-rc6/Asterisk-1.2.11 datacenter server (no ZAP HW, SIP only
 to PSTN). I unpacked the kernel sources and headers in a directory, made
 (but not re/installed) the kernel, unpacked the zaptel-1.2.11 tarball,
 then went thru the make sequence. It seemed to proceed OK (without
 errors, just some warnings), but didn't seem to result in a loadable
 ztdummy kernel module. Complete (failed) install session transcript is
 attached to this message; details appended:
 
 -
 # cd path-to-zaptel-1.2.11-source
 # export KSRC=path-to-kernel-source-root-dir
 # make clean
 # make config
 [... series of shell script conditionals apparently executed OK ...]
 # make linux26
 [... series of CC/LD reports, some warnings, no errors ...]
 # make install
 [... series of INSTALL messages, same warnings from (make linux26), no
 errors ...] 
 # modprobe ztdummy
 FATAL: Module ztdummy not found.
 FATAL: Error running install command for ztdummy
 # modprobe zaptel
 FATAL: Module zaptel not found.
 -
 
 (make linux26) generated some warnings about various usb_*_dev symbols
 undefined in [xpp,wcusb]/*.ko, but no actual errors. (make install)

Those are harmless, IIRC. I'll try to recall their source.

 repeated those warnings. (modprobe ztdummy) finished with

Was depmod run?

uname -r
ls -l /lib/modules/2.6*/misc/*.ko

 
 -
 Building /etc/modprobe.d/zaptel...
 ***
 *** WARNING:
 *** If you had custom settings in /etc/modprobe.d/zaptel,
 *** they have been moved to /etc/modprobe.d/zaptel.bak.

CentOS? /etc/modprobe.d ? What version is it, exactly?

-- 
   Tzafrir Cohen   
icq#16849755jabber:[EMAIL PROTECTED]
+972-50-7952406   mailto:[EMAIL PROTECTED]   
http://www.xorcom.com  iax:[EMAIL PROTECTED]/tzafrir
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] zaptel compilation problems with linux 2.6.19

2006-11-30 Thread Matthew Rubenstein
On Thu, 2006-11-30 at 17:56 -0700,
[EMAIL PROTECTED] wrote:
 Message: 18
 Date: Fri, 1 Dec 2006 00:56:10 +0200
 From: Tzafrir Cohen [EMAIL PROTECTED]
 Subject: Re: [asterisk-users] zaptel compilation problems with linux
 2.6.19
 To: asterisk-users@lists.digium.com
 Message-ID: [EMAIL PROTECTED]
 Content-Type: text/plain; charset=us-ascii
 
 On Thu, Nov 30, 2006 at 02:44:03PM -0500, Matthew Rubenstein wrote:
I'm having problems installing ztdummy on my
  CentOS-2.6.16-rc6/Asterisk-1.2.11 datacenter server (no ZAP HW, SIP
 only
  to PSTN). I unpacked the kernel sources and headers in a directory,
 made
  (but not re/installed) the kernel, unpacked the zaptel-1.2.11
 tarball,
  then went thru the make sequence. It seemed to proceed OK (without
  errors, just some warnings), but didn't seem to result in a loadable
  ztdummy kernel module. Complete (failed) install session transcript
 is
  attached to this message; details appended:
  
 
 -
  # cd path-to-zaptel-1.2.11-source
  # export KSRC=path-to-kernel-source-root-dir
  # make clean
  # make config
  [... series of shell script conditionals apparently executed OK ...]
  # make linux26
  [... series of CC/LD reports, some warnings, no errors ...]
  # make install
  [... series of INSTALL messages, same warnings from (make linux26),
 no
  errors ...] 
  # modprobe ztdummy
  FATAL: Module ztdummy not found.
  FATAL: Error running install command for ztdummy
  # modprobe zaptel
  FATAL: Module zaptel not found.
 
 -
  
  (make linux26) generated some warnings about various usb_*_dev
 symbols
  undefined in [xpp,wcusb]/*.ko, but no actual errors. (make install)
 
 Those are harmless, IIRC. I'll try to recall their source.

I suspected as such. But I don't think the server has full USB/UHCI
support running, or fully installed:

-
# lsmod
Module  Size  Used by
binfmt_misc12168  1 
dm_mod 59512  0 
thermal13864  0 
processor  25284  1 thermal
fan 4772  0 
floppy 63172  0 
generic 4836  0 [permanent]
ide_generic 1504  0 [permanent]
# modprobe usb_uhci
FATAL: Module uhci_hcd not found.
# modprobe uhci
FATAL: Module uhci_hcd not found.
-


  repeated those warnings. (modprobe ztdummy) finished with
 
 Was depmod run?

No, but trying it now (after the transcripted session) didn't seem to
help:
-
# depmod
# modprobe ztdummy
FATAL: Module ztdummy not found.
FATAL: Error running install command for ztdummy
-


 uname -r

# uname -r
2.6.16-rc6-060427a


 ls -l /lib/modules/2.6*/misc/*.ko

# ls -l /lib/modules/2.6*/misc/*.ko
-rw-r--r--  1 root root 198617 Nov 30
09:24 /lib/modules/2.6.16-rc6/misc/pciradio.ko
-rw-r--r--  1 root root 195365 Nov 30
09:24 /lib/modules/2.6.16-rc6/misc/tor2.ko
-rw-r--r--  1 root root 122139 Nov 30
09:24 /lib/modules/2.6.16-rc6/misc/torisa.ko
-rw-r--r--  1 root root 114623 Nov 30
09:24 /lib/modules/2.6.16-rc6/misc/wcfxo.ko
-rw-r--r--  1 root root 164626 Nov 30
09:24 /lib/modules/2.6.16-rc6/misc/wct1xxp.ko
-rw-r--r--  1 root root 340812 Nov 30
09:24 /lib/modules/2.6.16-rc6/misc/wctdm24xxp.ko
-rw-r--r--  1 root root 215930 Nov 30
09:24 /lib/modules/2.6.16-rc6/misc/wctdm.ko
-rw-r--r--  1 root root 204323 Nov 30
09:24 /lib/modules/2.6.16-rc6/misc/wcte11xp.ko
-rw-r--r--  1 root root 155909 Nov 30
09:24 /lib/modules/2.6.16-rc6/misc/wcusb.ko
-rw-r--r--  1 root root 343208 Nov 30
09:24 /lib/modules/2.6.16-rc6/misc/zaptel.ko
-rw-r--r--  1 root root 106184 Nov 30
09:24 /lib/modules/2.6.16-rc6/misc/ztd-eth.ko
-rw-r--r--  1 root root  92153 Nov 30
09:24 /lib/modules/2.6.16-rc6/misc/ztd-loc.ko
-rw-r--r--  1 root root  72401 Nov 30
09:24 /lib/modules/2.6.16-rc6/misc/ztdummy.ko
-rw-r--r--  1 root root  98511 Nov 30
09:24 /lib/modules/2.6.16-rc6/misc/ztdynamic.ko


 -
  Building /etc/modprobe.d/zaptel...
  ***
  *** WARNING:
  *** If you had custom settings in /etc/modprobe.d/zaptel,
  *** they have been moved to /etc/modprobe.d/zaptel.bak.
 
 CentOS? /etc/modprobe.d ? What version is it, exactly?

I'm  not sure which CentOS version - how can I tell?

-
# ls /etc/modprobe.d
blacklist-compat  modprobe.conf.dist  zaptel  zaptel.bak
# cat /etc/modprobe.d/zaptel
# automatically generated file; do not edit
install tor2 /sbin/modprobe --ignore-install tor2 $CMDLINE_OPTS
 /sbin/ztcfg
install torisa /sbin/modprobe --ignore-install