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

implicit declaration of function copy_from_user, redefinition of 'struct in6_addr' #134

Open
Dzenly opened this issue Nov 21, 2017 · 3 comments

Comments

@Dzenly
Copy link

Dzenly commented Nov 21, 2017

error: implicit declaration of function 'copy_from_user'

Fixed by:

#include <linux/uaccess.h>

/usr/src/linux-headers-4.13.0-1-common/include/uapi/linux/in6.h:32:8: error: redefinition of 'struct in6_addr'
 struct in6_addr {
        ^~~~~~~~
In file included from /home/alexey/soft/dtrace-2017.11.21/build-4.13.0-1-amd64/driver/dtrace.c:128:0:
/home/alexey/soft/dtrace-2017.11.21/build-4.13.0-1-amd64/driver/../../uts/common/netinet/in.h:17:8: note: originally defined here
 struct in6_addr {

This one I don't know how to fix for now.

If i comment the string with in.h include, I get such errors:

/home/alexey/soft/dtrace-2017.11.21/build-4.13.0-1-amd64/driver/dtrace.c: In function 'dtrace_dif_subr':
/home/alexey/soft/dtrace-2017.11.21/build-4.13.0-1-amd64/driver/dtrace.c:4921:12: error: 'struct in6_addr' has no member named '_S6_un'; did you mean 'in6_u'?
     if (ip6._S6_un._S6_u8[i] == 0 &&

@ghost
Copy link

ghost commented Sep 23, 2018

How to fix the error?

@hepyu
Copy link

hepyu commented Dec 2, 2019

Is this problem has sovled?

@dtrace4linux
Copy link
Owner

dtrace4linux commented Dec 3, 2019 via email

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

3 participants