[asterisk-bugs] [DAHDI-linux 0013427]: Compile error on CentOS-4.6 with Kernel-2.6.9-67.0.15.ELsmp and CONFIG_DAHDI_NET

Asterisk Bug Tracker noreply at bugs.digium.com
Sat Oct 25 05:33:52 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13427 
====================================================================== 
Reported By:                tusar
Assigned To:                sruffell
====================================================================== 
Project:                    DAHDI-linux
Issue ID:                   13427
Category:                   General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2008-09-05 04:57 CDT
Last Modified:              2008-10-25 05:33 CDT
====================================================================== 
Summary:                    Compile error on CentOS-4.6 with
Kernel-2.6.9-67.0.15.ELsmp and CONFIG_DAHDI_NET
Description: 
Trying to compile DAHDI with "CONFIG_DAHDI_NET" enable on CentOS-4.6 but
getting compile error like below ...

OS     : CentOS-4.6
Kernel : 2.6.9-67.0.15.ELsmp
GCC    : gcc-3.4.6-9
DAHDI  : dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2
Enabled: CONFIG_DAHDI_NET



[root at SunFlower dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2]# make
make -C linux all
make[1]: Entering directory
`/home/test/asterisk_all/asterisk-1.6/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux'
make -C /lib/modules/2.6.9-67.0.15.ELsmp/build ARCH=i386
SUBDIRS=/home/test/asterisk_all/asterisk-1.6/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi
DAHDI_INCLUDE=/home/test/asterisk_all/asterisk-1.6/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/include
HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
make[2]: Entering directory `/usr/src/linux-2.6.9-67.0.15.ELsmp'
  CC [M] 
/home/test/asterisk_all/asterisk-1.6/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/dahdi-base.o
/home/test/asterisk_all/asterisk-1.6/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/dahdi-base.c:1625:
warning: return type defaults to `int'
/home/test/asterisk_all/asterisk-1.6/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/dahdi-base.c:
In function `dahdi_xmit':
/home/test/asterisk_all/asterisk-1.6/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/dahdi-base.c:1697:
error: `outbug' undeclared (first use in this function)
/home/test/asterisk_all/asterisk-1.6/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/dahdi-base.c:1697:
error: (Each undeclared identifier is reported only once
/home/test/asterisk_all/asterisk-1.6/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/dahdi-base.c:1697:
error: for each function it appears in.)
/home/test/asterisk_all/asterisk-1.6/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/dahdi-base.c:
In function `dahdi_unregister':
/home/test/asterisk_all/asterisk-1.6/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/dahdi-base.c:5406:
warning: passing arg 1 of `class_simple_device_remove' makes integer from
pointer without a cast
/home/test/asterisk_all/asterisk-1.6/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/dahdi-base.c:5406:
error: too many arguments to function `class_simple_device_remove'
/home/test/asterisk_all/asterisk-1.6/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/dahdi-base.c:
In function `dahdi_unregister_chardev':
/home/test/asterisk_all/asterisk-1.6/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/dahdi-base.c:7793:
warning: passing arg 1 of `class_simple_device_remove' makes integer from
pointer without a cast
/home/test/asterisk_all/asterisk-1.6/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/dahdi-base.c:7793:
error: too many arguments to function `class_simple_device_remove'
/home/test/asterisk_all/asterisk-1.6/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/dahdi-base.c:
In function `dahdi_cleanup':
/home/test/asterisk_all/asterisk-1.6/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/dahdi-base.c:7832:
warning: passing arg 1 of `class_simple_device_remove' makes integer from
pointer without a cast
/home/test/asterisk_all/asterisk-1.6/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/dahdi-base.c:7832:
error: too many arguments to function `class_simple_device_remove'
/home/test/asterisk_all/asterisk-1.6/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/dahdi-base.c:7833:
warning: passing arg 1 of `class_simple_device_remove' makes integer from
pointer without a cast
/home/test/asterisk_all/asterisk-1.6/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/dahdi-base.c:7833:
error: too many arguments to function `class_simple_device_remove'
/home/test/asterisk_all/asterisk-1.6/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/dahdi-base.c:7834:
warning: passing arg 1 of `class_simple_device_remove' makes integer from
pointer without a cast
/home/test/asterisk_all/asterisk-1.6/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/dahdi-base.c:7834:
error: too many arguments to function `class_simple_device_remove'
/home/test/asterisk_all/asterisk-1.6/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/dahdi-base.c:7835:
warning: passing arg 1 of `class_simple_device_remove' makes integer from
pointer without a cast
/home/test/asterisk_all/asterisk-1.6/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/dahdi-base.c:7835:
error: too many arguments to function `class_simple_device_remove'
make[3]: ***
[/home/test/asterisk_all/asterisk-1.6/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/dahdi-base.o]
Error 1
make[2]: ***
[_module_/home/test/asterisk_all/asterisk-1.6/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi]
Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.9-67.0.15.ELsmp'
make[1]: *** [modules] Error 2
make[1]: Leaving directory
`/home/test/asterisk_all/asterisk-1.6/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux'
make: *** [all] Error 2

Regards,

//Tusar\\
====================================================================== 

---------------------------------------------------------------------- 
 (0094271) tusar (reporter) - 2008-10-25 05:33
 http://bugs.digium.com/view.php?id=13427#c94271 
---------------------------------------------------------------------- 
Now I am getting compile error for DAHDI-linux ..

DAHDI-linux-r5111
=================
[root at HDLC2 dahdi-linux.r5111.2008.10.23]#
...
...
  LD [M] 
/home/test/asterisk_all/asterisk_src/asterisk-1.6/dahdi-linux.r5111.2008.10.23/drivers/dahdi/wcte12xp/wcte12xp.o
  CC [M] 
/home/test/asterisk_all/asterisk_src/asterisk-1.6/dahdi-linux.r5111.2008.10.23/drivers/dahdi/xpp/card_fxo.o
In file included from
/home/test/asterisk_all/asterisk_src/asterisk-1.6/dahdi-linux.r5111.2008.10.23/drivers/dahdi/xpp/card_fxo.c:32:
/home/test/asterisk_all/asterisk_src/asterisk-1.6/dahdi-linux.r5111.2008.10.23/drivers/dahdi/xpp/xbus-core.h:322:
warning: "enum kobject_action" declared inside parameter list
/home/test/asterisk_all/asterisk_src/asterisk-1.6/dahdi-linux.r5111.2008.10.23/drivers/dahdi/xpp/xbus-core.h:322:
warning: its scope is only this definition or declaration, which is
probably not what you want
/home/test/asterisk_all/asterisk_src/asterisk-1.6/dahdi-linux.r5111.2008.10.23/drivers/dahdi/xpp/xbus-core.h:322:
warning: parameter has incomplete type
/home/test/asterisk_all/asterisk_src/asterisk-1.6/dahdi-linux.r5111.2008.10.23/drivers/dahdi/xpp/card_fxo.c:1344:
error: unknown field `owner' specified in initializer
/home/test/asterisk_all/asterisk_src/asterisk-1.6/dahdi-linux.r5111.2008.10.23/drivers/dahdi/xpp/card_fxo.c:1344:
warning: initialization from incompatible pointer type
make[3]: ***
[/home/test/asterisk_all/asterisk_src/asterisk-1.6/dahdi-linux.r5111.2008.10.23/drivers/dahdi/xpp/card_fxo.o]
Error 1
make[2]: ***
[/home/test/asterisk_all/asterisk_src/asterisk-1.6/dahdi-linux.r5111.2008.10.23/drivers/dahdi/xpp]
Error 2
make[1]: ***
[_module_/home/test/asterisk_all/asterisk_src/asterisk-1.6/dahdi-linux.r5111.2008.10.23/drivers/dahdi]
Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.9-78.0.5.EL.HDLC'
make: *** [modules] Error 2
[root at HDLC2 dahdi-linux.r5111.2008.10.23]#




DAHDI-tools-r5099
==================
[root at HDLC2 dahdi-tools.r5099.2008.10.23]# ./configure
...
...
checking for usb.h... yes
checking for GENERIC_HDLC_VERSION in linux/hdlc.h... no
configure: GENERIC_HDLC_VERSION version 4 not found, disabling sethdlc.
configure: creating ./config.status
config.status: creating build_tools/menuselect-deps
config.status: creating makeopts
configure: *** dahdi-tools build successfully configured ***
[root at HDLC2 dahdi-tools.r5099.2008.10.23]#

I was never able to compile DAHDI-tools with "sethdlc".

OS: CentOS-4.6
Kernel-2.6.9-78.0.5.EL.HDLC
gcc-3.4.6-10
 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-10-25 05:33 tusar          Note Added: 0094271                          
======================================================================




More information about the asterisk-bugs mailing list