RcRaCk2k DD-WRT User
Joined: 07 Aug 2007 Posts: 151
|
Posted: Tue Nov 26, 2013 18:57 Post subject: Cross-Compile Problem / Interpreting File as script |
|
Hi!
I have a very strange problem.
I have cross compiled the sources of dhcp-forwarder:
Code: | ARCH=mips-linux-uclibc CC=/root/staging_dir_mips/mips-linux-uclibc/bin/gcc STRIP=/root/staging_dir_mips/mips-linux-uclibc/bin/strip ../configure --host=mips-linux-uclibc
.....
make
.....
file dhcp-fwd
dhcp-fwd: ELF 32-bit MSB executable, MIPS, MIPS-I version 1 (SYSV), dynamically linked (uses shared libs), not stripped |
So, cross-compile was successful.
But when i copy the file via SCP to my DD-WRT Device (Buffalo WHR-HP-G54) it tells me that:
Code: | ./dhcp-fwd: line 1: syntax error: "(" unexpected |
That looks like the command line interpreter will parse that file instead to run the Binary File.
What have i do wrong?[/code] |
|