sshportal icon indicating copy to clipboard operation
sshportal copied to clipboard

Unable to compile

Open Merith-TK opened this issue 4 years ago • 4 comments

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

  • OS (e.g. from /etc/os-release): Arch Linux
  • install method (e.g. go/docker/brew/...): go build

Merith-TK avatar Oct 07 '19 00:10 Merith-TK

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

Merith-TK avatar Oct 07 '19 00:10 Merith-TK

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 avatar Oct 07 '19 08:10 BarthV

btw . make docker.build seems working

BarthV avatar Oct 07 '19 09:10 BarthV

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 ?

Grounz avatar Mar 19 '21 16:03 Grounz