ipsn / go-libtor

Self-contained Tor from Go
BSD 3-Clause "New" or "Revised" License
544 stars 46 forks source link

Error after running go get #39

Open martonp opened 2 years ago

martonp commented 2 years ago

Ran the following command on mac: go get -u -v -x github.com/ipsn/go-libtor

Got the following error:

# github.com/ipsn/go-libtor/libtor
In file included from ../../go/pkg/mod/github.com/ipsn/go-libtor@v1.0.380/libtor/libevent_buffer.go:8:
In file included from ../../go/pkg/mod/github.com/ipsn/go-libtor@v1.0.380/libtor/../libevent/compat/../buffer.c:79:
In file included from ../../go/pkg/mod/github.com/ipsn/go-libtor@v1.0.380/libtor/../libevent/include/event2/event.h:204:
../../go/pkg/mod/github.com/ipsn/go-libtor@v1.0.380/libtor/../libevent/include/event2/util.h:129:2: error: "No way to define ev_uint64_t"
#error "No way to define ev_uint64_t"
 ^
../../go/pkg/mod/github.com/ipsn/go-libtor@v1.0.380/libtor/../libevent/include/event2/util.h:148:2: error: "No way to define ev_uint32_t"
#error "No way to define ev_uint32_t"
 ^
../../go/pkg/mod/github.com/ipsn/go-libtor@v1.0.380/libtor/../libevent/include/event2/util.h:167:2: error: "No way to define ev_uint16_t"
#error "No way to define ev_uint16_t"
 ^
../../go/pkg/mod/github.com/ipsn/go-libtor@v1.0.380/libtor/../libevent/include/event2/util.h:283:2: error: "No way to define SIZE_MAX"
#error "No way to define SIZE_MAX"
 ^
4 errors generated.
boeboe commented 1 year ago

Same here. Running on MacBookPro with the M1 arm64 chip.

$ uname -a Darwin XXX.local 22.1.0 Darwin Kernel Version 22.1.0: Sun Oct 9 20:15:09 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T6000 arm64

Update: https://github.com/berty/go-libtor has support for darwin

wonderingStars commented 9 months ago

i get this error to windows

\GolandProjects\TorServer> go get -u -v -x github.com/ipsn/go-libtor

get https://proxy.golang.org/github.com/@v/list

get https://proxy.golang.org/github.com/ipsn/@v/list

get https://proxy.golang.org/github.com/ipsn/go-libtor/@v/list

get https://proxy.golang.org/github.com/@v/list: 404 Not Found (0.088s)

get https://proxy.golang.org/github.com/ipsn/@v/list: 404 Not Found (0.130s)

get https://proxy.golang.org/github.com/ipsn/go-libtor/@v/list: 200 OK (0.132s)

get https://proxy.golang.org/github.com/cretz/bine/process/@v/list

get https://proxy.golang.org/github.com/cretz/bine/@v/list

get https://proxy.golang.org/github.com/cretz/@v/list

get https://proxy.golang.org/github.com/cretz/bine/process/@v/list: 404 Not Found (0.036s)

get https://proxy.golang.org/github.com/cretz/@v/list: 404 Not Found (0.062s)

get https://proxy.golang.org/github.com/cretz/bine/@v/list: 200 OK (0.065s)

get https://proxy.golang.org/github.com/cretz/bine/torutil/@v/list

get https://proxy.golang.org/github.com/cretz/bine/torutil/@v/list: 404 Not Found (0.036s)

get https://proxy.golang.org/github.com/cretz/bine/torutil/ed25519/@v/list

get https://proxy.golang.org/golang.org/@v/list

get https://proxy.golang.org/golang.org/x/@v/list

get https://proxy.golang.org/golang.org/x/crypto/@v/list

get https://proxy.golang.org/golang.org/x/crypto/sha3/@v/list

get https://proxy.golang.org/github.com/cretz/bine/torutil/ed25519/@v/list: 404 Not Found (0.035s)

get https://proxy.golang.org/github.com/cretz/bine/torutil/ed25519/internal/edwards25519/@v/list

get https://proxy.golang.org/github.com/cretz/bine/torutil/ed25519/internal/@v/list

get https://proxy.golang.org/golang.org/x/crypto/ed25519/@v/list

get https://proxy.golang.org/golang.org/x/crypto/@v/list: 200 OK (0.020s)

get https://proxy.golang.org/golang.org/x/@v/list: 404 Not Found (0.028s)

get https://proxy.golang.org/golang.org/@v/list: 404 Not Found (0.061s)

get https://proxy.golang.org/github.com/cretz/bine/torutil/ed25519/internal/edwards25519/@v/list: 404 Not Found (0.063s)

get https://proxy.golang.org/golang.org/x/crypto/sha3/@v/list: 404 Not Found (0.065s)

get https://proxy.golang.org/golang.org/x/crypto/ed25519/@v/list: 404 Not Found (0.066s)

get https://proxy.golang.org/github.com/cretz/bine/torutil/ed25519/internal/@v/list: 404 Not Found (0.075s)

get https://proxy.golang.org/golang.org/x/sys/cpu/@v/list

get https://proxy.golang.org/golang.org/x/sys/@v/list

get https://proxy.golang.org/golang.org/x/sys/@v/list: 200 OK (0.017s)

get https://proxy.golang.org/golang.org/x/sys/cpu/@v/list: 404 Not Found (0.028s)