[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
Thu Sep 11 05:31:11 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:                     acknowledged
====================================================================== 
Date Submitted:             2008-09-05 04:57 CDT
Last Modified:              2008-09-11 05:31 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\\
====================================================================== 

---------------------------------------------------------------------- 
 (0092335) tusar (reporter) - 2008-09-11 05:31
 http://bugs.digium.com/view.php?id=13427#c92335 
---------------------------------------------------------------------- 
Scenerio:1 :: dahdi-linux-2.0.0-rc4

Compiling fine .


Scenerio:2 :: dahdi-linux-2.0.0-rc4

Enabled with "CONFIG_DAHDI_NET".

Getting Compiling error.

make -C /lib/modules/2.6.9-67.0.15.ELsmp/build ARCH=i386
SUBDIRS=/home/test/asterisk_all/asterisk-1.6/dahdi-linux-2.0.0-rc4/drivers/dahdi
DAHDI_INCLUDE=/home/test/asterisk_all/asterisk-1.6/dahdi-linux-2.0.0-rc4/include
DAHDI_MODULES_EXTRA=" " HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
make[1]: Entering directory `/usr/src/linux-2.6.9-67.0.15.ELsmp'
  CC [M] 
/home/test/asterisk_all/asterisk-1.6/dahdi-linux-2.0.0-rc4/drivers/dahdi/dahdi-base.o
/home/test/asterisk_all/asterisk-1.6/dahdi-linux-2.0.0-rc4/drivers/dahdi/dahdi-base.c:
In function `dahdi_net_open':
/home/test/asterisk_all/asterisk-1.6/dahdi-linux-2.0.0-rc4/drivers/dahdi/dahdi-base.c:1521:
error: `chan' undeclared (first use in this function)
/home/test/asterisk_all/asterisk-1.6/dahdi-linux-2.0.0-rc4/drivers/dahdi/dahdi-base.c:1521:
error: (Each undeclared identifier is reported only once
/home/test/asterisk_all/asterisk-1.6/dahdi-linux-2.0.0-rc4/drivers/dahdi/dahdi-base.c:1521:
error: for each function it appears in.)
/home/test/asterisk_all/asterisk-1.6/dahdi-linux-2.0.0-rc4/drivers/dahdi/dahdi-base.c:
At top level:
/home/test/asterisk_all/asterisk-1.6/dahdi-linux-2.0.0-rc4/drivers/dahdi/dahdi-base.c:1628:
warning: return type defaults to `int'
/home/test/asterisk_all/asterisk-1.6/dahdi-linux-2.0.0-rc4/drivers/dahdi/dahdi-base.c:
In function `dahdi_xmit':
/home/test/asterisk_all/asterisk-1.6/dahdi-linux-2.0.0-rc4/drivers/dahdi/dahdi-base.c:1700:
error: `outbug' undeclared (first use in this function)
make[2]: ***
[/home/test/asterisk_all/asterisk-1.6/dahdi-linux-2.0.0-rc4/drivers/dahdi/dahdi-base.o]
Error 1
make[1]: ***
[_module_/home/test/asterisk_all/asterisk-1.6/dahdi-linux-2.0.0-rc4/drivers/dahdi]
Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.9-67.0.15.ELsmp'
make: *** [modules] Error 2


Scenerio: 3 :: dahdi-tools-2.0.0-rc2

Getting Compiling error.

gcc -g -O2 -I. -O2 -g -fPIC -Wall -DBUILDING_TONEZONE 
-I../dahdi-linux-2.0.0-rc4/include -MD -MT fxotune.o -MF .fxotune.o.d -MP
-c -o fxotune.o fxotune.c
gcc -lm -o fxotune fxotune.o version.o
gcc -g -O2 -I. -O2 -g -fPIC -Wall -DBUILDING_TONEZONE 
-I../dahdi-linux-2.0.0-rc4/include -MD -MT sethdlc.o -MF .sethdlc.o.d -MP
-c -o sethdlc.o sethdlc.c
sethdlc.c:39:2: #error Generic HDLC layer version mismatch, please get
correct sethdlc.c
sethdlc.c:43:2: warning: #warning "No kernel support for Ethernet over
Frame Relay / HDLC, skipping it"
sethdlc.c:153: error: `IF_IFACE_V35' undeclared here (not in a function)
sethdlc.c:153: error: initializer element is not constant
sethdlc.c:153: error: (near initialization for `ifaces[0].value')
sethdlc.c:153: error: initializer element is not constant
sethdlc.c:153: error: (near initialization for `ifaces[0]')
sethdlc.c:154: error: `IF_IFACE_V24' undeclared here (not in a function)
sethdlc.c:154: error: initializer element is not constant
sethdlc.c:154: error: (near initialization for `ifaces[1].value')

....snip....

sethdlc.c:507: error: structure has no member named `ifr_settings'
sethdlc.c:511: error: structure has no member named `ifr_settings'
sethdlc.c:512: error: structure has no member named `ifr_settings'
sethdlc.c:512: error: `IF_GET_IFACE' undeclared (first use in this
function)
sethdlc.c:514: error: `SIOCWANDEV' undeclared (first use in this
function)
sethdlc.c:523: error: structure has no member named `ifr_settings'
sethdlc.c:523: error: `IF_IFACE_SYNC_SERIAL' undeclared (first use in this
function)
sethdlc.c:526: error: structure has no member named `ifr_settings'
sethdlc.c:529: error: structure has no member named `ifr_settings'
sethdlc.c:534: error: `te1' undeclared (first use in this function)
sethdlc.c:543: error: structure has no member named `ifr_settings'
sethdlc.c:544: error: structure has no member named `ifr_settings'
sethdlc.c:556: error: structure has no member named `ifr_settings'
sethdlc.c:557: error: structure has no member named `ifr_settings'
sethdlc.c:557: error: `IF_GET_PROTO' undeclared (first use in this
function)
sethdlc.c:568: error: structure has no member named `ifr_settings'
sethdlc.c:571: error: `fr' undeclared (first use in this function)
sethdlc.c:602: error: `raw' undeclared (first use in this function)
sethdlc.c:616: error: `cisco' undeclared (first use in this function)
sethdlc.c:629: error: structure has no member named `ifr_settings'
make[1]: *** [sethdlc.o] Error 1

Note : My kernel is compiled with "Generic HDLC Support" .

Regards. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-09-11 05:31 tusar          Note Added: 0092335                          
======================================================================




More information about the asterisk-bugs mailing list