Re: [asterisk-users] zaptel 1.2.22.1 on kernel 2.6.22: wctdm24xxp.ko needs unknown symbol pci_module_init

2008-01-02 Thread Stefan Guenther
Hi,

 
 The only module that seems to require the deprecated
 function pci_module_init is wctdm24xxp.
 
I had the same problem, when I tried to compile the driver for an 
EICON/DIALOGIC card.
I'm not a kernel expert, but with a number of other postings I found 
out, that with kernel version 2.6.22 that following had changed:

Instead of pci_module_init the driver has to use 
pci_register_driver. Kernel 2.6.22 obviously doesn't use 
pci_module_init anymore.
Well I suggest you either use kernel version 2.6.20 or you replace 
pci_module_init with  pci_register_driver in wctdm24xxp.

Stefan
-- 


in-put GbR - Das Linux-Systemhaus
Stefan-Michael Guenther
Geschaeftsfuehrer
Moltkestrasse 49 D-76133 Karlsruhe
Tel./Fax : +49 (0)721 / 83044 - 98/93
http://www.in-put.de

  Schulungen  Installationen
  Beratung   Support
   Voice-over-IP-Loesungen


___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

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


Re: [asterisk-users] zaptel 1.2.22.1 on kernel 2.6.22: wctdm24xxp.ko needs unknown symbol pci_module_init

2008-01-02 Thread Tzafrir Cohen
On Wed, Jan 02, 2008 at 10:31:17AM +0100, Stefan Guenther wrote:
 Hi,
 
  
  The only module that seems to require the deprecated
  function pci_module_init is wctdm24xxp.
  
 I had the same problem, when I tried to compile the driver for an 
 EICON/DIALOGIC card.
 I'm not a kernel expert, but with a number of other postings I found 
 out, that with kernel version 2.6.22 that following had changed:
 
 Instead of pci_module_init the driver has to use 
 pci_register_driver. Kernel 2.6.22 obviously doesn't use 
 pci_module_init anymore.
 Well I suggest you either use kernel version 2.6.20 or you replace 
 pci_module_init with  pci_register_driver in wctdm24xxp.

But zaptel has fixed this in around zaptel 1.2.20 / 1.4.5, IIRC.

Check for the macro zap_pci_module . Maybe it is incorrectly defined for
your kernel for some reason.

-- 
   Tzafrir Cohen
icq#16849755  jabber:[EMAIL PROTECTED]
+972-50-7952406   mailto:[EMAIL PROTECTED]
http://www.xorcom.com  iax:[EMAIL PROTECTED]/tzafrir

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

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


Re: [asterisk-users] zaptel 1.2.22.1 on kernel 2.6.22: wctdm24xxp.ko needs unknown symbol pci_module_init

2008-01-02 Thread Vieri

--- Stefan Guenther [EMAIL PROTECTED] wrote:

 Hi,
 
  
  The only module that seems to require the
 deprecated
  function pci_module_init is wctdm24xxp.
  
 I had the same problem, when I tried to compile the
 driver for an 
 EICON/DIALOGIC card.
 I'm not a kernel expert, but with a number of other
 postings I found 
 out, that with kernel version 2.6.22 that following
 had changed:
 
 Instead of pci_module_init the driver has to use 
 pci_register_driver. Kernel 2.6.22 obviously
 doesn't use 
 pci_module_init anymore.
 Well I suggest you either use kernel version 2.6.20
 or you replace 
 pci_module_init with  pci_register_driver in
 wctdm24xxp.

Thanks but I suppose that it's zaptel.h's job to do
that, ie.:
File: zaptel.h

#if LINUX_VERSION_CODE = KERNEL_VERSION(2,6,10)
#define zap_pci_module pci_register_driver
#else
#define zap_pci_module pci_module_init
#endif

and all C files seem to call it right:

./pciradio.c:   res =
zap_pci_module(pciradio_driver);
./tor2.c:   res = zap_pci_module(tor2_driver);
./wcfxo.c:  res = zap_pci_module(wcfxo_driver);
./wct1xxp.c:res = zap_pci_module(t1xxp_driver);
./wct4xxp/base.c:   res =
zap_pci_module(t4_driver);
./wctc4xxp/base.c:  res =
zap_pci_module(wcdte_driver);
./wctdm.c:  res = zap_pci_module(wctdm_driver);
./wctdm24xxp/base.c:res =
zap_pci_module(wctdm_driver);
./wcte11xp.c:   res = zap_pci_module(t1xxp_driver);
./wcte12xp.c:   res = zap_pci_module(te12xp_driver);

So at compile time, something screws up (if
conditional in zaptel.h?) and wctdm24xxp.ko calls
pci_module_init instead of pci_register_driver.

Looks like a bug in the zaptel build/make process.



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

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


Re: [asterisk-users] zaptel 1.2.22.1 on kernel 2.6.22: wctdm24xxp.ko needs unknown symbol pci_module_init

2008-01-02 Thread Vieri

--- Vieri [EMAIL PROTECTED] wrote:
 --- Stefan Guenther [EMAIL PROTECTED] wrote:
 
  Hi,
  
   
   The only module that seems to require the
  deprecated
   function pci_module_init is wctdm24xxp.
   
  I had the same problem, when I tried to compile
 the
  driver for an 
  EICON/DIALOGIC card.
  I'm not a kernel expert, but with a number of
 other
  postings I found 
  out, that with kernel version 2.6.22 that
 following
  had changed:
  
  Instead of pci_module_init the driver has to use
 
  pci_register_driver. Kernel 2.6.22 obviously
  doesn't use 
  pci_module_init anymore.
  Well I suggest you either use kernel version
 2.6.20
  or you replace 
  pci_module_init with  pci_register_driver in
  wctdm24xxp.
 
 Thanks but I suppose that it's zaptel.h's job to
 do
 that, ie.:
 File: zaptel.h
 
 #if LINUX_VERSION_CODE = KERNEL_VERSION(2,6,10)
 #define zap_pci_module pci_register_driver
 #else
 #define zap_pci_module pci_module_init
 #endif
 
 and all C files seem to call it right:
 
 ./pciradio.c:   res =
 zap_pci_module(pciradio_driver);
 ./tor2.c:   res = zap_pci_module(tor2_driver);
 ./wcfxo.c:  res = zap_pci_module(wcfxo_driver);
 ./wct1xxp.c:res = zap_pci_module(t1xxp_driver);
 ./wct4xxp/base.c:   res =
 zap_pci_module(t4_driver);
 ./wctc4xxp/base.c:  res =
 zap_pci_module(wcdte_driver);
 ./wctdm.c:  res = zap_pci_module(wctdm_driver);
 ./wctdm24xxp/base.c:res =
 zap_pci_module(wctdm_driver);
 ./wcte11xp.c:   res = zap_pci_module(t1xxp_driver);
 ./wcte12xp.c:   res =
 zap_pci_module(te12xp_driver);
 
 So at compile time, something screws up (if
 conditional in zaptel.h?) and wctdm24xxp.ko calls
 pci_module_init instead of pci_register_driver.
 
 Looks like a bug in the zaptel build/make process.

Also, /usr/src/linux/include/linux/version.h has:

#define LINUX_VERSION_CODE 132630
#define KERNEL_VERSION(a,b,c) (((a)  16) + ((b) 
8) + (c))



  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

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


Re: [asterisk-users] zaptel 1.2.22.1 on kernel 2.6.22: wctdm24xxp.ko needs unknown symbol pci_module_init

2008-01-02 Thread Tzafrir Cohen
On Wed, Jan 02, 2008 at 02:19:08AM -0800, Vieri wrote:
 
 --- Stefan Guenther [EMAIL PROTECTED] wrote:
 
  Hi,
  
   
   The only module that seems to require the
  deprecated
   function pci_module_init is wctdm24xxp.
   
  I had the same problem, when I tried to compile the
  driver for an 
  EICON/DIALOGIC card.
  I'm not a kernel expert, but with a number of other
  postings I found 
  out, that with kernel version 2.6.22 that following
  had changed:
  
  Instead of pci_module_init the driver has to use 
  pci_register_driver. Kernel 2.6.22 obviously
  doesn't use 
  pci_module_init anymore.
  Well I suggest you either use kernel version 2.6.20
  or you replace 
  pci_module_init with  pci_register_driver in
  wctdm24xxp.
 
 Thanks but I suppose that it's zaptel.h's job to do
 that, ie.:
 File: zaptel.h
 
 #if LINUX_VERSION_CODE = KERNEL_VERSION(2,6,10)
 #define zap_pci_module pci_register_driver
 #else
 #define zap_pci_module pci_module_init
 #endif
 
 and all C files seem to call it right:
 
 ./pciradio.c:   res =
 zap_pci_module(pciradio_driver);
 ./tor2.c:   res = zap_pci_module(tor2_driver);
 ./wcfxo.c:  res = zap_pci_module(wcfxo_driver);
 ./wct1xxp.c:res = zap_pci_module(t1xxp_driver);
 ./wct4xxp/base.c:   res =
 zap_pci_module(t4_driver);
 ./wctc4xxp/base.c:  res =
 zap_pci_module(wcdte_driver);
 ./wctdm.c:  res = zap_pci_module(wctdm_driver);
 ./wctdm24xxp/base.c:res =
 zap_pci_module(wctdm_driver);
 ./wcte11xp.c:   res = zap_pci_module(t1xxp_driver);
 ./wcte12xp.c:   res = zap_pci_module(te12xp_driver);
 
 So at compile time, something screws up (if
 conditional in zaptel.h?) and wctdm24xxp.ko calls
 pci_module_init instead of pci_register_driver.
 
 Looks like a bug in the zaptel build/make process.

Fine. So let's trace it.

(that said, I'd appreciate it if someone more familiar with the driver
would step in. I might be doing something silly)

As I cannot replicate it here, I'd like to ask you to add the following
lines to wctm24xxp/base.c right before the call to zap_pci_module():

#warning version KERNEL_VERSION.
#warning will now call function zap_pci_module().

re-run 'make' and report here what warnings you got.

-- 
   Tzafrir Cohen
icq#16849755  jabber:[EMAIL PROTECTED]
+972-50-7952406   mailto:[EMAIL PROTECTED]
http://www.xorcom.com  iax:[EMAIL PROTECTED]/tzafrir

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

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


Re: [asterisk-users] zaptel 1.2.22.1 on kernel 2.6.22: wctdm24xxp.ko needs unknown symbol pci_module_init

2008-01-02 Thread Vieri

--- Tzafrir Cohen [EMAIL PROTECTED] wrote:

 As I cannot replicate it here, I'd like to ask you
 to add the following
 lines to wctm24xxp/base.c right before the call to
 zap_pci_module():
 
 #warning version KERNEL_VERSION.
 #warning will now call function zap_pci_module().
 
 re-run 'make' and report here what warnings you got.

I'm not familiar with the #warning syntax and don't
know why the values are not printed below:

/var/tmp/portage/net-misc/zaptel-1.2.22.1/work/zaptel-1.2.22.1/wctdm24xxp/base.c
:3627:2: warning: #warning version KERNEL_VERSION.
/var/tmp/portage/net-misc/zaptel-1.2.22.1/work/zaptel-1.2.22.1/wctdm24xxp/base.c
:3628:2: warning: #warning will now call funstion
zap_pci_module().

Maybe it's a cflags issue. I'm using:
-O2 -mtune=i686 -pipe -DSTANDALONE_ZAPATA
-DBUILDING_TONEZONE -DHOTPLUG_FIRMWARE -I. -Iinclude
-g -fPIC -Wall -DZAPTEL_CONFIG=\/etc/zaptel.conf\

You may notice I use Gentoo's portage sandbox to build
(thus defined DESTDIR).
However, I did a make on a clean, non-patched,
directly-downloaded-from-Digium zaptel tarball and the
same thing happened.

If I write this:

#warning KERNEL_VERSION
#if LINUX_VERSION_CODE  KERNEL_VERSION(2,6,20)
#warning Linux ver  2.6.20
#else
#warning Linux ver = 2.6.20
#endif

res = zap_pci_module(wctdm_driver);

then I get this:

/var/tmp/portage/net-misc/zaptel-1.2.22.1/work/zaptel-1.2.22.1/wctdm24xxp/base.c
:3627:2: warning: #warning KERNEL_VERSION
/var/tmp/portage/net-misc/zaptel-1.2.22.1/work/zaptel-1.2.22.1/wctdm24xxp/base.c
:3631:2: warning: #warning Linux ver = 2.6.20


If I write this:

#if LINUX_VERSION_CODE == KERNEL_VERSION(2,6,22)
#warning kernel is 2.6.22
#else
#warning kernel is not 2.6.22
#endif
res = zap_pci_module(wctdm_driver);

I get this:

  CC [M] 
/var/tmp/portage/net-misc/zaptel-1.2.22.1/work/zaptel-1.2.22.1/wctdm24xxp/base.o
/var/tmp/portage/net-misc/zaptel-1.2.22.1/work/zaptel-1.2.22.1/wctdm24xxp/base.c
:3628:2: warning: #warning kernel is 2.6.22




  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

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


Re: [asterisk-users] zaptel 1.2.22.1 on kernel 2.6.22: wctdm24xxp.ko needs unknown symbol pci_module_init

2008-01-02 Thread Tzafrir Cohen
On Tue, Jan 01, 2008 at 11:38:44PM -0800, Vieri wrote:

 # modprobe wctdm24xxp
 FATAL: Error inserting wctdm24xxp
 (/lib/modules/2.6.22-gentoo-r9/misc/wctdm24xxp.ko):

One other thing to check: 
Maybe this one is a left-over from an older version of zaptel. It has 
been moved to the subdirectory wctdm24xxp/ in versions later than 1.2.19, 
I believe. 

-- 
   Tzafrir Cohen
icq#16849755  jabber:[EMAIL PROTECTED]
+972-50-7952406   mailto:[EMAIL PROTECTED]
http://www.xorcom.com  iax:[EMAIL PROTECTED]/tzafrir

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

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


Re: [asterisk-users] zaptel 1.2.22.1 on kernel 2.6.22: wctdm24xxp.ko needs unknown symbol pci_module_init

2008-01-02 Thread Vieri

--- Tzafrir Cohen [EMAIL PROTECTED] wrote:

 On Tue, Jan 01, 2008 at 11:38:44PM -0800, Vieri
 wrote:
 
  # modprobe wctdm24xxp
  FATAL: Error inserting wctdm24xxp
 
 (/lib/modules/2.6.22-gentoo-r9/misc/wctdm24xxp.ko):
 
 One other thing to check: 
 Maybe this one is a left-over from an older version
 of zaptel. It has 
 been moved to the subdirectory wctdm24xxp/ in
 versions later than 1.2.19, 
 I believe. 

You're right. I have two modules, one in misc and one
in the subdir.
Thanks a lot for pointing that out.
I cleaned that up and now it loads fine.
Fortunately I didn't file a bug report.

Thanks for your help and time.



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

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


[asterisk-users] zaptel 1.2.22.1 on kernel 2.6.22: wctdm24xxp.ko needs unknown symbol pci_module_init

2008-01-01 Thread Vieri
Hi,

Before I report a bug on http://bugs.digium.com, I
would like to know if someone is seeing the same error
message.

Personally I am not using wctdm24xxp but other modules
such as wcte12xp and wctdm. The latter modules load
fine and are compiled with pci_register_driver as
expected.

The only module that seems to require the deprecated
function pci_module_init is wctdm24xxp.

Is this normal?

Thanks,

Vieri



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

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


Re: [asterisk-users] zaptel 1.2.22.1 on kernel 2.6.22: wctdm24xxp.ko needs unknown symbol pci_module_init

2008-01-01 Thread Tzafrir Cohen
On Tue, Jan 01, 2008 at 10:24:24AM -0800, Vieri wrote:
 Hi,
 
 Before I report a bug on http://bugs.digium.com, I
 would like to know if someone is seeing the same error
 message.
 
 Personally I am not using wctdm24xxp but other modules
 such as wcte12xp and wctdm. The latter modules load
 fine and are compiled with pci_register_driver as
 expected.
 
 The only module that seems to require the deprecated
 function pci_module_init is wctdm24xxp.

Is it a custom kernel that has no PCI support?

-- 
   Tzafrir Cohen
icq#16849755  jabber:[EMAIL PROTECTED]
+972-50-7952406   mailto:[EMAIL PROTECTED]
http://www.xorcom.com  iax:[EMAIL PROTECTED]/tzafrir

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

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


Re: [asterisk-users] zaptel 1.2.22.1 on kernel 2.6.22: wctdm24xxp.ko needs unknown symbol pci_module_init

2008-01-01 Thread Vieri

--- Tzafrir Cohen [EMAIL PROTECTED] wrote:

 Is it a custom kernel that has no PCI support?

It's a custom 2.6.22 with

# grep -i pci /usr/src/linux/.config
# Bus options (PCI, PCMCIA, EISA, MCA, ISA)
CONFIG_PCI=y
# CONFIG_PCI_GOBIOS is not set
# CONFIG_PCI_GOMMCONFIG is not set
# CONFIG_PCI_GODIRECT is not set
CONFIG_PCI_GOANY=y
CONFIG_PCI_BIOS=y
CONFIG_PCI_DIRECT=y
CONFIG_PCI_MMCONFIG=y
CONFIG_PCIEPORTBUS=y
CONFIG_PCIEAER=y
# CONFIG_PCI_MSI is not set
CONFIG_EISA_PCI_EISA=y
# CONFIG_HOTPLUG_PCI is not set
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_SHARE_IRQ=y
CONFIG_IDEPCI_PCIBUS_ORDER=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
# CONFIG_PATA_CMD640_PCI is not set
# CONFIG_IEEE1394_PCILYNX is not set
CONFIG_NET_PCI=y
CONFIG_NE2K_PCI=m
CONFIG_TMSPCI=m
CONFIG_PCI200SYN=m
CONFIG_DSCC4_PCISYNC=y
CONFIG_DSCC4_PCI_RST=y
CONFIG_ISDN_DRV_AVMB1_B1PCI=m
CONFIG_ISDN_DRV_AVMB1_B1PCIV4=y
CONFIG_ISDN_DRV_AVMB1_T1PCI=m
CONFIG_ISDN_DIVAS_BRIPCI=y
CONFIG_ISDN_DIVAS_PRIPCI=y
CONFIG_SERIO_PCIPS2=m
CONFIG_SERIAL_8250_PCI=y



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

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


Re: [asterisk-users] zaptel 1.2.22.1 on kernel 2.6.22: wctdm24xxp.ko needs unknown symbol pci_module_init

2008-01-01 Thread Vieri
If you have zaptel 1.2.22.1 and kernel 2.6.22 could
you please do the following and see if it does the
same for you?

# modprobe wctdm24xxp
FATAL: Error inserting wctdm24xxp
(/lib/modules/2.6.22-gentoo-r9/misc/wctdm24xxp.ko):
Unknown symbol in module, or unknown parameter (see
dmesg)

dmesg:
wctdm24xxp: Unknown symbol pci_module_init

Thanks

Vieri
--- Vieri [EMAIL PROTECTED] wrote:

 Hi,
 
 Before I report a bug on http://bugs.digium.com, I
 would like to know if someone is seeing the same
 error
 message.
 
 Personally I am not using wctdm24xxp but other
 modules
 such as wcte12xp and wctdm. The latter modules load
 fine and are compiled with pci_register_driver as
 expected.
 
 The only module that seems to require the deprecated
 function pci_module_init is wctdm24xxp.
 
 Is this normal?
 
 Thanks,
 
 Vieri



  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

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