Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 539594 - net-misc/dahdi-2.10.0.1 with kernel 3.19.0 - .../work/dahdi-linux-2.10.0.1/drivers/dahdi/dahdi-base.c:101:30: error: ‘struct file’ has no member named ‘f_dentry’
Summary: net-misc/dahdi-2.10.0.1 with kernel 3.19.0 - .../work/dahdi-linux-2.10.0.1/dr...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tony Vroon (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-10 10:32 UTC by Erich Seifert
Modified: 2015-03-02 09:44 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erich Seifert 2015-02-10 10:32:35 UTC
net-misc/dahdi-2.10.0.1 does not build against kernel 3.19.0.

Reproducible: Always

Steps to Reproduce:
1. emerge ">=sys-kernel/gentoo-sources-3.19.0"
2. emerge "=dahdi-2.10.0.1"

Actual Results:  
/var/tmp/portage/net-misc/dahdi-2.10.0.1/work/dahdi-linux-2.10.0.1/drivers/dahdi/dahdi-base.c:101:30: error: ‘struct file’ has no member named ‘f_dentry’

Expected Results:  
build successfully

The issue has been fixed in upstream git:
https://github.com/asterisk/dahdi-linux/commit/4d86a8f3f690ee9bb9429e17cc03856c6c2dc760

Adding the above commit as a user patch makes dahdi build successfully.
Comment 1 Tony Vroon (RETIRED) gentoo-dev 2015-02-12 16:09:24 UTC
+*dahdi-2.10.0.1-r1 (12 Feb 2015)
+
+  12 Feb 2015; Tony Vroon <chainsaw@gentoo.org> -dahdi-2.6.2.ebuild,
+  -dahdi-2.7.0.1.ebuild, -dahdi-2.8.0.1.ebuild, -dahdi-2.9.0.ebuild,
+  -dahdi-2.9.0-r1.ebuild, -dahdi-2.10.0.ebuild, +dahdi-2.10.0.1-r1.ebuild:
+  Scavenge upstream commit as identified by Erich Seifert in bug #539594 to
+  allow building against 3.19 kernels.
Comment 2 Erich Seifert 2015-02-14 10:00:55 UTC
I'm reopening this bug because another upstream commit is necessary to make dahdi compile against >=3.18 kernels:

https://github.com/asterisk/dahdi-linux/commit/378986841cbf7c94e43dc34580def06088116652

This also applies to kernel 3.19.
Comment 3 Tony Vroon (RETIRED) gentoo-dev 2015-02-14 10:05:49 UTC
(In reply to Erich Seifert from comment #2)
> I'm reopening this bug because another upstream commit is necessary

And obviously now I will have to wait a few days to see if that is your final answer.
Comment 4 Erich Seifert 2015-02-16 00:13:08 UTC
Sorry that I forgot about the 3.18 compatibility patch. I've tested dahdi-2.10.0.1-r1 with https://github.com/asterisk/dahdi-linux/commit/378986841cbf7c94e43dc34580def06088116652.diff as a user patch and it's compiling and running fine for me with sys-kernel/gentoo-sources-3.19.0.
Comment 5 Marco Kull 2015-02-18 11:07:34 UTC
I can confirm that the module successfully compiles with the second patch for 3.19.0
Erich, thanks for looking into this problem.
Comment 6 Tony Vroon (RETIRED) gentoo-dev 2015-03-02 09:44:22 UTC
Should be addressed in 2.10.1; patchset reverted to 1.1.9 to ensure there are no conflicts.