Giter Site home page Giter Site logo

Cannot install APKiD about apkid HOT 7 CLOSED

rednaga avatar rednaga commented on May 17, 2024
Cannot install APKiD

from apkid.

Comments (7)

strazzere avatar strazzere commented on May 17, 2024

Thanks Cryptax, I'm taking a look at this now. Pretty sure I know the issue and can fix it relatively fast.

Very nice and detailed bug report by the way 👍

from apkid.

strazzere avatar strazzere commented on May 17, 2024

Ok as of;
rednaga/yara-python@88877e3

Both the yara-python module and the yara module should updated with a fix that will correct the compilation errors you are having.

from apkid.

strazzere avatar strazzere commented on May 17, 2024

Per the comment on instructions being unclear, I think I understand what you're saying now. So for the "installing" instructions, we're simply trying to clarify that to use APKiD currently you must install our modified yara-python project. This, hopefully, is only until the project is merged upstream into the master yara-python project. This is why we have you cloning only yara-python and not APKiD, followed by using pip to install our package.

Does this make sense? I'm going to try and reword the README to clarify this.

from apkid.

strazzere avatar strazzere commented on May 17, 2024

With commit;
9d7697b
I believe I've address some clarity issues, let us know if there are any issues now. 👍

from apkid.

cryptax avatar cryptax commented on May 17, 2024

Hi Tim,

I had forgotten rednaga would go to you ;) Nice to "see" you again!

I'm afraid, I'm still having issues with compilation of yara-python. To be certain, I pulled a fresh repository for yara-python and apkid.

yara/libyara/modules/dex.c: In function ‘load_proto_ids’:
yara/libyara/modules/dex.c:429:3: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
   for (int i = 0, p = 0; p < proto_ids_size; i += 1, p += sizeof(PROTO_ID_ITEM)) {
   ^
yara/libyara/modules/dex.c:429:3: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
yara/libyara/modules/dex.c: In function ‘load_method_ids’:
yara/libyara/modules/dex.c:486:3: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
   for (int i = 0, p = 0; p < method_ids_size; i += 1, p += sizeof(METHOD_ID_ITEM)) {
   ^
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

I patched dex.c, with the following and then it compiled:

int i, p;
for (i = 0, p = 0; p < proto_ids_size; i += 1, p += sizeof(PROTO_ID_ITEM)) {

It's strange because your modification in rednaga/yara@6541005 has the fix. But look here, the fix is not in. I haven't investigated why.

from apkid.

rojaster avatar rojaster commented on May 17, 2024

Hi @cryptax , I've got the same error message. Looks like two lines 429 and 486 were not modified.
But with clang3.7.1 I built successfully and with GCC I caught this bug.

from apkid.

cryptax avatar cryptax commented on May 17, 2024

yep, @rojaster I saw your bug report :)

from apkid.

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.