Article [#7384] [mtd-utils] Trunk fails on compile with trunk toolchain in recv_image.o

[#7384] [mtd-utils] Trunk fails on compile with trunk toolchain in recv_image.o

Submitted By: James Kosin

Open Date

2012-10-11 13:15:22    

Priority:

Low     Assignee:

Nobody

Status:

Open     Fixed In Release:

N/A

Found In Release:

snaps     Release:

Category:

N/A     Board:

N/A

Processor:

ALL     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Assigned (Not Start)

Uboot version or rev.:

    Toolchain version or rev.:

Trunk

App binary format:

N/A     

Summary: [mtd-utils] Trunk fails on compile with trunk toolchain in recv_image.o

Details:

Trunk kernel and toolchain fail on compiling mtd-utils with an undeclared IPV6_ADD_MEMBERSHIP.

  LD      rfdformat

  CC      serve_image.o

  LD      serve_image

  CC      recv_image.o

recv_image.c: In function þmainþ:

recv_image.c:144: error: þIPV6_ADD_MEMBERSHIPþ undeclared (first use in this function)

recv_image.c:144: error: (Each undeclared identifier is reported only once

recv_image.c:144: error: for each function it appears in.)

make[4]: *** [/home/jkosin/bftools/james/develop/uclinux/user/mtd-utils/build-36d8de81049c9c908740b690c664b5bd3703ccd6/recv_image.o] Error 1

make[4]: Leaving directory `/home/jkosin/bftools/james/develop/uclinux/user/mtd-utils/36d8de81049c9c908740b690c664b5bd3703ccd6'

make[3]: *** [all] Error 2

make[3]: Leaving directory `/home/jkosin/bftools/james/develop/uclinux/user/mtd-utils'

make[2]: *** [mtd-utils] Error 2

make[2]: Leaving directory `/home/jkosin/bftools/james/develop/uclinux/user'

make[1]: *** [all] Error 2

make[1]: Leaving directory `/home/jkosin/bftools/james/develop/uclinux/user'

make: *** [subdirs] Error 1

Follow-ups

--- James Kosin                                              2012-10-11 16:08:57

this seems to be defined in:

linux/in.h

and

linux/in6.h

However can't include that one; because then we have conflicts with

netinet/in.h

If I remove that one and include; someone else also includes netinet/in.h

somwhere else; so, just put a '#define IPV6_ADD_MEMBERSHIP 20' to the .c file to

get it to compile.  This seems to generate lots of warnings when compiled.

Don't know yet if it works.

--- Sonic Zhang                                              2012-10-23 04:16:32

Don't use trunk uClinux-dist as your development base. Use 2011R1 instead.

--- James Kosin                                              2012-10-23 09:15:22

Okay, I guess this means trunk is going through changes...

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

File Name     File Type     File Size     Posted By

No Files Were Found

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.