dahdi-dkms 1:2.5.0.1+dfsg-1ubuntu2: dahdi kernel module failed to build [wctdm.c:2587:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘wctdm_init_one’]

Bug #1133658 reported by Roger Tolhurst
168
This bug affects 24 people
Affects Status Importance Assigned to Milestone
dahdi-linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Description: Ubuntu Raring Ringtail (development branch)
Release: 13.04

dahdi-2.5.0.1+dfsg-1ubuntu2

Building only for 3.8.0-7-generic
Building for architecture x86_64
Building initial module for 3.8.0-7-generic
Error! Bad return status for module build on kernel: 3.8.0-7-generic (x86_64)

ProblemType: Package
DistroRelease: Ubuntu 13.04
Package: dahdi-dkms 1:2.5.0.1+dfsg-1ubuntu2
ProcVersionSignature: Ubuntu 3.8.0-7.15-generic 3.8.0
Uname: Linux 3.8.0-7-generic x86_64
NonfreeKernelModules: wl
ApportVersion: 2.8-0ubuntu4
Architecture: amd64
DKMSKernelVersion: 3.8.0-7-generic
Date: Wed Feb 27 08:33:16 2013
MarkForUpload: True
PackageArchitecture: all
PackageVersion: 1:2.5.0.1+dfsg-1ubuntu2
SourcePackage: dahdi-linux
Title: dahdi-dkms 1:2.5.0.1+dfsg-1ubuntu2: dahdi kernel module failed to build
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Roger Tolhurst (roger-tolhurst) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Roger Tolhurst (roger-tolhurst) wrote :

dahdi-2.5.0.1+dfsg-1ubuntu2 build also fails with Linux 3.8.0-8-generic x86_64 version

summary: dahdi-dkms 1:2.5.0.1+dfsg-1ubuntu2: dahdi kernel module failed to build
+ [wctdm.c:2587:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
+ ‘__attribute__’ before ‘wctdm_init_one’]
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in dahdi-linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Doug Haber (doug-e) wrote :

The attached patch worked for me. Looks like newer versions of the kernel removed __devinit and asm/system.h. I don't really know what I'm doing but hopefully this helps other people too.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Patch to allow building the modules" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Maxim Kursin (m0ps) wrote :

Thanks Doug, your patch is works well.
I'm wonder, why this bug is present more than one year and nobody fix package in repo %)

Revision history for this message
Roger Tolhurst (roger-tolhurst) wrote :

The package dahdi-dkms 1:2.5.0.1+dfsg-1ubuntu2 now installs on my architecture without error after a ystem upgrade to Ubuntu 13.10.

Prior to this upgrade I had been relying on manual installs of dahdi-linux-complete-current.tar.gz (available from http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/) after each successive kernal update of Ubuntu 13.04.
(Failure of ahdi-dkms 1:2.5.0.1+dfsg-1ubuntu2 to install was confrimed with each of the 13.04 kernel upgrades prior to using the manual install mentioned above.)

Unfortunately the 'patch' provided by Doug did not wrk for me, although it does appear to have worked for others.

From my point of view this bug is resolved upon upgrade to Ubuntu 13.10.

Roger Tolhurst

Revision history for this message
deefactorial (deefactorial) wrote :

If by chance you come accross this issue and you are running 12.04 LTS and upgrading to 13.10 is not an option try my bug report located at https://bugs.launchpad.net/bugs/1275918

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.