bolkedebruin / rdpgw

Remote Desktop Gateway in Go for deploying on Linux/BSD/Kubernetes
Apache License 2.0
693 stars 117 forks source link

Compile (make) errors #74

Closed hyiin closed 3 months ago

hyiin commented 12 months ago

I am using an Ubuntu server version 22.0 and am getting the following error when I tried to "make":

root@hv-rdpgw:/var/pkg/RDPGW/rdpgw-master# make go mod tidy -compat=1.20 go build -trimpath -tags '' -ldflags '' -o '/var/pkg/RDPGW/rdpgw-master/bin'/rdpgw ./cmd/rdpgw go build -trimpath -tags '' -ldflags '' -o '/var/pkg/RDPGW/rdpgw-master/bin'/rdpgw-auth ./cmd/auth

github.com/bolkedebruin/rdpgw/cmd/auth

cmd/auth/auth.go:37:16: undefined: pam.StartFunc cmd/auth/auth.go:37:70: undefined: pam.Style cmd/auth/auth.go:39:12: undefined: pam.PromptEchoOff cmd/auth/auth.go:41:12: undefined: pam.PromptEchoOn cmd/auth/auth.go:41:30: undefined: pam.ErrorMsg cmd/auth/auth.go:41:44: undefined: pam.TextInfo make: *** [Makefile:39: /var/pkg/RDPGW/rdpgw-master/bin/rdpgw] Error 1

I found a similar posting in StackOverflow but with not detailed fix. Can someone help?

archef2000 commented 11 months ago

you are missing apt-get install -y libpam-dev

hyiin commented 11 months ago

@archef2000 Thanks for replying. I did have the libpam0g-dev (v1.4.0) installed. To be certain I removed and re-installed the package, but I still got the same error message.

archef2000 commented 11 months ago

Maybe upgrade make, build-essentials, etc ?

bolkedebruin commented 3 months ago

Typically the includes are then at the wrong location.