[asterisk-bugs] [Zaptel 0010515]: Build fails on kernel 2.4 (wctdm24xxp)

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Aug 21 09:57:31 CDT 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=10515 
====================================================================== 
Reported By:                thimm
Assigned To:                mattf
====================================================================== 
Project:                    Zaptel
Issue ID:                   10515
Category:                   wctdm24xxp
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
Zaptel Version:             1.4.4  
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             08-21-2007 09:06 CDT
Last Modified:              08-21-2007 09:57 CDT
====================================================================== 
Summary:                    Build fails on kernel 2.4 (wctdm24xxp)
Description: 
There are a couple of quirks, first wctdm24xxp is not built and the build
fails due to not finding it (it is in its own subdir). The following patch
addresses this:

@@ -384,7 +386,8 @@
 
 wctdm.o: wctdm.h
 
-wctdm24xxp.o: wctdm.h
+wctdm24xxp/wctdm24xxp.o: wctdm.h
+       $(MAKE) -C wctdm24xxp KFLAGS="$(KFLAGS) -I.." CFLAGS="$(CFLAGS)
-I.."
 
 pciradio.o: radfw.h
 


But then it fails with

 make[1]: Leaving directory
`/var/tmp/bach-build/BUILD/zaptel-1.4.5/wct4xxp'
make -C wctdm24xxp
KFLAGS="-I/kernelsrc/el3-x86_64/2.4.21-51.EL-x86_64/include -O6 -DMODULE
-D__KERNEL__ -DEXPORT_SYMTAB
-I/kernelsrc/el3-x86_64/2.4.21-51.EL-x86_64/drivers/net -Wall -I.
-Wstrict-prototypes -fomit-frame-pointer
-I/kernelsrc/el3-x86_64/2.4.21-51.EL-x86_64/drivers/net/wan
-I/kernelsrc/el3-x86_64/2.4.21-51.EL-x86_64/include/net -DMODVERSIONS
-include
/kernelsrc/el3-x86_64/2.4.21-51.EL-x86_64/include/linux/modversions.h 
-mcmodel=kernel -DSTANDALONE_ZAPATA -I.." CFLAGS="-O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m64 -I. -O4 -g -Wall
-DBUILDING_TONEZONE   -m64 -DSTANDALONE_ZAPATA
-DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -I.."
make[1]: Entering directory
`/var/tmp/bach-build/BUILD/zaptel-1.4.5/wctdm24xxp'
/usr/bin/gcc -I/kernelsrc/el3-x86_64/2.4.21-51.EL-x86_64/include -O6
-DMODULE -D__KERNEL__ -DEXPORT_SYMTAB
-I/kernelsrc/el3-x86_64/2.4.21-51.EL-x86_64/drivers/net -Wall -I.
-Wstrict-prototypes -fomit-frame-pointer
-I/kernelsrc/el3-x86_64/2.4.21-51.EL-x86_64/drivers/net/wan
-I/kernelsrc/el3-x86_64/2.4.21-51.EL-x86_64/include/net -DMODVERSIONS
-include
/kernelsrc/el3-x86_64/2.4.21-51.EL-x86_64/include/linux/modversions.h 
-mcmodel=kernel -DSTANDALONE_ZAPATA -I.. -o base.o -c base.c
base.c:45:28: linux/firmware.h: No such file or directory
In file included from base.c:52:
GpakCust.h:24:28: linux/firmware.h: No such file or directory
base.c: In function `vpm150m_config_hw':
base.c:3475: warning: implicit declaration of function
`create_singlethread_workqueue'
base.c:3475: warning: assignment makes pointer from integer without a
cast
base.c: In function `wctdm_vpm150m_init':
base.c:3590: warning: implicit declaration of function `request_firmware'
base.c:3590: structure has no member named `dev'
base.c:3602: warning: implicit declaration of function `release_firmware'
base.c:3616: warning: implicit declaration of function `msleep'
make[1]: *** [base.o] Error 1
make[1]: Leaving directory
`/var/tmp/bach-build/BUILD/zaptel-1.4.5/wctdm24xxp'
make: *** [wctdm24xxp/wctdm24xxp.o] Error 2

====================================================================== 

---------------------------------------------------------------------- 
 mattf - 08-21-07 09:57  
---------------------------------------------------------------------- 
The 2400 driver had to have some changes to it that made it non backwards
compatible with 2.4, that is why you are seeing some compilation problems. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
08-21-07 09:57  mattf          Note Added: 0069168                          
======================================================================




More information about the asterisk-bugs mailing list