Skip to content

Error when build #41

@efairon

Description

@efairon

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions