/bin/hello: 21: Syntax error: word unexpected (expecting ")")

Benny k j bennyk_j at hotmail.com
Fri Feb 13 11:09:32 UTC 2009


Hi,

I apologize for posting my previous request, "directory structure" here, rather than at the buildroot mailing list.

But now I have this problem:

/bin/hello: 21: Syntax error: word unexpected (expecting ")")
 
when i try to run a simple hello world ([hello: ELF 32-bit LSB executable, ARM, version 1, statically linked, not stripped]) on my ARM board (AT91RM9200). 

#include<stdio.h>
int main(int argc, char** argv)
{
        printf("Hello World \n");
        return 0;
}

The gcc on my host PC is: arm-linux-gcc (GCC) 4.3.2. 

I am having the following versions on target board:

BusyBox v1.00-pre8 (2004.04.01-03:40+0000)

Linux version 2.4.19-rmk7 (root at localhost.localdomain) (gcc version 2.95.3 20010315 (release)) #316 Tue Aug 5 19:32:21 SGT 2008.

Please help me.  The hello world compiles and runs well on my host pc. Thank you.

Kind Regards,

Benny K J

_________________________________________________________________
Wish to Marry Now? Join MSN Matrimony FREE!
http://www.in.msn.com/matrimony
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20090213/d100246d/attachment.htm>


More information about the uClibc mailing list