Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken on kernel 5.0 because of do_gettimeofday #10

Closed
aedancullen opened this issue Mar 12, 2019 · 7 comments
Closed

Broken on kernel 5.0 because of do_gettimeofday #10

aedancullen opened this issue Mar 12, 2019 · 7 comments
Assignees

Comments

@aedancullen
Copy link

deepin-anything fails to build on Manjaro with kernel 5.0.1; see below.

It appears do_gettimeofday was deprecated and is now removed.

DKMS make.log for deepin-anything-0.0.4 for kernel 5.0.1-1-MANJARO (x86_64)
Tue Mar 12 17:01:21 EDT 2019
make: Entering directory '/usr/lib/modules/5.0.1-1-MANJARO/build'
Makefile:189: ================= WARNING ================
Makefile:190: 'SUBDIRS' will be removed after Linux 5.3
Makefile:191: Please use 'M=' or 'KBUILD_EXTMOD' instead
Makefile:192: ==========================================
  CC [M]  /var/lib/dkms/deepin-anything/0.0.4/build/vfs_utils.o
  CC [M]  /var/lib/dkms/deepin-anything/0.0.4/build/arg_extractor.o
  CC [M]  /var/lib/dkms/deepin-anything/0.0.4/build/vfs_kretprobes.o
  CC [M]  /var/lib/dkms/deepin-anything/0.0.4/build/vfs_change.o
/var/lib/dkms/deepin-anything/0.0.4/build/vfs_change.c: In function ‘vfs_changed’:
/var/lib/dkms/deepin-anything/0.0.4/build/vfs_change.c:588:2: error: implicit declaration of function ‘do_gettimeofday’; did you mean ‘do_settimeofday64’? [-Werror=implicit-function-declaration]
  do_gettimeofday(&vc->ts);
  ^~~~~~~~~~~~~~~
  do_settimeofday64
cc1: some warnings being treated as errors
make[1]: *** [scripts/Makefile.build:276: /var/lib/dkms/deepin-anything/0.0.4/build/vfs_change.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:1553: _module_/var/lib/dkms/deepin-anything/0.0.4/build] Error 2
make: Leaving directory '/usr/lib/modules/5.0.1-1-MANJARO/build'
@jlnhab
Copy link

jlnhab commented Mar 27, 2019

Same here with fedora Kernel 5.0.3-200.fc29.x86_64
CC [M] /usr/src/phones/dahdi-linux-master/drivers/dahdi/oct612x/oct612x-user.o
/usr/src/phones/dahdi-linux-master/drivers/dahdi/oct612x/oct612x-user.c: In function ‘Oct6100UserGetTime’:
/usr/src/phones/dahdi-linux-master/drivers/dahdi/oct612x/oct612x-user.c:38:2: error: implicit declaration of function ‘do_gettimeofday’; did you mean ‘do_settimeofday64’? [-Werror=implicit-function-declaration]
do_gettimeofday(&tv);
^~~~~~~~~~~~~~~
do_settimeofday64
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:277: /usr/src/phones/dahdi-linux-master/drivers/dahdi/oct612x/oct612x-user.o] Error 1
make[2]: *** [scripts/Makefile.build:492: /usr/src/phones/dahdi-linux-master/drivers/dahdi/oct612x] Error 2
make[1]: *** [Makefile:1557: module/usr/src/phones/dahdi-linux-master/drivers/dahdi] Error 2
make[1]: Leaving directory '/usr/src/kernels/5.0.3-200.fc29.x86_64'
make: *** [Makefile:74: modules] Error 2

@silviomm
Copy link

I was having the same problem running on Arch with kernel 5.0.7;
Fixed after installing linux-headers

@kshatriya-abhay
Copy link

This was recently fixed in the package it seems.
I can't link the commit but now there's no issue in compiling (headers are obviously needed, but the error used to come despite having them)

@silviomm
Copy link

Yeah, I saw the commit(I'm guessing this one), but I didn't have headers installed(and updated) until now

@BLumia
Copy link
Member

BLumia commented May 10, 2019

Probably associated: #18

@Oumayma-crypto
Copy link

Hello, I'm still having the same error after installing the headers. any solution to that ?

@dukezuoHZ
Copy link

I was having the same problem running on Arch with kernel 5.0.7;
Fixed after installing linux-headers

I met the same issue in kernel 5.4.24 when i build a driver, Can you tell me how to install the new headers files to resolve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants