knightsc / gapstone Goto Github PK
View Code? Open in Web Editor NEWThis project forked from bnagy/gapstone
gapstone is a Go binding for the capstone disassembly library
License: BSD 3-Clause "New" or "Revised" License
This project forked from bnagy/gapstone
gapstone is a Go binding for the capstone disassembly library
License: BSD 3-Clause "New" or "Revised" License
$ 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:
../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
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?
# github.com/knightsc/gapstone
../../../../go/pkg/mod/github.com/knightsc/[email protected]/arm64_constants.go:22:11: fatal error: 'capstone/capstone.h' file not found
#include <capstone/capstone.h>
^~~~~~~~~~~~~~~~~~~~~
go get -u -v github.com/knightsc/gapstone
github.com/knightsc/gapstone
go build github.com/knightsc/gapstone: build constraints exclude all Go files in C:\Users\xxx\go\pkg\mod\github.com\knightsc\[email protected]
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]
Was hoping to play with the new ARMv8.3 stuff?
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.