Details

    • Type: Bug Bug
    • Status: Closed
    • Severity: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.0.2
    • Target Release Version/s: None
    • Component/s: General
    • Labels:
      None
    • Mantis ID:
      14150
    • Regression:
      No

      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

      1. AC_MSG_NOTICE([GENERIC_HDLC_VERSION version 4 not found, disabling sethdlc.])
        #fi

      Then the dahdi_tool compiled !

                • ADDITIONAL INFORMATION ******

      Details System

      Sytem: OpenSuse-10.3
      Kernel: 2.6.27.10

      1. 20090115__bug14150.diff.txt
        6 kB
        Sean Bright
      2. configure_details.txt
        3 kB
      3. configure.log
        2 kB

        Activity

        Hide
        Tzafrir Cohen added a comment -

        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 .

        Show
        Tzafrir Cohen added a comment - 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 .
        Hide
        James Hammer added a comment -

        I was having a similar problem in gentoo linux. dahdi-tools was configuring and all the tools were making ok except for dahdi_tool. I was getting the same message about hdlc in the ./configure.

        From the README inside the dahdi-tools source:

        "- libnewt is needed to build the optional but useful utility dahdi_tool."

        I installed dev-libs/newt and dahdi_tool compiled along with the rest of the tools.

        The hdlc issue from the ./configure had no effect.

        Show
        James Hammer added a comment - I was having a similar problem in gentoo linux. dahdi-tools was configuring and all the tools were making ok except for dahdi_tool. I was getting the same message about hdlc in the ./configure. From the README inside the dahdi-tools source: "- libnewt is needed to build the optional but useful utility dahdi_tool." I installed dev-libs/newt and dahdi_tool compiled along with the rest of the tools. The hdlc issue from the ./configure had no effect.
        Hide
        Sean Bright added a comment -

        ccesario or jhammer,

        Could one or both of you test the attached patch and see if it resolves your problem and report back the results?

        Thank you!

        Show
        Sean Bright added a comment - ccesario or jhammer, Could one or both of you test the attached patch and see if it resolves your problem and report back the results? Thank you!
        Hide
        Carlos Cesario added a comment -

        Sure,

        Compiled and installed!

        Tested and now working...!!

        See the ./configure results

        thanks

        Show
        Carlos Cesario added a comment - Sure, Compiled and installed! Tested and now working...!! See the ./configure results thanks
        Hide
        Digium Subversion added a comment -

        Repository: dahdi
        Revision: 5662

        U tools/trunk/configure
        U tools/trunk/configure.ac

        ------------------------------------------------------------------------
        r5662 | seanbright | 2009-01-16 08:18:10 -0600 (Fri, 16 Jan 2009) | 8 lines

        Properly detect GENERIC_HDLC_VERSION on various kernel versions.

        (closes issue DAHTOOL-12)
        Reported by: ccesario
        Patches:
        20090115__bug14150.diff.txt uploaded by seanbright (license 71)
        Tested by: ccesario

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

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

        Show
        Digium Subversion added a comment - Repository: dahdi Revision: 5662 U tools/trunk/configure U tools/trunk/configure.ac ------------------------------------------------------------------------ r5662 | seanbright | 2009-01-16 08:18:10 -0600 (Fri, 16 Jan 2009) | 8 lines Properly detect GENERIC_HDLC_VERSION on various kernel versions. (closes issue DAHTOOL-12 ) Reported by: ccesario Patches: 20090115__bug14150.diff.txt uploaded by seanbright (license 71) Tested by: ccesario ------------------------------------------------------------------------ http://svn.digium.com/view/dahdi?view=rev&revision=5662

          People

          • Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development