[#6457] ltp signalfd01 build fails due to redefinition of 'struct flock'

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

[#6457] ltp signalfd01 build fails due to redefinition of 'struct flock'

Submitted By: Vivi Li

Open Date

2011-01-20 05:29:01     Close Date

2011-01-24 01:54:23

Priority:

Medium     Assignee:

Nobody

Board:

N/A     Silicon Revision:

Resolution:

Duplicate     Fixed In Release:

N/A

Processor:

ALL     

Host Operating System:

toolchain rev.:

trunk     kernel rev.:

trunk

State:

Closed     Found In Release:

2011R1

Is this bug repeatable?:

N/A     

Summary: ltp signalfd01 build fails due to redefinition of 'struct flock'

Details:

 

Use latest toolchain to configure and build ltp, signalfd01.c can't be built.

Last know good toolchain is on Jan 5th.

 

Bellow is the steps to build ltp:

--

cd /home/test/work/cruise/checkouts/uclinux-dist/testsuites/ltp/ltp-full-20101031

 

./configure --prefix=/home/test/work/cruise/checkouts/uclinux-dist/testsuites/ltp/ltp-full-20101031 --host=bfin-uclinux --build=i686-pc-linux-gnu

 

make UCLINUX=1

--

 

Bellow is the error log. config.log built by different toolchains is attached.

--

bfin-uclinux-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall  -I/home/test/work/cruise/checkouts/uclinux-dist/testsuites/ltp/ltp-full-20101031/testcases/kernel/include -I../../../../include -I../../../../include -D__UCLIBC__ -DUCLINUX   -L../../../../lib  signalfd01.c   -lltp -o signalfd01

In file included from /home/test/tt/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/asm/fcntl.h:15,

                 from /home/test/tt/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/linux/fcntl.h:4,

                 from /home/test/tt/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/linux/signalfd.h:13,

                 from signalfd01.c:64:

/home/test/tt/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/asm-generic/fcntl.h:168: error: redefinition of 'struct flock'

/home/test/tt/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/asm-generic/fcntl.h:185: error: redefinition of 'struct flock64'

--

 

Follow-ups

 

--- Mike Frysinger                                           2011-01-20 14:50:16

this is expected behavior atm.  about only real way to resolve it would be to

implement proper signalfd support in uClibc.  then the ltp tests wouldnt try and

read the kernel header files.

 

--- Vivi Li                                                  2011-01-20 23:24:26

disable signalfd test in ltp.

 

--- Vivi Li                                                  2011-01-24 01:54:23

Close this bug as it is the dupe of [#4757].

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config.log.fail    application/octet-stream    326318    Vivi Li

config.log.pass    application/octet-stream    322843    Vivi Li

Outcomes