Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 748240 - net-misc/dahdi-3.1.0-r2 : /.../dahdi-base.c: error: const struct file_operations has no member named ioctl
Summary: net-misc/dahdi-3.1.0-r2 : /.../dahdi-base.c: error: const struct file_operati...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jaco Kroon
URL:
Whiteboard:
Keywords: PullRequest
: 783093 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-10-13 06:56 UTC by Toralf Förster
Modified: 2021-04-16 20:39 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.02 KB, text/plain)
2020-10-13 06:56 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,13.67 KB, text/plain)
2020-10-13 06:56 UTC, Toralf Förster
Details
environment (environment,107.89 KB, text/plain)
2020-10-13 06:56 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,16.55 KB, application/x-bzip)
2020-10-13 06:56 UTC, Toralf Förster
Details
net-misc:dahdi-3.1.0-r2:20201012-195447.log (net-misc:dahdi-3.1.0-r2:20201012-195447.log,182.95 KB, text/plain)
2020-10-13 06:56 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,31.82 KB, application/x-bzip)
2020-10-13 06:56 UTC, Toralf Förster
Details
DAHDI patches (kernel >=5.9.X) (Dahdi_gentoo_patches.tar,9.50 KB, patch)
2020-11-29 10:34 UTC, Ivan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-10-13 06:56:17 UTC
/var/tmp/portage/net-misc/dahdi-3.1.0-r2/work/dahdi-linux-3.1.0/drivers/dahdi/dahdi-base.c:10292:3: error: ‘const struct file_operations’ has no member named ‘ioctl’
10292 |  .ioctl   = dahdi_ioctl,
      |   ^~~~~
/var/tmp/portage/net-misc/dahdi-3.1.0-r2/work/dahdi-linux-3.1.0/drivers/dahdi/dahdi-base.c:10292:13: error: positional initialization of field in ‘struct’ declared with ‘designated_init’ attribute [-Werror=designated-init]

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_systemd-libressl_abi32+64-20201012-091521

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10.2.0 *
Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.9 (fallback)
Available Ruby profiles:
  [1]   ruby25 (with Rubygems)
  [2]   ruby26 (with Rubygems)
  [3]   ruby27 (with Rubygems) *

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Mon Oct 12 07:05:19 PM UTC 2020
/var/db/repos/libressl	Fri Oct  9 07:35:07 PM UTC 2020

emerge -qpvO net-misc/dahdi
[ebuild  N    ] net-misc/dahdi-3.1.0-r2  USE="-flash -oslec"
Comment 1 Toralf Förster gentoo-dev 2020-10-13 06:56:19 UTC
Created attachment 664957 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-10-13 06:56:20 UTC
Created attachment 664960 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-10-13 06:56:22 UTC
Created attachment 664963 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-10-13 06:56:23 UTC
Created attachment 664966 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-10-13 06:56:25 UTC
Created attachment 664969 [details]
net-misc:dahdi-3.1.0-r2:20201012-195447.log
Comment 6 Toralf Förster gentoo-dev 2020-10-13 06:56:26 UTC
Created attachment 664972 [details]
temp.tbz2
Comment 7 Ivan 2020-11-29 10:34:43 UTC
Created attachment 675676 [details, diff]
DAHDI patches (kernel >=5.9.X)

Good news!
I have created patches based on latest commit http://git.asterisk.org/gitweb/?p=dahdi/linux.git;a=shortlog;h=refs/heads/next and everything has copmiled and working fine!
Comment 8 Larry the Git Cow gentoo-dev 2021-01-22 06:35:58 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3b3b4a73fe525c228f3b60727f59ffc0b7ca1aa

commit c3b3b4a73fe525c228f3b60727f59ffc0b7ca1aa
Author:     Jaco Kroon <jaco@uls.co.za>
AuthorDate: 2021-01-08 12:02:40 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2021-01-22 06:35:22 +0000

    net-misc/dahdi: version bump to fix compiler problems.
    
    1.  clang/LLVM
    2.  Kernel header changes (5.9 onwards)
    
    Three additional patches added to the patch set (two of which from
    dahdi-linux/next, and one just submitted):
    
    09-dahdi-3.1.0-r3-remove-32bit-userspace-on-64bit-support.patch
    10-dahdi-3.1.0-r3-ioctl-kernel-5.9.patch
    11-dahdi-3.1.0-r3-clang.patch
    
    09 is a dependency for 10, which is required since kernel version 5.9.
       The former seems to affect 32-bit userspace on 64-bit kernels only,
       and according to upstream there are no tests for this.
    
    10 fixes the compile issues for kernels 5.9 onwards (which dropped ioctl
       from proc_ops structures.
    
    11 imports clang fixes as per https://issues.asterisk.org/jira/browse/DAHLIN-385
    
    Signed-off-by: Jaco Kroon <jaco@uls.co.za>
    Closes: https://bugs.gentoo.org/748240
    Closes: https://bugs.gentoo.org/740818
    Closes: https://github.com/gentoo/gentoo/pull/18990
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 net-misc/dahdi/Manifest              |   1 +
 net-misc/dahdi/dahdi-3.1.0-r3.ebuild | 107 +++++++++++++++++++++++++++++++++++
 2 files changed, 108 insertions(+)
Comment 9 Ionen Wolkens gentoo-dev 2021-04-16 20:39:52 UTC
*** Bug 783093 has been marked as a duplicate of this bug. ***