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



The following reply was made to PR pkg/50565; it has been noted by GNATS.

From: Benny Siegert <bsiegert%gmail.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: pkg-manager%netbsd.org@localhost, gnats-admin%netbsd.org@localhost, pkgsrc-bugs%netbsd.org@localhost, 
	fhajny%netbsd.org@localhost
Subject: Re: pkg/50565: lang/go14 does not build on SunOS
Date: Mon, 21 Dec 2015 10:34:16 +0100

 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