Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when build #41

Open
efairon opened this issue Jul 11, 2023 · 1 comment
Open

Error when build #41

efairon opened this issue Jul 11, 2023 · 1 comment

Comments

@efairon
Copy link

efairon commented Jul 11, 2023

go build -v -x tor.go

go version 1.20.5 / Linux

# github.com/ipsn/go-libtor/libtor
In file included from ../go/pkg/mod/github.com/ipsn/go-libtor@v1.0.380/libtor/../libevent/compat/../evutil_rand.c:134,
                 from ../go/pkg/mod/github.com/ipsn/go-libtor@v1.0.380/libtor/libevent_evutil_rand.go:8:
../go/pkg/mod/github.com/ipsn/go-libtor@v1.0.380/libtor/../libevent/compat/.././arc4random.c:467:1: error: static declaration of ‘arc4random_buf’ follows non-static declaration
  467 | arc4random_buf(void *buf_, size_t n)
      | ^~~~~~~~~~~~~~
In file included from ../go/pkg/mod/github.com/ipsn/go-libtor@v1.0.380/libtor/../libevent/compat/../util-internal.h:37,
                 from ../go/pkg/mod/github.com/ipsn/go-libtor@v1.0.380/libtor/../libevent/compat/../evutil_rand.c:40:
/usr/include/stdlib.h:542:13: note: previous declaration of ‘arc4random_buf’ with type ‘void(void *, size_t)’ {aka ‘void(void *, long unsigned int)’}
  542 | extern void arc4random_buf (void *__buf, size_t __size)
@AnAverageBeing
Copy link

same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants