Menu

#178 9.4.0-1280544 does not compile on FreeBSD 10.0-BETA or 11-CURRENT.

v1.0 (example)
open-fixed
nobody
FreeBSD (1)
4
2015-07-09
2013-11-13
Steve Wills
No

I'm running into an issue:

--- vmmemctl ---
os.c:300:22: error: implicit declaration of function 'kmem_alloc_nofault' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
vm_offset_t res = kmem_alloc_nofault(kernel_map, PAGE_SIZE);
^
os.c:357:14: error: incompatible pointer types passing 'vm_map_t' (aka 'struct vm_map ') to parameter of type 'struct vmem ' [-Werror,-Wincompatible-pointer-types]
kmem_free(kernel_map, (vm_offset_t)mapping, PAGE_SIZE);
^~~~~~~~~~
@/vm/vm_extern.h:59:29: note: passing argument to parameter here
void kmem_free(struct vmem *, vm_offset_t, vm_size_t);
^
2 errors generated.

See this url:

http://meatwad.mouf.net/poudriere/logs/bulk/10i386-default/2013-11-13_06h19m41s/logs/errors/open-vm-tools-1280544,1.log

for full build log.

The issue seems to be kmem_alloc_nofault was removed from FreeBSD 10 and later. I'm trying to find out what the right replacement is.

Note this has some local patches, but not in the section of code that is causing the compile issue. I can share the patches, just let me know the best way.

Thanks,
Steve

Related

Tracker: #178

Discussion

  • Steve Wills

    Steve Wills - 2013-11-18

    Changing the call to this:

    vm_offset_t res = kva_alloc(PAGE_SIZE);

    fixes it. Please update os.c and close this ticket.

     
  • Ravindra Kumar

    Ravindra Kumar - 2013-11-19

    Thanks Steve. We will close this ticket when we release the new source code with the fix.

    ----- Original Message -----

    From: "Steve Wills" stevewills@users.sf.net
    To: "[open-vm-tools:tracker]" 178@tracker.open-vm-tools.p.re.sf.net
    Sent: Sunday, November 17, 2013 6:37:39 PM
    Subject: [open-vm-tools:tracker] #178 9.4.0-1280544 does not compile on FreeBSD 10.0-BETA or 11-CURRENT.

    Changing the call to this:

    vm_offset_t res = kva_alloc(PAGE_SIZE);

    fixes it. Please update os.c and close this ticket.

    [tracker:#178] 9.4.0-1280544 does not compile on FreeBSD 10.0-BETA or 11-CURRENT.

    Status: open
    Labels: FreeBSD
    Created: Wed Nov 13, 2013 10:25 PM UTC by Steve Wills
    Last Updated: Wed Nov 13, 2013 10:25 PM UTC
    Owner: nobody

    I'm running into an issue:

    --- vmmemctl ---
    os.c:300:22: error: implicit declaration of function 'kmem_alloc_nofault' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    vm_offset_t res = kmem_alloc_nofault(kernel_map, PAGE_SIZE);
    ^
    os.c:357:14: error: incompatible pointer types passing 'vm_map_t' (aka 'struct vm_map ') to parameter of type 'struct vmem ' [-Werror,-Wincompatible-pointer-types]
    kmem_free(kernel_map, (vm_offset_t)mapping, PAGE_SIZE);
    ^~~~~~~~~~
    @/vm/vm_extern.h:59:29: note: passing argument to parameter here
    void kmem_free(struct vmem *, vm_offset_t, vm_size_t);
    ^
    2 errors generated.

    See this url:

    http://meatwad.mouf.net/poudriere/logs/bulk/10i386-default/2013-11-13_06h19m41s/logs/errors/open-vm-tools-1280544 ,1.log

    for full build log.

    The issue seems to be kmem_alloc_nofault was removed from FreeBSD 10 and later. I'm trying to find out what the right replacement is.

    Note this has some local patches, but not in the section of code that is causing the compile issue. I can share the patches, just let me know the best way.

    Thanks,
    Steve

    Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/open-vm-tools/tracker/178/

    To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

     

    Related

    Tracker: #178

  • Ravindra Kumar

    Ravindra Kumar - 2015-07-09
    • status: open --> open-fixed
     
  • Ravindra Kumar

    Ravindra Kumar - 2015-07-09

    Please check with the latest version of open-vm-tools 9.10.2.

     

Log in to post a comment.