Sina Bahram
2006-Mar-04 14:26 UTC
[Asterisk-Users] Problem compiling ztdummy on centos 4, 2.6 kernel
Hi all, I hope everyone is doing well. I just joined the list, and I've really enjoyed all I have read about asterisk so far. Unfortunately, I'm having a bit of trouble implementing this thing :). By the way ... I did my best to search the forums, and also to use google extensively, and while I have found pages with people with the same problem, ... The fix suggested on those sites, didn't work for me. Here's what I have: Results of uname -r: 2.6.9-22.0.2.106.unsupportedsmp Arch: X86_64 If you need more specs on the machine or OS, please let me know. I downloaded and have been following the asterisk book, and in chapter three I followed all the instructions on downloading the sources, untarring them, and so forth. Zaptel compiled without a hitch, as did the rest of the asterisk packages. I modified udev, and I restarted the box: ... I did: /etc/init.d/zaptel start I get: Loading zaptel framework: FATAL: Module zaptel not found. [FAILED] Waiting for zap to come online...Error: missing /dev/zap! If I do /sbin/modprobe zaptel I get: FATAL: Module zaptel not found. If I do /sbin/modprobe ztdummy I get: FATAL: Module ztdummy not found. FATAL: Error running install command for ztdummy Also, if i run: /etc/init.d/zaptel reload I get: Reloading ztcfg: Notice: Configuration file is /etc/zaptel.conf line 0: Unable to open master device '/dev/zap/ctl' 1 error(s) detected [FAILED] If I go back to /usr/src/zaptel-1.2.4 and I do make ztdummy I get: cc ztdummy.o -o ztdummy /usr/lib/gcc/x86_64-redhat-linux/3.4.4/../../../../lib64/crt1.o(.text+0x21): In function `_start': : undefined reference to `main' ztdummy.o(.text+0xc): In function `ztdummy_timer': /usr/src/zaptel-1.2.4/ztdummy.c:154: undefined reference to `zt_receive' ztdummy.o(.text+0x18):/usr/src/zaptel-1.2.4/ztdummy.c:155: undefined reference t o `zt_transmit' ztdummy.o(.text+0x1f):/usr/src/zaptel-1.2.4/ztdummy.c:156: undefined reference t o `jiffies' ztdummy.o(.text+0x4d): In function `init_module': include/linux/slab.h:93: undefined reference to `malloc_sizes' ztdummy.o(.text+0x52):include/linux/slab.h:93: undefined reference to `kmem_cach e_alloc' ztdummy.o(.text+0x6a): In function `init_module': /usr/src/zaptel-1.2.4/ztdummy.c:232: undefined reference to `printk' ztdummy.o(.text+0x197):/usr/src/zaptel-1.2.4/ztdummy.c:192: undefined reference to `zt_register' ztdummy.o(.text+0x1a9):/usr/src/zaptel-1.2.4/ztdummy.c:239: undefined reference to `printk' ztdummy.o(.text+0x1b5):/usr/src/zaptel-1.2.4/ztdummy.c:240: undefined reference to `kfree' ztdummy.o(.text+0x1e2):/usr/src/zaptel-1.2.4/ztdummy.c:261: undefined reference to `jiffies' ztdummy.o(.text+0x23d): In function `init_module': include/linux/timer.h:87: undefined reference to `__mod_timer' ztdummy.o(.text+0x255): In function `init_module': /usr/src/zaptel-1.2.4/ztdummy.c:286: undefined reference to `printk' ztdummy.o(.text+0x27c): In function `cleanup_module': /usr/src/zaptel-1.2.4/ztdummy.c:298: undefined reference to `del_timer' ztdummy.o(.text+0x288):/usr/src/zaptel-1.2.4/ztdummy.c:303: undefined reference to `zt_unregister' ztdummy.o(.text+0x294):/usr/src/zaptel-1.2.4/ztdummy.c:304: undefined reference to `kfree' ztdummy.o(.text+0x39): In function `ztdummy_timer': include/linux/timer.h:87: undefined reference to `__mod_timer' ztdummy.o(.text+0x2b0): In function `cleanup_module': /usr/src/zaptel-1.2.4/ztdummy.c:310: undefined reference to `printk' ztdummy.o(__param+0x10): undefined reference to `param_set_int' ztdummy.o(__param+0x18): undefined reference to `param_get_int' collect2: ld returned 1 exit status make: *** [ztdummy] Error 1 Any ideas? I know I posted things in some wrong order here, but when I actually did them as a part of the install progress: I followed the order layed out in chapter 3 of the book. Thanks for any assistance. Take care, Sina
Dovid Bender
2006-Mar-05 05:15 UTC
[Asterisk-Users] Problem compiling ztdummy on centos 4, 2.6 kernel
did you uncommnet # from before ztdummy ? --- Sina Bahram <sbahram@nc.rr.com> wrote:> Hi all, > > I hope everyone is doing well. I just joined the > list, and I've really > enjoyed all I have read about asterisk so far. > Unfortunately, I'm having a > bit of trouble implementing this thing :). > > By the way ... I did my best to search the forums, > and also to use google > extensively, and while I have found pages with > people with the same problem, > ... The fix suggested on those sites, didn't work > for me. > > Here's what I have: > > Results of uname -r: > 2.6.9-22.0.2.106.unsupportedsmp > > Arch: > X86_64 > > If you need more specs on the machine or OS, please > let me know. > > I downloaded and have been following the asterisk > book, and in chapter three > I followed all the instructions on downloading the > sources, untarring them, > and so forth. > > Zaptel compiled without a hitch, as did the rest of > the asterisk packages. I > modified udev, and I restarted the box: ... I did: > > /etc/init.d/zaptel start > > I get: > > Loading zaptel framework: FATAL: Module zaptel not > found. > > [FAILED] > Waiting for zap to come online...Error: missing > /dev/zap! > > If I do > > /sbin/modprobe zaptel > > I get: > FATAL: Module zaptel not found. > > If I do > > /sbin/modprobe ztdummy > > I get: > > FATAL: Module ztdummy not found. > FATAL: Error running install command for ztdummy > > Also, if i run: > > /etc/init.d/zaptel reload > > I get: > > Reloading ztcfg: Notice: Configuration file is > /etc/zaptel.conf > line 0: Unable to open master device '/dev/zap/ctl' > 1 error(s) detected > > [FAILED] > > If I go back to /usr/src/zaptel-1.2.4 and I do > > make ztdummy > > I get: > > cc ztdummy.o -o ztdummy >/usr/lib/gcc/x86_64-redhat-linux/3.4.4/../../../../lib64/crt1.o(.text+0x21):> In > function `_start': > : undefined reference to `main' > ztdummy.o(.text+0xc): In function `ztdummy_timer': > /usr/src/zaptel-1.2.4/ztdummy.c:154: undefined > reference to `zt_receive' >ztdummy.o(.text+0x18):/usr/src/zaptel-1.2.4/ztdummy.c:155:> undefined > reference t > o `zt_transmit' >ztdummy.o(.text+0x1f):/usr/src/zaptel-1.2.4/ztdummy.c:156:> undefined > reference t > o `jiffies' > ztdummy.o(.text+0x4d): In function `init_module': > include/linux/slab.h:93: undefined reference to > `malloc_sizes' > ztdummy.o(.text+0x52):include/linux/slab.h:93: > undefined reference to > `kmem_cach > e_alloc' > ztdummy.o(.text+0x6a): In function `init_module': > /usr/src/zaptel-1.2.4/ztdummy.c:232: undefined > reference to `printk' >ztdummy.o(.text+0x197):/usr/src/zaptel-1.2.4/ztdummy.c:192:> undefined > reference > to `zt_register' >ztdummy.o(.text+0x1a9):/usr/src/zaptel-1.2.4/ztdummy.c:239:> undefined > reference > to `printk' >ztdummy.o(.text+0x1b5):/usr/src/zaptel-1.2.4/ztdummy.c:240:> undefined > reference > to `kfree' >ztdummy.o(.text+0x1e2):/usr/src/zaptel-1.2.4/ztdummy.c:261:> undefined > reference > to `jiffies' > ztdummy.o(.text+0x23d): In function `init_module': > include/linux/timer.h:87: undefined reference to > `__mod_timer' > ztdummy.o(.text+0x255): In function `init_module': > /usr/src/zaptel-1.2.4/ztdummy.c:286: undefined > reference to `printk' > ztdummy.o(.text+0x27c): In function > `cleanup_module': > /usr/src/zaptel-1.2.4/ztdummy.c:298: undefined > reference to `del_timer' >ztdummy.o(.text+0x288):/usr/src/zaptel-1.2.4/ztdummy.c:303:> undefined > reference > to `zt_unregister' >ztdummy.o(.text+0x294):/usr/src/zaptel-1.2.4/ztdummy.c:304:> undefined > reference > to `kfree' > ztdummy.o(.text+0x39): In function `ztdummy_timer': > include/linux/timer.h:87: undefined reference to > `__mod_timer' > ztdummy.o(.text+0x2b0): In function > `cleanup_module': > /usr/src/zaptel-1.2.4/ztdummy.c:310: undefined > reference to `printk' > ztdummy.o(__param+0x10): undefined reference to > `param_set_int' > ztdummy.o(__param+0x18): undefined reference to > `param_get_int' > collect2: ld returned 1 exit status > make: *** [ztdummy] Error 1 > > Any ideas? I know I posted things in some wrong > order here, but when I > actually did them as a part of the install progress: > I followed the order > layed out in chapter 3 of the book. > > Thanks for any assistance. > > Take care, > Sina > > _______________________________________________ > --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>__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Bart van Daal
2006-Mar-06 05:46 UTC
[Asterisk-Users] Problem compiling ztdummy on centos 4, 2.6 kernel
Hi Sina, a detailed list of the steps you took could help. Did you follow the suggestions in README.udev, also a 'make linux26' did some magic for me. kr, Bart -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Dovid Bender Sent: maandag 6 maart 2006 13:41 To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [Asterisk-Users] Problem compiling ztdummy on centos 4, 2.6 kernel plase email a detailed list of what you did. step by step. dovid --- Sina Bahram <sbahram@nc.rr.com> wrote:> Yes, I did > > Take care, > Sina > > -----Original Message----- > From: asterisk-users-bounces@lists.digium.com > [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Dovid > Bender > Sent: Sunday, March 05, 2006 7:16 AM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [Asterisk-Users] Problem compiling ztdummy on centos 4, > 2.6 kernel > > did you uncommnet # from before ztdummy ? > > --- Sina Bahram <sbahram@nc.rr.com> wrote: > > > Hi all, > > > > I hope everyone is doing well. I just joined the > list, and I've really > > enjoyed all I have read about asterisk so far. > > Unfortunately, I'm having a > > bit of trouble implementing this thing :). > > > > By the way ... I did my best to search the forums, > and also to use > > google extensively, and while I have found pages > with people with the > > same problem, ... The fix suggested on those > sites, didn't work for > > me. > > > > Here's what I have: > > > > Results of uname -r: > > 2.6.9-22.0.2.106.unsupportedsmp > > > > Arch: > > X86_64 > > > > If you need more specs on the machine or OS, > please let me know. > > > > I downloaded and have been following the asterisk > book, and in chapter > > three I followed all the instructions on > downloading the sources, > > untarring them, and so forth. > > > > Zaptel compiled without a hitch, as did the rest > of the asterisk > > packages. I modified udev, and I restarted the > box: ... I did: > > > > /etc/init.d/zaptel start > > > > I get: > > > > Loading zaptel framework: FATAL: Module zaptel > not found. > > > > > [FAILED] > > Waiting for zap to come online...Error: missing > /dev/zap! > > > > If I do > > > > /sbin/modprobe zaptel > > > > I get: > > FATAL: Module zaptel not found. > > > > If I do > > > > /sbin/modprobe ztdummy > > > > I get: > > > > FATAL: Module ztdummy not found. > > FATAL: Error running install command for ztdummy > > > > Also, if i run: > > > > /etc/init.d/zaptel reload > > > > I get: > > > > Reloading ztcfg: Notice: Configuration file is > /etc/zaptel.conf line > > 0: Unable to open master device '/dev/zap/ctl' > > 1 error(s) detected > > > > > [FAILED] > > > > If I go back to /usr/src/zaptel-1.2.4 and I do > > > > make ztdummy > > > > I get: > > > > cc ztdummy.o -o ztdummy > > >/usr/lib/gcc/x86_64-redhat-linux/3.4.4/../../../../lib64/crt1.o(.text+0x21):> > In > > function `_start': > > : undefined reference to `main' > > ztdummy.o(.text+0xc): In function `ztdummy_timer': > > /usr/src/zaptel-1.2.4/ztdummy.c:154: undefined > reference to > > `zt_receive' > > >ztdummy.o(.text+0x18):/usr/src/zaptel-1.2.4/ztdummy.c:155:> > undefined > > reference t > > o `zt_transmit' > > >ztdummy.o(.text+0x1f):/usr/src/zaptel-1.2.4/ztdummy.c:156:> > undefined > > reference t > > o `jiffies' > > ztdummy.o(.text+0x4d): In function `init_module': > > include/linux/slab.h:93: undefined reference to > `malloc_sizes' > > ztdummy.o(.text+0x52):include/linux/slab.h:93: > > undefined reference to > > `kmem_cach > > e_alloc' > > ztdummy.o(.text+0x6a): In function `init_module': > > /usr/src/zaptel-1.2.4/ztdummy.c:232: undefined > reference to `printk' > > >ztdummy.o(.text+0x197):/usr/src/zaptel-1.2.4/ztdummy.c:192:> > undefined > > reference > > to `zt_register' > > >ztdummy.o(.text+0x1a9):/usr/src/zaptel-1.2.4/ztdummy.c:239:> > undefined > > reference > > to `printk' > > >ztdummy.o(.text+0x1b5):/usr/src/zaptel-1.2.4/ztdummy.c:240:> > undefined > > reference > > to `kfree' > > >ztdummy.o(.text+0x1e2):/usr/src/zaptel-1.2.4/ztdummy.c:261:> > undefined > > reference > > to `jiffies' > > ztdummy.o(.text+0x23d): In function `init_module': > > include/linux/timer.h:87: undefined reference to > `__mod_timer' > > ztdummy.o(.text+0x255): In function `init_module': > > /usr/src/zaptel-1.2.4/ztdummy.c:286: undefined > reference to `printk' > > ztdummy.o(.text+0x27c): In function > > `cleanup_module': > > /usr/src/zaptel-1.2.4/ztdummy.c:298: undefined > reference to > > `del_timer' > > >ztdummy.o(.text+0x288):/usr/src/zaptel-1.2.4/ztdummy.c:303:> > undefined > > reference > > to `zt_unregister' > > >ztdummy.o(.text+0x294):/usr/src/zaptel-1.2.4/ztdummy.c:304:> > undefined > > reference > > to `kfree' > > ztdummy.o(.text+0x39): In function > `ztdummy_timer': > > include/linux/timer.h:87: undefined reference to > `__mod_timer' > > ztdummy.o(.text+0x2b0): In function > > `cleanup_module': > > /usr/src/zaptel-1.2.4/ztdummy.c:310: undefined > reference to `printk' > > ztdummy.o(__param+0x10): undefined reference to > `param_set_int' > > ztdummy.o(__param+0x18): undefined reference to > `param_get_int' > > collect2: ld returned 1 exit status > > make: *** [ztdummy] Error 1 > > > > Any ideas? I know I posted things in some wrong > order here, but when I > > actually did them as a part of the install > progress: > > I followed the order > > layed out in chapter 3 of the book. > > > > Thanks for any assistance. > > > > Take care, > > Sina > > > > _______________________________________________ > > --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> > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com _______________________________________________ > --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> > _______________________________________________ > --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>__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ --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