[asterisk-bugs] [DAHDI-linux 0014525]: [patch] Can't compile Dahdi on SuSE 10.1 / Kernel 2.6.16.54-0.2.5-smp / GCC 4.1.2
Asterisk Bug Tracker
noreply at bugs.digium.com
Mon Jun 29 16:58:51 CDT 2009
The following issue has been UPDATED.
======================================================================
https://issues.asterisk.org/view.php?id=14525
======================================================================
Reported By: bferrell
Assigned To: sruffell
======================================================================
Project: DAHDI-linux
Issue ID: 14525
Category: General
Reproducibility: always
Severity: major
Priority: normal
Status: closed
Resolution: not fixable
Fixed in Version:
======================================================================
Date Submitted: 2009-02-23 02:01 CST
Last Modified: 2009-06-29 16:58 CDT
======================================================================
Summary: [patch] Can't compile Dahdi on SuSE 10.1 / Kernel
2.6.16.54-0.2.5-smp / GCC 4.1.2
Description:
Build fails in the following manner:
make -C /lib/modules/2.6.16.54-0.2.5-smp/build ARCH=i386
SUBDIRS=/usr/src/dahdi-linux-2.1.0.4/drivers/dahdi
DAHDI_INCLUDE=/usr/src/dahdi-linux-2.1.0.4/include DAHDI_MODULES_EXTRA=" "
HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
make[1]: Entering directory `/usr/src/linux-2.6.16.54-0.2.5-obj/i386/smp'
make -C ../../../linux-2.6.16.54-0.2.5
O=../linux-2.6.16.54-0.2.5-obj/i386/smp modules
CC [M] /usr/src/dahdi-linux-2.1.0.4/drivers/dahdi/dahdi-base.o
LD [M] /usr/src/dahdi-linux-2.1.0.4/drivers/dahdi/dahdi.o
CC [M] /usr/src/dahdi-linux-2.1.0.4/drivers/dahdi/dahdi_dummy.o
CC [M] /usr/src/dahdi-linux-2.1.0.4/drivers/dahdi/dahdi_dynamic.o
CC [M] /usr/src/dahdi-linux-2.1.0.4/drivers/dahdi/dahdi_dynamic_loc.o
CC [M] /usr/src/dahdi-linux-2.1.0.4/drivers/dahdi/dahdi_dynamic_eth.o
/usr/src/dahdi-linux-2.1.0.4/drivers/dahdi/dahdi_dynamic_eth.c: In
function 'ztdeth_rcv':
/usr/src/dahdi-linux-2.1.0.4/drivers/dahdi/dahdi_dynamic_eth.c:104: error:
too many arguments to function 'skb_linearize'
make[4]: ***
[/usr/src/dahdi-linux-2.1.0.4/drivers/dahdi/dahdi_dynamic_eth.o] Error 1
make[3]: *** [_module_/usr/src/dahdi-linux-2.1.0.4/drivers/dahdi] Error 2
make[2]: *** [modules] Error 2
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.16.54-0.2.5-obj/i386/smp'
make: *** [modules] Error 2
gcc -v
Using built-in specs.
Target: i586-suse-linux
Configured with: ../configure --enable-threads=posix --prefix=/usr
--with-local-prefix=/usr/local --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib
--enable-languages=c,c++,objc,fortran,obj-c++,java,ada
--enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.1.2
--enable-ssp --disable-libssp --disable-libgcj --with-slibdir=/lib
--with-system-zlib --enable-shared --enable-__cxa_atexit
--enable-libstdcxx-allocator=new --program-suffix=-4.1
--enable-version-specific-runtime-libs --without-system-libunwind
--with-cpu=generic --host=i586-suse-linux
Thread model: posix
gcc version 4.1.2 20061115 (prerelease) (SUSE Linux)
======================================================================
----------------------------------------------------------------------
(0107186) sruffell (administrator) - 2009-06-29 16:58
https://issues.asterisk.org/view.php?id=14525#c107186
----------------------------------------------------------------------
I checked dahdi_dynamic_eth.c against the vanilla 2.6.16.54 kernel and it
compiled fine. It appears as if SUSE has a patch to the kernel in their
distribution that drops the alloc flags from the skb_linearize call, but
I'm not sure what dahdi_dynamic_eth.c can check for at compile time to work
around this.
Either you can apply issue-14525.patch, which I've attached to this issue,
recompile your own vanilla kernel, or see if there is a SUSE kernel based
on 2.6.18 or greater.
Issue History
Date Modified Username Field Change
======================================================================
2009-06-29 16:58 sruffell Note Added: 0107186
2009-06-29 16:58 sruffell Status assigned => resolved
2009-06-29 16:58 sruffell Resolution open => not fixable
2009-06-29 16:58 sruffell Status resolved => closed
======================================================================
More information about the asterisk-bugs
mailing list