pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/50565: lang/go14 does not build on SunOS



On Wed, Dec 16, 2015 at 4:25 PM, Hauke Fath <hf%spg.tu-darmstadt.de@localhost> wrote:

> # os/user
> os/user/lookup_unix.go:74: cannot use C.size_t(bufSize) (type C.size_t) as type C.int in argument to _Cfunc_getpwnam_r

Thanks for the report. This is obviously broken, due to the different
definition of getpwnam_r. OpenSolaris:

       struct passwd *getpwnam_r(const char *name, struct passwd *pwd,
   char *buffer, int buflen);

Linux:

       int getpwuid_r(uid_t uid, struct passwd *pwd,
  char *buf, size_t buflen, struct passwd **result);

Note that the former returns NULL when the entry is not found but
Linux returns 0 when the entry is found :(.

I see that there has been a CL in the meantime, I will look into
pulling this to go14. My only question is: How did it ever
successfully build on solaris before? Filip?


Home | Main Index | Thread Index | Old Index