Git Product home page Git Product logo

gapstone's People

Contributors

andrew-d avatar aquynh avatar bentay avatar bnagy avatar jroimartin avatar knightsc avatar stalkr avatar xn0px90 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gapstone's Issues

go get error: could not determine kind of name for C.ARM64_...

$ uname -a

Linux centos 4.19.76-linuxkit #1 SMP Tue May 26 11:42:35 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

When I run go get github.com/knightsc/gapstone, it reports errors as following:

github.com/knightsc/gapstone

../go/src/github.com/knightsc/gapstone/arm64_constants.go:1088:30: could not determine kind of name for C.ARM64_GRP_BRANCH_RELATIVE
../go/src/github.com/knightsc/gapstone/arm64_constants.go:1084:30: could not determine kind of name for C.ARM64_GRP_CALL
../go/src/github.com/knightsc/gapstone/arm64_constants.go:1086:30: could not determine kind of name for C.ARM64_GRP_INT
../go/src/github.com/knightsc/gapstone/arm64_constants.go:1087:30: could not determine kind of name for C.ARM64_GRP_PRIVILEGE
../go/src/github.com/knightsc/gapstone/arm64_constants.go:1085:30: could not determine kind of name for C.ARM64_GRP_RET
../go/src/github.com/knightsc/gapstone/arm64_constants.go:1071:24: could not determine kind of name for C.ARM64_INS_NEGS
../go/src/github.com/knightsc/gapstone/arm64_constants.go:1072:24: could not determine kind of name for C.ARM64_INS_NGCS

Update to version 5

Capstone was updated to a new major version.
homebrew doesn't support the previous version, which means the only way of using this library is installing capstone from sources.
Could you update the library to support the new version?

Compilation error

When using go get to download the library, I receive the following compilation errors:

$ go get -u github.com/bnagy/gapstone
# github.com/bnagy/gapstone
../../github.com/bnagy/gapstone/arm64_constants.go:1088:30: could not determine kind of name for C.ARM64_GRP_BRANCH_RELATIVE
../../github.com/bnagy/gapstone/arm64_constants.go:1084:30: could not determine kind of name for C.ARM64_GRP_CALL
../../github.com/bnagy/gapstone/arm64_constants.go:1086:30: could not determine kind of name for C.ARM64_GRP_INT
../../github.com/bnagy/gapstone/arm64_constants.go:1087:30: could not determine kind of name for C.ARM64_GRP_PRIVILEGE
../../github.com/bnagy/gapstone/arm64_constants.go:1085:30: could not determine kind of name for C.ARM64_GRP_RET
../../github.com/bnagy/gapstone/arm64_constants.go:1071:24: could not determine kind of name for C.ARM64_INS_NEGS
../../github.com/bnagy/gapstone/arm64_constants.go:1072:24: could not determine kind of name for C.ARM64_INS_NGCS

My Go version is go1.13.1 linux/amd64 and I have libcapstone-dev and libcapstone3 installed.

$ go version 
go version go1.13.1 linux/amd64
$ apt list --installed | grep capstone

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libcapstone-dev/disco,now 4.0.1+really+3.0.5-1 amd64 [installed]
libcapstone3/disco,now 4.0.1+really+3.0.5-1 amd64 [installed]

Go binding installation error

go get -u github.com/bnagy/gapstone

# github.com/bnagy/gapstone
/tmp/go-build004807394/b001/_x006.o: In function `_cgo_5d1ff8dacc63_Cfunc_cs_regs_access':
/tmp/go-build/cgo-gcc-prolog:234: undefined reference to `cs_regs_access'
collect2: error: ld returned 1 exit status

Any idea why this might be happening, I am running the latest capstone from capstone master and used these commands to install

git clone https://github.com/aquynh/capstone.git
cd capstone
./make.sh default -j8
sudo ./make.sh install

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.