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

Vieri rentorbuy at yahoo.com
Wed Jan 2 04:19:08 CST 2008


--- Stefan Guenther <asterisk01 at in-put.de> 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 




More information about the asterisk-users mailing list