VMware Communities
xizerlee
Contributor
Contributor
Jump to solution

ubuntu 19.04(linux 5.0.0)vmware-modconfig error

as  i run this"vmware-modconfig --console --install-all"

something error

/tmp/modconfig-3ezlw3/vmmon-only/linux/hostif.c: In function ‘HostIF_EstimateLockedPageLimit’:

/tmp/modconfig-3ezlw3/vmmon-only/linux/hostif.c:1641:25: error: ‘totalram_pages’ redeclared as different kind of symbol

    extern unsigned long totalram_pages;

                         ^~~~~~~~~~~~~~

In file included from /tmp/modconfig-3ezlw3/vmmon-only/linux/hostif.c:42:

./include/linux/mm.h:52:29: note: previous definition of ‘totalram_pages’ was here

static inline unsigned long totalram_pages(void)

                             ^~~~~~~~~~~~~~

  CC [M]  /tmp/modconfig-3ezlw3/vmmon-only/common/vmx86.o

/tmp/modconfig-3ezlw3/vmmon-only/linux/hostif.c: In function ‘HostIFReadUptimeWork’:

/tmp/modconfig-3ezlw3/vmmon-only/linux/hostif.c:1787:4: error: implicit declaration of function ‘do_gettimeofday’; did you mean ‘do_settimeofday64’? [-Werror=implicit-function-declaration]

    do_gettimeofday(&tv);

    ^~~~~~~~~~~~~~~

    do_settimeofday64

/tmp/modconfig-3ezlw3/vmmon-only/linux/hostif.c: In function ‘HostIF_MapUserMem’:

/tmp/modconfig-3ezlw3/vmmon-only/linux/hostif.c:3408:40: error: macro "access_ok" passed 3 arguments, but takes just 2

    if (!access_ok(VERIFY_WRITE, p, size)) {

                                        ^

/tmp/modconfig-3ezlw3/vmmon-only/linux/hostif.c:3408:9: error: ‘access_ok’ undeclared (first use in this function)

    if (!access_ok(VERIFY_WRITE, p, size)) {

/tmp/modconfig-3ezlw3/vmnet-only/userif.c: In function ‘VNetUserIfMapPtr’:

/tmp/modconfig-3ezlw3/vmnet-only/userif.c:145:52: error: macro "access_ok" passed 3 arguments, but takes just 2

    if (!access_ok(VERIFY_WRITE, (void *)uAddr, size) ||

                                                    ^

/tmp/modconfig-3ezlw3/vmnet-only/userif.c:145:9: error: ‘access_ok’ undeclared (first use in this function)

    if (!access_ok(VERIFY_WRITE, (void *)uAddr, size) ||

         ^~~~~~~~~

/tmp/modconfig-3ezlw3/vmnet-only/userif.c:145:9: note: each undeclared identifier is reported only once for each function it appears in

Reply
0 Kudos
1 Solution

Accepted Solutions
xishengzhang
VMware Employee
VMware Employee
Jump to solution

Hello, xizerlee

This issue was fixed internally, Please wait for the update release. Thanks.

View solution in original post

Reply
0 Kudos
2 Replies
xishengzhang
VMware Employee
VMware Employee
Jump to solution

Hello, xizerlee

This issue was fixed internally, Please wait for the update release. Thanks.

Reply
0 Kudos
xizerlee
Contributor
Contributor
Jump to solution

THX

Reply
0 Kudos