[asterisk-dev] Can't build Zaptel on Fedora Core 5 Test.

Aryanto Rachmad aryanto.rachmad at chello.at
Mon Feb 13 23:26:50 MST 2006


Hi Bill,

I had the same problem as you have. The problem is owner field is removed from struct usb_driver on kernel 2.6.15 onwards. Have a look here:

http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=75318d2d7cab77b14c5d3dbd5e69f2680a769e16

What I did was just commented "owner: THIS_MODULE" on wcusb.c, like this:

#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,16)
/*      owner: THIS_MODULE, */
#endif

It compiled fine afterwards. I am not sure if that was a good solution, but it works for me.

Cheers,

Anto
----
----- Original Message ----- 
From: "William F. Acker WB2FLW +1-303-722-7209" <wacker at octothorp.org>
To: <asterisk-dev at lists.digium.com>
Sent: Tuesday, February 14, 2006 6:49 AM
Subject: [asterisk-dev] Can't build Zaptel on Fedora Core 5 Test.


> Hi all,
> 
>       Since RH moved to a 2.6.16 based kernel on their test release, I get 
> errors when building Zaptel.  here's the last part of the compile attempt. 
> Of course, I can send more if needed.
> /lib/modules/2.6.15-1.1939_FC5spk/build
> make -C /lib/modules/2.6.15-1.1939_FC5spk/build SUBDIRS=/usr/src/redhat/BUILD/zaptel-1.2.3 modules
> make[1]: Entering directory `/usr/src/kernels/2.6.15-1.1939_FC5spk-i686'
>    CC [M]  /usr/src/redhat/BUILD/zaptel-1.2.3/zaptel.o
> /usr/src/redhat/BUILD/zaptel-1.2.3/zaptel.c:188: warning: 'fcstab' defined but not used
>    CC [M]  /usr/src/redhat/BUILD/zaptel-1.2.3/tor2.o
>    CC [M]  /usr/src/redhat/BUILD/zaptel-1.2.3/torisa.o
> /usr/src/redhat/BUILD/zaptel-1.2.3/torisa.c:1145: warning: 'set_tor_base' defined but not used
>    CC [M]  /usr/src/redhat/BUILD/zaptel-1.2.3/wcusb.o
> /usr/src/redhat/BUILD/zaptel-1.2.3/wcusb.c:1452: error: unknown field 'owner' specified in initializer
> /usr/src/redhat/BUILD/zaptel-1.2.3/wcusb.c:1452: warning: initialization from incompatible pointer type
> make[2]: *** [/usr/src/redhat/BUILD/zaptel-1.2.3/wcusb.o] Error 1
> make[1]: *** [_module_/usr/src/redhat/BUILD/zaptel-1.2.3] Error 2
> make[1]: Leaving directory `/usr/src/kernels/2.6.15-1.1939_FC5spk-i686'
> make: *** [linux26] Error 2
> error: Bad exit status from /var/tmp/rpm-tmp.69842 (%build)
> 
> 
> RPM build errors:
>      Bad exit status from /var/tmp/rpm-tmp.69842 (%build)
> 
>            TIA.
> 
> -- 
> Bill in Denver
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
> 
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev
> 




More information about the asterisk-dev mailing list