[Home]

Summary:DAHLIN-00032: Compile error on CentOS-4.6 with Kernel-2.6.9-67.0.15.ELsmp and CONFIG_DAHDI_NET
Reporter:Tusar Ahmed (tusar)Labels:
Date Opened:2008-09-05 04:57:55Date Closed:2008-10-27 12:46:03
Priority:MinorRegression?No
Status:Closed/CompleteComponents:General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
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@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\\

****** STEPS TO REPRODUCE ******

Uncomment #define CONFIG_DAHDI_NET in drivers/dahdi/dahdi_config.h and compile

****** ADDITIONAL INFORMATION ******

There is NO compile error with Zaptel-1.4.12 .
Comments:By: Shaun Ruffell (sruffell) 2008-09-05 11:20:22

I'm not sure about 2.6.9-67.9.15.ELsmp issues specifically, but I did confirm that it will not compile with CONFIG_DAHDI_NET and 2.6.20-1.2320.fc5 for more than one reason it appears.  Looking into it...

By: Tusar Ahmed (tusar) 2008-09-05 12:39:51

Actually I tried without/with "CONFIG_DAHDI_NET" and got that compile error but I am very keen to implement with "CONFIG_DAHDI_NET" .

Regards.

By: Tusar Ahmed (tusar) 2008-09-11 05:31:11

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.

By: Digium Subversion (svnbot) 2008-09-11 17:51:21

Repository: dahdi
Revision: 4900

U   linux/trunk/drivers/dahdi/dahdi-base.c

------------------------------------------------------------------------
r4900 | tzafrir | 2008-09-11 17:51:20 -0500 (Thu, 11 Sep 2008) | 2 lines

Fix a type used in nethdlc mode, as pointed out in DAHLIN-32 .

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

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

By: Shaun Ruffell (sruffell) 2008-09-15 14:08:53

tusar, could you try with the current trunk of DAHDI and report your results?

By: Tusar Ahmed (tusar) 2008-09-16 00:51:16

DAHDI-linux
===========
Source : svn checkout http://svn.digium.com/svn/dahdi/linux/trunk dahdi-linux-svn-2008.09.16

Scenerio : 1 :: Without [#define CONFIG_DAHDI_NET]
--------------------------------------------------
[root@SunFlower dahdi-linux-svn-2008.09.16]# make

..Snipped..

 CC [M]  /home/test/asterisk_all/asterisk-1.6/dahdi-linux-svn-2008.09.16/drivers/dahdi/wctc4xxp/base.o
/home/test/asterisk_all/asterisk-1.6/dahdi-linux-svn-2008.09.16/drivers/dahdi/wctc4xxp/base.c:76:1: warning: "WARN_ON_ONCE" redefined
In file included from include/asm/bug.h:23,
                from include/linux/kernel.h:17,
                from /home/test/asterisk_all/asterisk-1.6/dahdi-linux-svn-2008.09.16/drivers/dahdi/wctc4xxp/base.c:23:
include/asm-generic/bug.h:34:1: warning: this is the location of the previous definition
/home/test/asterisk_all/asterisk-1.6/dahdi-linux-svn-2008.09.16/drivers/dahdi/wctc4xxp/base.c: In function `wctc4xxp_init_one':
/home/test/asterisk_all/asterisk-1.6/dahdi-linux-svn-2008.09.16/drivers/dahdi/wctc4xxp/base.c:3038: warning: implicit declaration of function `setup_timer'
 LD [M]  /home/test/asterisk_all/asterisk-1.6/dahdi-linux-svn-2008.09.16/drivers/dahdi/wctc4xxp/wctc4xxp.o
 CC [M]  /home/test/asterisk_all/asterisk-1.6/dahdi-linux-svn-2008.09.16/drivers/dahdi/wctdm24xxp/base.o
 CC [M]  /home/test/asterisk_all/asterisk-1.6/dahdi-linux-svn-2008.09.16/drivers/dahdi/wctdm24xxp/GpakCust.o
 CC [M]  /home/test/asterisk_all/asterisk-1.6/dahdi-linux-svn-2008.09.16/drivers/dahdi/wctdm24xxp/GpakApi.o
 CC [M]  /home/test/asterisk_all/asterisk-1.6/dahdi-linux-svn-2008.09.16/drivers/dahdi/wctdm24xxp/voicebus.o
/home/test/asterisk_all/asterisk-1.6/dahdi-linux-svn-2008.09.16/drivers/dahdi/wctdm24xxp/voicebus.c:1: error: syntax error before '.' token
/home/test/asterisk_all/asterisk-1.6/dahdi-linux-svn-2008.09.16/drivers/dahdi/wctdm24xxp/voicebus.c:1:19: warning: no newline at end of file
make[3]: *** [/home/test/asterisk_all/asterisk-1.6/dahdi-linux-svn-2008.09.16/drivers/dahdi/wctdm24xxp/voicebus.o] Error 1
make[2]: *** [/home/test/asterisk_all/asterisk-1.6/dahdi-linux-svn-2008.09.16/drivers/dahdi/wctdm24xxp] Error 2
make[1]: *** [_module_/home/test/asterisk_all/asterisk-1.6/dahdi-linux-svn-2008.09.16/drivers/dahdi] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.9-67.0.15.ELsmp'
make: *** [modules] Error 2
[root@SunFlower dahdi-linux-svn-2008.09.16]#




Scenerio : 2 :: With/enabled [#define CONFIG_DAHDI_NET]
-------------------------------------------------------
[root@SunFlower dahdi-linux-svn-2008.09.16]# make
make -C /lib/modules/2.6.9-67.0.15.ELsmp/build ARCH=i386 SUBDIRS=/home/test/asterisk_all/asterisk-1.6/dahdi-linux-svn-2008.09.16/drivers/dahdi DAHDI_INCLUDE=/home/test/asterisk_all/asterisk-1.6/dahdi-linux-svn-2008.09.16/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-svn-2008.09.16/drivers/dahdi/dahdi-base.o
/home/test/asterisk_all/asterisk-1.6/dahdi-linux-svn-2008.09.16/drivers/dahdi/dahdi-base.c: In function `dahdi_net_open':
/home/test/asterisk_all/asterisk-1.6/dahdi-linux-svn-2008.09.16/drivers/dahdi/dahdi-base.c:1521: error: `chan' undeclared (first use in this function)
/home/test/asterisk_all/asterisk-1.6/dahdi-linux-svn-2008.09.16/drivers/dahdi/dahdi-base.c:1521: error: (Each undeclared identifier is reported only once
/home/test/asterisk_all/asterisk-1.6/dahdi-linux-svn-2008.09.16/drivers/dahdi/dahdi-base.c:1521: error: for each function it appears in.)
/home/test/asterisk_all/asterisk-1.6/dahdi-linux-svn-2008.09.16/drivers/dahdi/dahdi-base.c: At top level:
/home/test/asterisk_all/asterisk-1.6/dahdi-linux-svn-2008.09.16/drivers/dahdi/dahdi-base.c:1628: warning: return type defaults to `int'
/home/test/asterisk_all/asterisk-1.6/dahdi-linux-svn-2008.09.16/drivers/dahdi/dahdi-base.c: In function `dahdi_xmit':
/home/test/asterisk_all/asterisk-1.6/dahdi-linux-svn-2008.09.16/drivers/dahdi/dahdi-base.c:1700: error: `outbuf' undeclared (first use in this function)
make[2]: *** [/home/test/asterisk_all/asterisk-1.6/dahdi-linux-svn-2008.09.16/drivers/dahdi/dahdi-base.o] Error 1
make[1]: *** [_module_/home/test/asterisk_all/asterisk-1.6/dahdi-linux-svn-2008.09.16/drivers/dahdi] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.9-67.0.15.ELsmp'
make: *** [modules] Error 2
[root@SunFlower dahdi-linux-svn-2008.09.16]#



DAHDI-tools
=============

Source : svn checkout http://svn.digium.com/svn/dahdi/tools/trunk dahdi-tools-svn-2008.09.16

[root@SunFlower dahdi-tools-svn-2008.09.16]# ./configure --with-dahdi=../dahdi-linux-svn-2008.09.16 <== I tried {--with-dahdi]

[root@SunFlower dahdi-tools-svn-2008.09.16]# make

gcc -lm -o fxotune fxotune.o version.o
gcc -g -O2 -I. -O2 -g -fPIC -Wall -DBUILDING_TONEZONE  -I../dahdi-linux-svn-2008.09.16/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')
sethdlc.c:154: error: initializer element is not constant
sethdlc.c:154: error: (near initialization for `ifaces[1]')
sethdlc.c:155: error: `IF_IFACE_X21' undeclared here (not in a function)
sethdlc.c:155: error: initializer element is not constant
sethdlc.c:155: error: (near initialization for `ifaces[2].value')
sethdlc.c:155: error: initializer element is not constant
sethdlc.c:155: error: (near initialization for `ifaces[2]')
sethdlc.c:156: error: `IF_IFACE_E1' undeclared here (not in a function)
sethdlc.c:156: error: initializer element is not constant
sethdlc.c:156: error: (near initialization for `ifaces[3].value')
sethdlc.c:156: error: initializer element is not constant
sethdlc.c:156: error: (near initialization for `ifaces[3]')

..Snipped..

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
make[1]: Leaving directory `/home/test/asterisk_all/asterisk-1.6/dahdi-tools-svn-2008.09.16'
make: *** [all] Error 2
[root@SunFlower dahdi-tools-svn-2008.09.16]#

Thanks,

Regards.

By: Shaun Ruffell (sruffell) 2008-09-16 10:50:33

In your scenario 1, are you sure you're working from a fresh checkout?  There isn't a '.' character on line 1 of voicebus.c.

By: Tusar Ahmed (tusar) 2008-09-16 13:11:56

Yes , I was working from a fresh checkout . But ...

[root@SunFlower dahdi-linux-2008.09.16]# cat drivers/dahdi/wctdm24xxp/voicebus.c

link ../voicebus.c

It seems my SVN package was NOT properly checkout . I just updated my SVN package and made a fresh checkout again .

Now for scenario#1 , it is compiling fine.

Regards.

By: Tzafrir Cohen (tzafrir) 2008-09-29 15:14:07

Is this http://bugs.digium.com/13542 ? Can you test  dahdi-base.c.hdlc.patch from there?

By: Pavel Selivanov (biohumanoid) 2008-09-29 21:22:54

>Scenerio : 2 :: With/enabled [#define CONFIG_DAHDI_NET]
bugfix in dahdi-base.o: http://bugs.digium.com/13542

gcc -g -O2 -I. -O2 -g -fPIC -Wall -DBUILDING_TONEZONE -I../dahdi-linux-svn-2008.09.16/include -MD -MT sethdlc.o -MF .sethdlc.o.d -MP -c -o sethdlc.o
>sethdlc.c:557: error: `IF_GET_PROTO' undeclared (first use in this function)
cc can't find hdlc.h header.
You have bad kernel headers.
As you can see, gcc have no path to kernel headers...

Try a kernel from you distro, and install linux-image-*** linux-header-***, or simular packages.
BTW: sethdlc is usually shipped with distro (at least with debian), you can disable it in dahdi-tools.

By: Tzafrir Cohen (tzafrir) 2008-10-23 04:39:18

The dahdi-linux issues were already resolved, right?

What about the dahdi-tools? r4977 adds a proper configure test for it. Were you able to build sethdlc earlier on e.g. centos4?

By: Jason Parker (jparker) 2008-10-23 16:55:00

After reviewing the comments here, and a quick discussion with Tzafrir, I'm going to close this.

Please reopen if this is still an issue after the revision that was mentioned.

By: Tusar Ahmed (tusar) 2008-10-25 05:33:51

Now I am getting compile error for DAHDI-linux ..

DAHDI-linux-r5111
=================
[root@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@HDLC2 dahdi-linux.r5111.2008.10.23]#




DAHDI-tools-r5099
==================
[root@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@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


By: Tzafrir Cohen (tzafrir) 2008-10-26 07:09:38

The build issue with the XPP modules was replicated here. I hope to upload a fix soon.

As for sethdlc: it seems that this was never possible (e.g.: not supported by your kernel). Can anybody comment on that?

By: Digium Subversion (svnbot) 2008-10-27 10:38:20

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 DAHLIN-32.

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

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

By: Tzafrir Cohen (tzafrir) 2008-10-27 12:45:58

Closing again, for the same reason as stated by Qwell before (sethdlc can't be rebuilt on a standard centos4 system)