2009-04-28 07:59:35     Compilation Issues

Document created by Aaronwu Employee on Aug 15, 2013
Version 1Show Document
  • View in full screen mode

2009-04-28 07:59:35     Compilation Issues

razia razia (INDIA)

Message: 73356   

 

Hi All,

 

I am trying to compile a source file on uClinux kernel.

 

While compiling I am getting the following errors,

 

make -C tools

make[1]: Entering directory `/home/razia/uclinux-dist-trunk-svn-7856-sreedhar/linux-2.6.x/drivers/Test/tools'

gcc -g bin2h.c -o bin2h

make[1]: Leaving directory `/home/razia/uclinux-dist-trunk-svn-7856-sreedhar/linux-2.6.x/drivers/Test/tools'

/home/razia/uclinux-dist-trunk-svn-7856-sreedhar/linux-2.6.x/drivers/Test//tools/bin2h

cp -f os/linux/Makefile.6 /home/razia/uclinux-dist-trunk-svn-7856-sreedhar/linux-2.6.x/drivers/Test//os/linux/Makefile

make  -C  /home/razia/uclinux-dist-trunk-svn-7856-sreedhar/linux-2.6.x/ SUBDIRS=/home/razia/uclinux-dist-trunk-svn-7856-sreedhar/linux-2.6.x/drivers/Test//os/linux modules

make[1]: Entering directory `/home/razia/uclinux-dist-trunk-svn-7856-sreedhar/linux-2.6.x'

  CC [M]  /home/razia/uclinux-dist-trunk-svn-7856-sreedhar/linux-2.6.x/drivers/Test//os/linux/../../common/crypt_md5.o

In file included from /home/razia/uclinux-dist-trunk-svn-7856-sreedhar/linux-2.6.x/drivers/Test//include/rtmp_def.h:42,

                 from /home/razia/uclinux-dist-trunk-svn-7856-sreedhar/linux-2.6.x/drivers/Test//include/rt_config.h:46,

                 from /home/razia/uclinux-dist-trunk-svn-7856-sreedhar/linux-2.6.x/drivers/Test//include/crypt_md5.h:47,

                 from /home/razia/uclinux-dist-trunk-svn-7856-sreedhar/linux-2.6.x/drivers/Test//os/linux/../../common/crypt_md5.c:27:

/home/razia/uclinux-dist-trunk-svn-7856-sreedhar/linux-2.6.x/drivers/Test//include/oid.h:823: error: expected identifier or â(â before numeric constant

/home/razia/uclinux-dist-trunk-svn-7856-sreedhar/linux-2.6.x/drivers/Test//include/oid.h:824: warning: no semicolon at end of struct or union

/home/razia/uclinux-dist-trunk-svn-7856-sreedhar/linux-2.6.x/drivers/Test//include/oid.h:882: error: expected identifier or â(â before numeric constant

/home/razia/uclinux-dist-trunk-svn-7856-sreedhar/linux-2.6.x/drivers/Test//include/oid.h:883: warning: no semicolon at end of struct or union

make[2]: *** [/home/razia/uclinux-dist-trunk-svn-7856-sreedhar/linux-2.6.x/drivers/Test//os/linux/../../common/crypt_md5.o] Error 1

make[1]: *** [_module_/home/razia/uclinux-dist-trunk-svn-7856-sreedhar/linux-2.6.x/drivers/Test//os/linux] Error 2

make[1]: Leaving directory `/home/razia/uclinux-dist-trunk-svn-7856-sreedhar/linux-2.6.x'

make: *** [LINUX] Error 2

 

On seeing the oid.h file for the error number, the structure is properly declared.

 

Please help me to fix this error.

 

Regards,

 

Razia.A

QuoteReplyEditDelete

 

 

2009-04-28 08:31:25     Re: Compilation Issues

Mike Frysinger (UNITED STATES)

Message: 73361   

 

if the structure were properly declared, you wouldnt be getting errors now would you ?

 

you can always try running `make` manually and telling it to output a .i file rather than .o and you can read the file to see where things are going wrong:

make foo/bar.i

Attachments

    Outcomes