Skip to content

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

Description

@Dzenly

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 &&

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions