moul / sshportal

:tophat: simple, fun and transparent SSH (and telnet) bastion server
https://manfred.life/sshportal
Apache License 2.0
1.79k stars 134 forks source link

Unable to compile #147

Open Merith-TK opened 5 years ago

Merith-TK commented 5 years ago

What happened: image

What you expected to happen: successful build How to reproduce it (as minimally and precisely as possible):

$ git clone https://github.com/moul/sshportal
$ cd sshportal
$ go build

Environment: Archlinux

Merith-TK commented 5 years ago

and this happens on MULTIPLE OTHER things as well github.com/smartystreets/assertions v0.0.0-20190528192650-f487f9de1cd3 github.com/denisenkom/go-mssqldb v0.0.0-20190528192650-eb9f6a1743f3

BarthV commented 5 years ago

Same thing here .

@Merith-TK , as a workaround :

> rm go.mod go.sum
> go mod init ; go mod tidy
> go build
> ./sshportal -v
sshportal version 1.10.0+dev ()

Obviously, you'll not use the same go mod dependencies versions that currently exists on master branch.

BarthV commented 5 years ago

btw . make docker.build seems working

Grounz commented 3 years ago

Hi,

when i run

go build

we have this error:

# github.com/mattn/go-sqlite3
sqlite3-binding.c: Dans la fonction « sqlite3SelectNew »:
sqlite3-binding.c:128049:10: attention: la fonction peut retourner l'adresse d'une variable locale [-Wreturn-local-addr]
128049 |   return pNew;
       |          ^~~~
sqlite3-binding.c:128009:10: note: déclaré ici
128009 |   Select standin;
       |          ^~~~~~~

In the go.mod we have this sqlite deps: github.com/mattn/go-sqlite3 v2.0.3+incompatible

but here: https://github.com/mattn/go-sqlite3 the v2 is not latest version, the latest version is v1.14. Possible to update sqlite deps ?