[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 06:40:58 CST 2008


--- Tzafrir Cohen <tzafrir.cohen at xorcom.com> 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



More information about the asterisk-users mailing list