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 · 3 comments
Open

Error when build #41

efairon opened this issue Jul 11, 2023 · 3 comments

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/[email protected]/libtor/../libevent/compat/../evutil_rand.c:134,
                 from ../go/pkg/mod/github.com/ipsn/[email protected]/libtor/libevent_evutil_rand.go:8:
../go/pkg/mod/github.com/ipsn/[email protected]/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/[email protected]/libtor/../libevent/compat/../util-internal.h:37,
                 from ../go/pkg/mod/github.com/ipsn/[email protected]/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)
@ghost
Copy link

ghost commented Feb 14, 2024

same

@0xffffa
Copy link

0xffffa commented Jun 20, 2024

any fixs?

@ManicDevs
Copy link

Edit the file with arc4random_buf() this will be in the go-libtor/libevent/arc4random.c file.

Just rename arc4random_buf to arc4random_buf_old

This shall fix it.

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

3 participants