[asterisk-users] zaptel compilation problems with linux 2.6.19

Tzafrir Cohen tzafrir.cohen at xorcom.com
Sun Dec 3 01:58:17 MST 2006


Hi

On Sat, Dec 02, 2006 at 07:17:22PM -0500, Matthew Rubenstein wrote:
> On Sat, 2006-12-02 at 09:53 -0700,
> asterisk-users-request at lists.digium.com wrote:
> > Date: Sat, 2 Dec 2006 11:51:37 +0200
> > From: Tzafrir Cohen <tzafrir.cohen at xorcom.com>

> > Subject: Re: [asterisk-users] zaptel compilation problems with linux
> >         2.6.19
> > To: Asterisk-Users <asterisk-users at lists.digium.com>
> > Message-ID: <20061202095137.GA7469 at xorcom.com>
> > 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,
> > > asterisk-users-request at lists.digium.com wrote:
> > > > Message: 18
> > > > Date: Fri, 1 Dec 2006 00:56:10 +0200
> > > > From: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
> > > > Subject: Re: [asterisk-users] zaptel compilation problems with
> > linux
> > > >         2.6.19
> > > > To: asterisk-users at lists.digium.com
> > > > Message-ID: <20061130225610.GJ10512 at xorcom.com>
> > > > 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_misc            12168  1 
> > > dm_mod                 59512  0 
> > > thermal                13864  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 root    26 Sep 10 08:54 build.orig -> /home/src/linux-2.6.16-rc6
> lrwxrwxrwx  1 root root    26 Sep 10 08:54 source.orig -> /home/src/linux-2.6.16-rc6
> # mv build build.orig
> # mv source source.orig

I gather that the output of 'ls' above is actually after the 'mv' below.

> # ln -s build <linux-2.6.16-rc6-src-root-dir>
> # ln -s source <linux-2.6.16-rc6-src-root-dir>



> # cd /lib/modules
> # mv 2.6.16-rc6-060427a 2.6.16-rc6-060427a.running
> # ln -s 2.6.16-rc6 2.6.16-rc6-060427a
> # cd <zaptel-1.2.11-source-root-dir>
> # make clean
> # export KSRC=<linux-2.6.16-rc6-source-root-dir>
> # make linux26
> [... make linux26 log appended ...]
> # make install
> [... make install log appended ...]
> # lsmod
> Module                  Size  Used by
> binfmt_misc            12168  1 
> dm_mod                 59512  0 
> thermal                13864  0 
> processor              25284  1 thermal
> fan                     4772  0 
> floppy                 63172  0 
> generic                 4836  0 [permanent]
> ide_generic             1504  0 [permanent]
> # modprobe ztdummy
> WARNING: Error inserting zaptel
> (/lib/modules/2.6.16-rc6-060427a/misc/zaptel.ko): Invalid module format
> WARNING: Error inserting zaptel
> (/lib/modules/2.6.16-rc6-060427a/misc/zaptel.ko): Invalid module format
> FATAL: Error inserting ztdummy
> (/lib/modules/2.6.16-rc6-060427a/misc/ztdummy.ko): Invalid module format
> FATAL: Error running install command for ztdummy

This means that the kernel source tree which you used does not match the
current kernel image.

> 
> 	So now it looks like the process would work, 

It definetly didn't. "invalid module format" is a sign of breakage.

> except that I'm building
> the modules for running under a 2.6.16-rc6-060427a kernel, but the
> source is just 2.6.16-rc6-060427a . The server was installed by a
> consultant who started with a generic CentOS install at a datacenter.
> Then they took all the components of Trixbox and installed them. Then
> they upgraded to Asterisk Realtime and DB to unixodbc , which meant that
> some subsystems like FreePBX were left broken. Along the way it looks
> like they upgraded the kernel to 2.6.16-rc6-060427a .
> 
> 	At this point, is it a simpler problem to fix the zaptel/ztdummy
> modules install problems I'm having, or just backup my customizations
> (dialplans, AGI, DB schemas), wipe the server down to Debian
> (Sarge/3.1), and reinstall Asterisk (and whatever Trixbox subsystems I
> want to roll), then start installing zaptel/ztdummy for using Meetme
> (etc)?

That's a tough one.

On one hand I hate to answer "reinstall". On the other hand, I like
Debian better.

Don't call me an oobjective observer...

> 
> 	Thanks for your insights. I've already spent more time working on
> fixing the consultant's bad work than I would have if I had tried it
> myself, including the learning curve. And I'm not even really at square
> one.
> 
> [(make linux26); (make install) logfiles]:
> --------------------------------------------------------------------------
> # make linux26
> cc -I. -O4 -g -Wall -DBUILDING_TONEZONE    -DSTANDALONE_ZAPATA
> -DZAPTEL_CONFIG=\"/etc/zaptel.conf\"   -c -o gendigits.o gendigits.c
> cc -o gendigits gendigits.o -lm
> ./gendigits > tones.h
> cc -I. -O4 -g -Wall -DBUILDING_TONEZONE    -DSTANDALONE_ZAPATA
> -DZAPTEL_CONFIG=\"/etc/zaptel.conf\"    makefw.c   -o makefw
> ./makefw tormenta2.rbt tor2fw > tor2fw.h
> Loaded 69900 bytes from file
> ./makefw pciradio.rbt radfw > radfw.h
> Loaded 42096 bytes from file
> ZAPTELVERSION="1.2.11" 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
> cc -I. -O4 -g -Wall -DBUILDING_TONEZONE    -DSTANDALONE_ZAPATA
> -DZAPTEL_CONFIG=\"/etc/zaptel.conf\"   -c -o ztcfg.o ztcfg.c
> cc -c -fPIC -I. -O4 -g -Wall -DBUILDING_TONEZONE    -DBUILDING_TONEZONE
> -o zonedata.lo zonedata.c
> cc -c -fPIC -I. -O4 -g -Wall -DBUILDING_TONEZONE    -DBUILDING_TONEZONE
> -o tonezone.lo tonezone.c
> ar rcs libtonezone.a zonedata.lo tonezone.lo
> cc -o ztcfg ztcfg.o libtonezone.a -lm
> cc -I. -O4 -g -Wall -DBUILDING_TONEZONE    -DSTANDALONE_ZAPATA
> -DZAPTEL_CONFIG=\"/etc/zaptel.conf\"   -c -o torisatool.o torisatool.c
> cc -o torisatool torisatool.o
> cc -I. -O4 -g -Wall -DBUILDING_TONEZONE    -DSTANDALONE_ZAPATA
> -DZAPTEL_CONFIG=\"/etc/zaptel.conf\"   -c -o ztmonitor.o ztmonitor.c
> cc -o ztmonitor ztmonitor.o
> cc -o ztspeed.o -c ztspeed.c
> cc -o ztspeed ztspeed.o
> cc -I. -O4 -g -Wall -DBUILDING_TONEZONE    -DSTANDALONE_ZAPATA
> -DZAPTEL_CONFIG=\"/etc/zaptel.conf\"   -c -o zttool.o zttool.c
> cc -o zttool zttool.o -lnewt
> cc -I. -O4 -g -Wall -DBUILDING_TONEZONE    -DSTANDALONE_ZAPATA
> -DZAPTEL_CONFIG=\"/etc/zaptel.conf\"    zttest.c   -o zttest
> cc -I. -O4 -g -Wall -DBUILDING_TONEZONE    -DSTANDALONE_ZAPATA
> -DZAPTEL_CONFIG=\"/etc/zaptel.conf\"   -c -o fxotune.o fxotune.c
> cc -o fxotune fxotune.o -lm
> <linux-2.6.16-rc6-source-root-dir>
> make -C <linux-2.6.16-rc6-source-root-dir>
> SUBDIRS=<zaptel-1.2.11-source-dir> modules
> make[1]: Entering directory `<linux-2.6.16-rc6-source-root-dir>'
>   CC [M]  <zaptel-1.2.11-source-dir>/zaptel.o
> <zaptel-1.2.11-source-dir>/zaptel.c:188: warning: ‘fcstab’ defined but
> not used
>   CC [M]  <zaptel-1.2.11-source-dir>/tor2.o
>   CC [M]  <zaptel-1.2.11-source-dir>/torisa.o
> <zaptel-1.2.11-source-dir>/torisa.c:1147: warning: ‘set_tor_base’
> defined but not used
>   CC [M]  <zaptel-1.2.11-source-dir>/wcusb.o
>   CC [M]  <zaptel-1.2.11-source-dir>/wcfxo.o
>   CC [M]  <zaptel-1.2.11-source-dir>/wctdm.o
>   CC [M]  <zaptel-1.2.11-source-dir>/wctdm24xxp.o
>   CC [M]  <zaptel-1.2.11-source-dir>/ztdynamic.o
>   CC [M]  <zaptel-1.2.11-source-dir>/ztd-eth.o
> <zaptel-1.2.11-source-dir>/ztd-eth.c:185: warning: initialization from
> incompatible pointer type
>   CC [M]  <zaptel-1.2.11-source-dir>/wct1xxp.o
>   CC [M]  <zaptel-1.2.11-source-dir>/wcte11xp.o
>   CC [M]  <zaptel-1.2.11-source-dir>/pciradio.o
> <zaptel-1.2.11-source-dir>/pciradio.c: In function ‘pciradio_interrupt’:
> <zaptel-1.2.11-source-dir>/pciradio.c:508: warning: ‘byte2’ is used
> uninitialized in this function
>   CC [M]  <zaptel-1.2.11-source-dir>/ztd-loc.o
>   CC [M]  <zaptel-1.2.11-source-dir>/ztdummy.o
>   CC [M]  <zaptel-1.2.11-source-dir>/wct4xxp/base.o
> <zaptel-1.2.11-source-dir>/wct4xxp/vpm450m.h:33: warning:
> ‘oct064_firmware’ defined but not used
> <zaptel-1.2.11-source-dir>/wct4xxp/vpm450m.h:34: warning:
> ‘oct128_firmware’ defined but not used
>   HOSTCC  <zaptel-1.2.11-source-dir>/wct4xxp/fw2h
> <zaptel-1.2.11-source-dir>/wct4xxp/fw2h
> <zaptel-1.2.11-source-dir>/wct4xxp/OCT6114-128D.ima
> <zaptel-1.2.11-source-dir>/wct4xxp/vpmoct128_fw.h
> <zaptel-1.2.11-source-dir>/wct4xxp/fw2h
> <zaptel-1.2.11-source-dir>/wct4xxp/OCT6114-64D.ima
> <zaptel-1.2.11-source-dir>/wct4xxp/vpmoct064_fw.h
>   CC [M]  <zaptel-1.2.11-source-dir>/wct4xxp/vpm450m.o
> <zaptel-1.2.11-source-dir>/wct4xxp/vpm450m.h:33: warning:
> ‘oct064_firmware’ defined but not used
> <zaptel-1.2.11-source-dir>/wct4xxp/vpm450m.h:34: warning:
> ‘oct128_firmware’ defined but not used
>   CC [M]
> <zaptel-1.2.11-source-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_adpcm_chan.o
>   CC [M]
> <zaptel-1.2.11-source-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_channel.o
>   CC [M]
> <zaptel-1.2.11-source-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_chip_open.o
>   CC [M]
> <zaptel-1.2.11-source-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_chip_stats.o
>   CC [M]
> <zaptel-1.2.11-source-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_conf_bridge.o
>   CC [M]
> <zaptel-1.2.11-source-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_debug.o
>   CC [M]
> <zaptel-1.2.11-source-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_events.o
>   CC [M]
> <zaptel-1.2.11-source-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_interrupts.o
>   CC [M]
> <zaptel-1.2.11-source-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_memory.o
>   CC [M]
> <zaptel-1.2.11-source-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_miscellaneous.o
>   CC [M]
> <zaptel-1.2.11-source-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_mixer.o
>   CC [M]
> <zaptel-1.2.11-source-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_phasing_tsst.o
>   CC [M]
> <zaptel-1.2.11-source-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_playout_buf.o
>   CC [M]
> <zaptel-1.2.11-source-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_remote_debug.o
>   CC [M]
> <zaptel-1.2.11-source-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tlv.o
>   CC [M]
> <zaptel-1.2.11-source-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tone_detection.o
>   CC [M]
> <zaptel-1.2.11-source-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tsi_cnct.o
>   CC [M]
> <zaptel-1.2.11-source-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tsst.o
>   CC [M]
> <zaptel-1.2.11-source-dir>/wct4xxp/../oct612x/apilib/bt/octapi_bt0.o
>   CC [M]
> <zaptel-1.2.11-source-dir>/wct4xxp/../oct612x/apilib/largmath/octapi_largmath.o
>   CC [M]
> <zaptel-1.2.11-source-dir>/wct4xxp/../oct612x/apilib/llman/octapi_llman.o
>   LD [M]  <zaptel-1.2.11-source-dir>/wct4xxp/wct4xxp.o
>   CC [M]  <zaptel-1.2.11-source-dir>/xpp/card_fxo.o
>   CC [M]  <zaptel-1.2.11-source-dir>/xpp/slic.o
>   CC [M]  <zaptel-1.2.11-source-dir>/xpp/card_fxs.o
>   CC [M]  <zaptel-1.2.11-source-dir>/xpp/xbus-core.o
>   CC [M]  <zaptel-1.2.11-source-dir>/xpp/xpp_zap.o
> <zaptel-1.2.11-source-dir>/xpp/xpp_zap.c:187:2: warning: #warning
> "xpp_timer must be sampled EXACTLY 1000/per second"
> <zaptel-1.2.11-source-dir>/xpp/xpp_zap.c:187:2: warning: #warning
> "xpp_timer must be sampled EXACTLY 1000/per second"
>   CC [M]  <zaptel-1.2.11-source-dir>/xpp/xproto.o
>   CC [M]  <zaptel-1.2.11-source-dir>/xpp/card_global.o
>   LD [M]  <zaptel-1.2.11-source-dir>/xpp/xpp.o
>   CC [M]  <zaptel-1.2.11-source-dir>/xpp/xpp_usb.o
>   LD [M]  <zaptel-1.2.11-source-dir>/xpp/xpd_fxs.o
>   LD [M]  <zaptel-1.2.11-source-dir>/xpp/xpd_fxo.o
>   Building modules, stage 2.
>   MODPOST
> *** Warning:
> "usb_deregister_dev" [<zaptel-1.2.11-source-dir>/xpp/xpp_usb.ko]
> undefined!
> *** Warning:
> "usb_register_dev" [<zaptel-1.2.11-source-dir>/xpp/xpp_usb.ko]
> undefined!
> *** Warning:
> "usb_reset_device" [<zaptel-1.2.11-source-dir>/xpp/xpp_usb.ko]
> undefined!
> *** Warning:
> "usb_buffer_free" [<zaptel-1.2.11-source-dir>/xpp/xpp_usb.ko] undefined!
> *** Warning:
> "usb_submit_urb" [<zaptel-1.2.11-source-dir>/xpp/xpp_usb.ko] undefined!
> *** Warning: "usb_free_urb" [<zaptel-1.2.11-source-dir>/xpp/xpp_usb.ko]
> undefined!
> *** Warning:
> "usb_buffer_alloc" [<zaptel-1.2.11-source-dir>/xpp/xpp_usb.ko]
> undefined!
> *** Warning: "usb_alloc_urb" [<zaptel-1.2.11-source-dir>/xpp/xpp_usb.ko]
> undefined!
> *** Warning:
> "usb_deregister" [<zaptel-1.2.11-source-dir>/xpp/xpp_usb.ko] undefined!
> *** Warning:
> "usb_register_driver" [<zaptel-1.2.11-source-dir>/xpp/xpp_usb.ko]
> undefined!
> *** Warning: "usb_set_interface" [<zaptel-1.2.11-source-dir>/wcusb.ko]
> undefined!
> *** Warning: "usb_control_msg" [<zaptel-1.2.11-source-dir>/wcusb.ko]
> undefined!
> *** Warning: "usb_deregister" [<zaptel-1.2.11-source-dir>/wcusb.ko]
> undefined!
> *** Warning: "usb_register_driver" [<zaptel-1.2.11-source-dir>/wcusb.ko]
> undefined!
> *** Warning: "usb_submit_urb" [<zaptel-1.2.11-source-dir>/wcusb.ko]
> undefined!
>   CC      <zaptel-1.2.11-source-dir>/pciradio.mod.o
>   LD [M]  <zaptel-1.2.11-source-dir>/pciradio.ko
>   CC      <zaptel-1.2.11-source-dir>/tor2.mod.o
>   LD [M]  <zaptel-1.2.11-source-dir>/tor2.ko
>   CC      <zaptel-1.2.11-source-dir>/torisa.mod.o
>   LD [M]  <zaptel-1.2.11-source-dir>/torisa.ko
>   CC      <zaptel-1.2.11-source-dir>/wcfxo.mod.o
>   LD [M]  <zaptel-1.2.11-source-dir>/wcfxo.ko
>   CC      <zaptel-1.2.11-source-dir>/wct1xxp.mod.o
>   LD [M]  <zaptel-1.2.11-source-dir>/wct1xxp.ko
>   CC      <zaptel-1.2.11-source-dir>/wct4xxp/wct4xxp.mod.o
>   LD [M]  <zaptel-1.2.11-source-dir>/wct4xxp/wct4xxp.ko
>   CC      <zaptel-1.2.11-source-dir>/wctdm.mod.o
>   LD [M]  <zaptel-1.2.11-source-dir>/wctdm.ko
>   CC      <zaptel-1.2.11-source-dir>/wctdm24xxp.mod.o
>   LD [M]  <zaptel-1.2.11-source-dir>/wctdm24xxp.ko
>   CC      <zaptel-1.2.11-source-dir>/wcte11xp.mod.o
>   LD [M]  <zaptel-1.2.11-source-dir>/wcte11xp.ko
>   CC      <zaptel-1.2.11-source-dir>/wcusb.mod.o
>   LD [M]  <zaptel-1.2.11-source-dir>/wcusb.ko
>   CC      <zaptel-1.2.11-source-dir>/xpp/xpd_fxo.mod.o
>   LD [M]  <zaptel-1.2.11-source-dir>/xpp/xpd_fxo.ko
>   CC      <zaptel-1.2.11-source-dir>/xpp/xpd_fxs.mod.o
>   LD [M]  <zaptel-1.2.11-source-dir>/xpp/xpd_fxs.ko
>   CC      <zaptel-1.2.11-source-dir>/xpp/xpp.mod.o
>   LD [M]  <zaptel-1.2.11-source-dir>/xpp/xpp.ko
>   CC      <zaptel-1.2.11-source-dir>/xpp/xpp_usb.mod.o
>   LD [M]  <zaptel-1.2.11-source-dir>/xpp/xpp_usb.ko
>   CC      <zaptel-1.2.11-source-dir>/zaptel.mod.o
>   LD [M]  <zaptel-1.2.11-source-dir>/zaptel.ko
>   CC      <zaptel-1.2.11-source-dir>/ztd-eth.mod.o
>   LD [M]  <zaptel-1.2.11-source-dir>/ztd-eth.ko
>   CC      <zaptel-1.2.11-source-dir>/ztd-loc.mod.o
>   LD [M]  <zaptel-1.2.11-source-dir>/ztd-loc.ko
>   CC      <zaptel-1.2.11-source-dir>/ztdummy.mod.o
>   LD [M]  <zaptel-1.2.11-source-dir>/ztdummy.ko
>   CC      <zaptel-1.2.11-source-dir>/ztdynamic.mod.o
>   LD [M]  <zaptel-1.2.11-source-dir>/ztdynamic.ko
> make[1]: Leaving directory `<linux-2.6.16-rc6-source-root-dir>'
> --------------------------------------------------------------------------
> 
> 
> --------------------------------------------------------------------------
> # make install
> ZAPTELVERSION="1.2.11" 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
> <linux-2.6.16-rc6-source-root-dir>
> make -C <linux-2.6.16-rc6-source-root-dir>
> SUBDIRS=<zaptel-1.2.11-source-dir> modules
> make[1]: Entering directory `<linux-2.6.16-rc6-source-root-dir>'
>   Building modules, stage 2.
>   MODPOST
> *** Warning:
> "usb_deregister_dev" [<zaptel-1.2.11-source-dir>/xpp/xpp_usb.ko]
> undefined!
> *** Warning:
> "usb_register_dev" [<zaptel-1.2.11-source-dir>/xpp/xpp_usb.ko]
> undefined!
> *** Warning:
> "usb_reset_device" [<zaptel-1.2.11-source-dir>/xpp/xpp_usb.ko]
> undefined!
> *** Warning:
> "usb_buffer_free" [<zaptel-1.2.11-source-dir>/xpp/xpp_usb.ko] undefined!
> *** Warning:
> "usb_submit_urb" [<zaptel-1.2.11-source-dir>/xpp/xpp_usb.ko] undefined!
> *** Warning: "usb_free_urb" [<zaptel-1.2.11-source-dir>/xpp/xpp_usb.ko]
> undefined!
> *** Warning:
> "usb_buffer_alloc" [<zaptel-1.2.11-source-dir>/xpp/xpp_usb.ko]
> undefined!
> *** Warning: "usb_alloc_urb" [<zaptel-1.2.11-source-dir>/xpp/xpp_usb.ko]
> undefined!
> *** Warning:
> "usb_deregister" [<zaptel-1.2.11-source-dir>/xpp/xpp_usb.ko] undefined!
> *** Warning:
> "usb_register_driver" [<zaptel-1.2.11-source-dir>/xpp/xpp_usb.ko]
> undefined!
> *** Warning: "usb_set_interface" [<zaptel-1.2.11-source-dir>/wcusb.ko]
> undefined!
> *** Warning: "usb_control_msg" [<zaptel-1.2.11-source-dir>/wcusb.ko]
> undefined!
> *** Warning: "usb_deregister" [<zaptel-1.2.11-source-dir>/wcusb.ko]
> undefined!
> *** Warning: "usb_register_driver" [<zaptel-1.2.11-source-dir>/wcusb.ko]
> undefined!
> *** Warning: "usb_submit_urb" [<zaptel-1.2.11-source-dir>/wcusb.ko]
> undefined!
> make[1]: Leaving directory `<linux-2.6.16-rc6-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 <linux-2.6.16-rc6-source-root-dir>
> SUBDIRS=<zaptel-1.2.11-source-dir> INSTALL_MOD_PATH=
> INSTALL_MOD_DIR=misc modules_install;
> make[1]: Entering directory `<linux-2.6.16-rc6-source-root-dir>'
>   INSTALL <zaptel-1.2.11-source-dir>/pciradio.ko
>   INSTALL <zaptel-1.2.11-source-dir>/tor2.ko
>   INSTALL <zaptel-1.2.11-source-dir>/torisa.ko
>   INSTALL <zaptel-1.2.11-source-dir>/wcfxo.ko
>   INSTALL <zaptel-1.2.11-source-dir>/wct1xxp.ko
>   INSTALL <zaptel-1.2.11-source-dir>/wct4xxp/wct4xxp.ko
>   INSTALL <zaptel-1.2.11-source-dir>/wctdm.ko
>   INSTALL <zaptel-1.2.11-source-dir>/wctdm24xxp.ko
>   INSTALL <zaptel-1.2.11-source-dir>/wcte11xp.ko
>   INSTALL <zaptel-1.2.11-source-dir>/wcusb.ko
>   INSTALL <zaptel-1.2.11-source-dir>/xpp/xpd_fxo.ko
>   INSTALL <zaptel-1.2.11-source-dir>/xpp/xpd_fxs.ko
>   INSTALL <zaptel-1.2.11-source-dir>/xpp/xpp.ko
>   INSTALL <zaptel-1.2.11-source-dir>/xpp/xpp_usb.ko
>   INSTALL <zaptel-1.2.11-source-dir>/zaptel.ko
>   INSTALL <zaptel-1.2.11-source-dir>/ztd-eth.ko
>   INSTALL <zaptel-1.2.11-source-dir>/ztd-loc.ko
>   INSTALL <zaptel-1.2.11-source-dir>/ztdummy.ko
>   INSTALL <zaptel-1.2.11-source-dir>/ztdynamic.ko
> make[1]: Leaving directory `<linux-2.6.16-rc6-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.
> ***
> <zaptel-1.2.11-source-root-dir># lsmod
> Module                  Size  Used by
> binfmt_misc            12168  1 
> dm_mod                 59512  0 
> thermal                13864  0 
> processor              25284  1 thermal
> fan                     4772  0 
> floppy                 63172  0 
> generic                 4836  0 [permanent]
> ide_generic             1504  0 [permanent]
> <zaptel-1.2.11-source-root-dir># modprobe ztdummy
> WARNING: Error inserting zaptel
> (/lib/modules/2.6.16-rc6-060427a/misc/zaptel.ko): Invalid module format
> WARNING: Error inserting zaptel
> (/lib/modules/2.6.16-rc6-060427a/misc/zaptel.ko): Invalid module format
> FATAL: Error inserting ztdummy
> (/lib/modules/2.6.16-rc6-060427a/misc/ztdummy.ko): Invalid module format
> FATAL: Error running install command for ztdummy
> --------------------------------------------------------------------------
> 
> 
> >                Tzafrir Cohen       
> > icq#16849755                    jabber:tzafrir at jabber.org
> > +972-50-7952406           mailto:tzafrir.cohen at xorcom.com       
> > http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir 
> -- 
> 
> (C) Matthew Rubenstein
> 
> 

-- 
               Tzafrir Cohen       
icq#16849755                    jabber:tzafrir at jabber.org
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com       
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir


More information about the asterisk-users mailing list