Jump to content

Arm Cross Compiling Issues


abferm

Recommended Posts

Hey guys I'm trying to learn to cross compile some code to ARM uClinux so I can run it on my Nintendo DS using DSlinux(a port of uClinux). I haven't taken the time to learn C yet and it is killing me. I probably should have started with something mare simple than aircrack, but now I really want to get it working. I was able to reduce the number of errors by adding a line to include sha-mmx.S that was mentioned in the makefile. I don't know if this fixed the errors or if it just covered them up with new ones.

Compile command:

/home/alex/CodeSourcery/Sourcery_G++_Lite/bin/arm-uclinuxeabi-gcc aircrack-ng.c crypto.c sha1-mmx.S common.c aircrack-ptw-lib.c -o aircrack

This is the error message I am getting now:

In file included from aircrack-ng.c:52:0:
sha1-mmx.S:361:1: error: expected identifier or '(' before '.' token
aircrack-ng.c: In function 'read_thread':
aircrack-ng.c:543:26: error: 'ZERO' undeclared (first use in this function)
aircrack-ng.c:543:26: note: each undeclared identifier is reported only once for each function it appears in
aircrack-ng.c: In function 'main':
aircrack-ng.c:3721:30: error: 'ZERO' undeclared (first use in this function)

Here are lines 360-362 of sha-mmx.S:

#ifdef __ELF__
.section .note.GNU-stack,"",%progbits
#endif

I have only modified aircrack-ng.c. The other files are in their original form as found in the 0.9.3 release of the aircrack suite. I am using the arm-uclinux-gcc compiler found at codesorcery.com.

Edited by abferm
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...