[asterisk-bugs] [DAHDI-tools 0014314]: GENERIC_HDLC_VERSION is not available in CentOS 4.7 glibc-kernheaders

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Jul 24 11:24:11 CDT 2009


The following issue has been CLOSED 
====================================================================== 
https://issues.asterisk.org/view.php?id=14314 
====================================================================== 
Reported By:                amcrory
Assigned To:                jpeeler
====================================================================== 
Project:                    DAHDI-tools
Issue ID:                   14314
Category:                   General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-01-22 15:02 CST
Last Modified:              2009-07-24 11:24 CDT
====================================================================== 
Summary:                    GENERIC_HDLC_VERSION is not available in CentOS 4.7
glibc-kernheaders
Description: 
On CentOS 4.7 the file, /usr/include/linux/hdlc.h, which is owned by
package glibc-kernheaders-2.4-9.1.103.EL, does not define
GENERIC_HDLC_VERSION. It is defined in the version included with the kernel
development package, kernel-devel. Those files are in
/usr/src/kernels/<running_k_version>/include/. Can the configure script be
rewritten to use those files instead of the ones in glibc-kernheaders??
====================================================================== 

---------------------------------------------------------------------- 
 (0108181) jpeeler (administrator) - 2009-07-24 11:24
 https://issues.asterisk.org/view.php?id=14314#c108181 
---------------------------------------------------------------------- 
I attempted building this using the header files with the proper
GENERIC_HDLC_VERSION and the compile still did not succeed. For reference:

[root at localhost dahdi-tools]# gcc -g -O2
-I/usr/src/kernels/2.6.9-78.EL-smp-x86_64/include -O2 -g -fPIC -Wall
-DBUILDING_TONEZONE      -MD -MT sethdlc.o -MF .se thdlc.o.d -MP -c -o
sethdlc.o sethdlc.c
In file included from
/usr/src/kernels/2.6.9-78.EL-smp-x86_64/include/linux/if.h:22, from
sethdlc.c:32:
/usr/src/kernels/2.6.9-78.EL-smp-x86_64/include/linux/types.h:158: error:
syntax error before "__sum16"
/usr/src/kernels/2.6.9-78.EL-smp-x86_64/include/linux/types.h:158:
warning: type defaults to `int' in declaration of `__sum16'
/usr/src/kernels/2.6.9-78.EL-smp-x86_64/include/linux/types.h:158:
warning: data definition has no type or storage class
/usr/src/kernels/2.6.9-78.EL-smp-x86_64/include/linux/types.h:159: error:
syntax error before "__wsum"
/usr/src/kernels/2.6.9-78.EL-smp-x86_64/include/linux/types.h:159:
warning: type defaults to `int' in declaration of `__wsum'
/usr/src/kernels/2.6.9-78.EL-smp-x86_64/include/linux/types.h:159:
warning: data definition has no type or storage class

Allowing the checking of an alternate location for the headers is not
going to help, so I'm closing this. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-07-24 11:24 jpeeler        Note Added: 0108181                          
2009-07-24 11:24 jpeeler        Status                   assigned => closed  
======================================================================




More information about the asterisk-bugs mailing list