Wednesday, January 2, 2008

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

--- Tzafrir Cohen <tzafrir.cohen@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

No comments: