[asterisk-bugs] [DAHDI-tools 0014150]: GENERIC_HDLC_VERSION not found

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Dec 31 13:26:57 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14150 
====================================================================== 
Reported By:                ccesario
Assigned To:                
====================================================================== 
Project:                    DAHDI-tools
Issue ID:                   14150
Category:                   General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2008-12-29 04:58 CST
Last Modified:              2008-12-31 13:26 CST
====================================================================== 
Summary:                    GENERIC_HDLC_VERSION not found
Description: 
Hello,

I'm trying compile dahdi-tools-2.1.0.2 but I'm getting the following
problem in ./configure script.


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 ***


Without this the dahdi_tool isn't compiled.


I checked in my system that hdlc.h exists

find  /usr/include/linux -iname "*hdlc*"
/usr/include/linux/hdlc
/usr/include/linux/hdlcdrv.h
/usr/include/linux/hdlc.h


But the file that contain the variable GENERIC_HDLC_VERSION  defined is 
/usr/include/linux/hdlc/ioctl.h

grep GENERIC_HDLC_VERSION /usr/include/linux/hdlc/ioctl.h 
#define GENERIC_HDLC_VERSION 4	/* For synchronization with sethdlc utility
*/

to fix this temporally I comment the following lines in configure.ac

#AST_C_DEFINE_CHECK([HDLC], [GENERIC_HDLC_VERSION], [linux/hdlc.h], [4])

#if test "x${PBX_HDLC}" == "x1"; then
#   AC_EGREP_CPP([VERSION = 4],
#		[#include <linux/hdlc.h>
#		VERSION = GENERIC_HDLC_VERSION], [], [PBX_HDLC=0])
#fi

#if test "x${PBX_HDLC}" != "x1"; then
#   AC_MSG_NOTICE([GENERIC_HDLC_VERSION version 4 not found, disabling
sethdlc.])
#fi


Then the dahdi_tool compiled ! 
====================================================================== 

---------------------------------------------------------------------- 
 (0096992) tzafrir (manager) - 2008-12-31 13:26
 http://bugs.digium.com/view.php?id=14150#c96992 
---------------------------------------------------------------------- 
As of kernel version 2.6.19, GENERIC_HDLC_VERSION is defined in
include/linux/hdlc/ioctl.h

include/linux/hdlc.h now has:

  ...
#ifdef __KERNEL__

#include <linux/skbuff.h>
#include <linux/netdevice.h>
#include <linux/hdlc/ioctl.h>

  ...

That said, the package linux-libc-dev (userspace kernel headers,
/usr/include/linux and such) built from Debian's kernel 2.6.26 does include
include/linux/hdlc/ioctl.h . 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-12-31 13:26 tzafrir        Note Added: 0096992                          
======================================================================




More information about the asterisk-bugs mailing list