Russ Cox is sharing code with you

Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.

Don't show this again

rsc / plan9port http://swtch.com/plan9port/

Plan 9 from User Space (aka plan9port) is a port of many Plan 9 programs from their native Plan 9 environment to Unix-like operating systems. See the web site http://swtch.com/plan9port/ for details.

Clone this repository (size: 58.2 MB): HTTPS / SSH
hg clone https://bitbucket.org/rsc/plan9port
hg clone ssh://hg@bitbucket.org/rsc/plan9port

Issues

#69 Unable to build on NetBSD 5.1

Reported anonymously

Got the following error message from sh ./INSTALL on vm-based NetBSD-5.1

mount-BSD.c:66:error: too few arguments to function 'mount' mk: 9c mount-NetBSD.c : exit status=exit(1) mk: for i in ... : exit status=exit(1) mk: for i in ... : exit status = exit(1)

If you want me to make test runs, let me know. Mark Haas - mailto:vhaas@panix.com

Status: new Responsible: nobody Type: bug Priority: major
Milestone: none Component: none Version: none

Attachments

No attachments added for this issue yet.

Comments and changes

  1. #1 Anonymous

    written

    When I tried porting to amd64 I got that too, I change the mount call to include a sizeof parameter at the end;

        66          if(mount("nfs", mtpt, mflag, &na) < 0)
    
    

    becomes

        66          if(mount("nfs", mtpt, mflag, &na, sizeof(na)) < 0)
    
    

    This should be alright according to the man page but I can't test it since vbackup fails on amd64 with a thread issue.

    man snippet:

    SYNOPSIS
         #include <sys/param.h>
         #include <sys/mount.h>
    
         int
         mount(const char *type, const char *dir, int flags, void *data,
             size_t data_len);
    

Add comment / attachment

Verification: Please write the text from the image in the box (letters only)

captcha

Is that you, Humanoid? Is this me?