GithubHelp home page GithubHelp logo

mips/mipsel support about go-libtor HOT 4 OPEN

ipsn avatar ipsn commented on May 18, 2024
mips/mipsel support

from go-libtor.

Comments (4)

hook-s3c avatar hook-s3c commented on May 18, 2024

Hi,

So I went through and found libevent_config/event2/event-config.h

I dropped this at the bottom;

#define EVENT__HAVE_UINT64_T 0
#define EVENT__HAVE_UINT32_T 1
#define EVENT__HAVE_UINT16_T 1
#define EVENT__SIZEOF_SIZE_T 4
#define EVENT__SIZEOF_LONG 8
#define EVENT__SIZEOF_LONG_LONG 1

Seemed to get past the above errors, although I'm not really sure if the size values are correct.

Then I ran in to this;

# github.com/ipsn/go-libtor/libtor
In file included from libtor/openssl_crypto_bio_bss_dgram.go:10:
libtor/../openssl/include/../crypto/bio/bss_dgram.c:17:12: fatal error: netinet/sctp.h: No such file or directory
 #  include <netinet/sctp.h>
            ^~~~~~~~~~~~~~~~
compilation terminated.

from go-libtor.

hook-s3c avatar hook-s3c commented on May 18, 2024

So I searched my system for sctp.h and found it on /usr/include/netinet/sctp.h

-# include <netinet/sctp.h>
+# include </usr/include/netinet/sctp.h>

in openssl/crypto/bio/bss_dgram.c

I'm not proud, but it got me a little further...

# github.com/ipsn/go-libtor/libtor
In file included from libtor/openssl_crypto_bn_bn_dh.go:10:
libtor/../openssl/include/../crypto/bn/bn_dh.c:479:4: error: #error "unsupported BN_BITS2"
 #  error "unsupported BN_BITS2"
    ^~~~~

# error "unsupported BN_BITS2"

from go-libtor.

hook-s3c avatar hook-s3c commented on May 18, 2024

I tried to hack some C, but it's not going to work out - maybe you have a better idea of what's needed.
I can help with testing, just let me know!

from go-libtor.

karalabe avatar karalabe commented on May 18, 2024

Just saw this issue. So, the way I've been generating the correct constants is to manually build all the dependencies on the target hardware and then see what values the local make process generates. Then incorporate those into the pre-configured templates.

from go-libtor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.