[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
Mon Oct 27 10:38:20 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13427 
====================================================================== 
Reported By:                tusar
Assigned To:                tzafrir
====================================================================== 
Project:                    DAHDI-linux
Issue ID:                   13427
Category:                   General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             2008-09-05 04:57 CDT
Last Modified:              2008-10-27 10:38 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\\
====================================================================== 

---------------------------------------------------------------------- 
 (0094297) svnbot (reporter) - 2008-10-27 10:38
 http://bugs.digium.com/view.php?id=13427#c94297 
---------------------------------------------------------------------- 
Repository: dahdi
Revision: 5130

U   linux/trunk/drivers/dahdi/xpp/card_bri.c
U   linux/trunk/drivers/dahdi/xpp/card_fxo.c
U   linux/trunk/drivers/dahdi/xpp/card_fxs.c
U   linux/trunk/drivers/dahdi/xpp/card_pri.c
U   linux/trunk/drivers/dahdi/xpp/xbus-core.h
U   linux/trunk/drivers/dahdi/xpp/xbus-sysfs.c
U   linux/trunk/drivers/dahdi/xpp/xdefs.h

------------------------------------------------------------------------
r5130 | tzafrir | 2008-10-27 10:38:19 -0500 (Mon, 27 Oct 2008) | 7 lines

Fix xpp compile problems on kernel < 2.6.16

Support for kernels that use the older hotplug support rather than the
newer uevent.

Fixes the xpp issue from http://bugs.digium.com/view.php?id=13427.

------------------------------------------------------------------------

http://svn.digium.com/view/dahdi?view=rev&revision=5130 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-10-27 10:38 svnbot         Note Added: 0094297                          
======================================================================




More information about the asterisk-bugs mailing list