msteinert / pam

Go wrapper module for the Pluggable Authentication Modules (PAM) API
http://godoc.org/github.com/msteinert/pam
BSD 2-Clause "Simplified" License
133 stars 36 forks source link

Building on mac gives errors on certain symbols #24

Open bolkedebruin opened 8 months ago

bolkedebruin commented 8 months ago
../../go/pkg/mod/github.com/msteinert/pam/v2@v2.0.0/errors.go:81:21: could not determine kind of name for C.PAM_BAD_ITEM
../../go/pkg/mod/github.com/msteinert/pam/v2@v2.0.0/errors.go:84:23: could not determine kind of name for C.PAM_CONV_AGAIN
../../go/pkg/mod/github.com/msteinert/pam/v2@v2.0.0/errors.go:88:24: could not determine kind of name for C.PAM_INCOMPLETE

They are probably Linux specific. Can these be OS architecture dependent?

3v1n0 commented 8 months ago

Yeah, it could be definitely be the case... We need check if those are defined and provide fallbacks otherwise.