Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 118345 - zaptel does not compile with 2.6.15 kernels
Summary: zaptel does not compile with 2.6.15 kernels
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: voip herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-08 19:09 UTC by Karl Hakimian
Modified: 2006-06-11 08:58 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch made from patch to zaptel-1.2 to compile with >= linux-2.6.15 (zaptel-1.0.10-udev.diff,1.94 KB, patch)
2006-01-28 22:26 UTC, Ahmet Inan
Details | Diff
patch for zaptel-1.0.10.ebuild (zaptel-1.0.10-r1.diff,459 bytes, patch)
2006-01-28 22:28 UTC, Ahmet Inan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Karl Hakimian 2006-01-08 19:09:34 UTC
Looks like the API for class_device_create has changed. A quick search seems to indicate that all calls in zaptel.c looking like

class_device_create(zap_class, MKDEV(ZT_MAJOR, span->chans[x].channo), NULL, chan_name);


should be changed to something like

class_device_create(zap_class, NULL, MKDEV(ZT_MAJOR, span->chans[x].channo), NULL, chan_name);

I made those changes by hand and was able to finish the compile and install. Modprobling the ztdummy modules worked (at least it did not crash my machine or give any errors).
Comment 1 Dave Oxley 2006-01-24 20:51:09 UTC
Can anyone tell me when this will be fixed? This is the only thing preventing me upgrading to 2.6.15.

If the fix specified here is correct then I don't mind producing an ebuild and patch and attaching to this issue.
Comment 2 Karl Hakimian 2006-01-25 04:42:38 UTC
I've been using this fix on two different machines without problems. I do not have a zaptel card, but the ztdummy driver seems to be doing what it should.
Comment 3 Ahmet Inan 2006-01-28 22:26:17 UTC
Created attachment 78389 [details, diff]
patch made from patch to zaptel-1.2 to compile with >= linux-2.6.15
Comment 4 Ahmet Inan 2006-01-28 22:28:21 UTC
Created attachment 78390 [details, diff]
patch for zaptel-1.0.10.ebuild

this is my first official patch for gentoo, so please dont hurt me.
Comment 5 Ahmet Inan 2006-01-28 22:32:41 UTC
Comment on attachment 78389 [details, diff]
patch made from patch to zaptel-1.2 to compile with >= linux-2.6.15

it works very well for me, too
Comment 6 Massimo Fantin 2006-02-10 04:40:05 UTC
Yes it work for me , i have 2 hfc isdn card 
Thank You

Please update portage...
Comment 7 Massimo Fantin 2006-02-10 08:22:00 UTC
I have 2 ISDN card with hfc chipset, 
but now only one channel for the two isdn card work !!!


Comment 8 Massimo Fantin 2006-02-20 07:22:59 UTC
(In reply to comment #7)
> I have 2 ISDN card with hfc chipset, 
> but now only one channel for the two isdn card work !!!
> 

Please Ignore my last comment...
All ok.
Comment 9 axelmasok 2006-03-14 20:33:56 UTC
So, will this "fix" actually make it to CVS or into a new ebuild oneday? Its been like a month now.
Comment 10 Rajiv Aaron Manglani (RETIRED) gentoo-dev 2006-06-11 08:57:36 UTC
stkn put this in CVS already. zaptel bumped to 1.0.10-r1. thanks for the patch.
Comment 11 Rajiv Aaron Manglani (RETIRED) gentoo-dev 2006-06-11 08:58:14 UTC
fixed.