[#4647] build samba fails on trunk now for redefinition in fcntl.h

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

[#4647] build samba fails on trunk now for redefinition in fcntl.h

Submitted By: Mingquan Pan

Open Date

2008-11-14 01:26:21     Close Date

2008-12-29 04:53:21

Priority:

Medium High     Assignee:

Mike Frysinger

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     Release:

Category:

N/A     Board:

N/A

Processor:

N/A     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

Nov 11

App binary format:

N/A     

Summary: build samba fails on trunk now for redefinition in fcntl.h

Details:

 

build samba fails on trunk now.

 

Compiling lib/util_seaccess.c^M

Compiling lib/secace.c^M

Compiling lib/secacl.c^M

Compiling libads/krb5_errs.c^M

Compiling lib/system_smbd.c^M

Compiling lib/audit.c^M

Compiling printing/printing.c^M

Compiling printing/nt_printing.c^M

Compiling printing/notify.c^M

Compiling printing/printing_db.c^M

Compiling smbd/oplock.c^M

Compiling smbd/oplock_irix.c^M

Compiling smbd/oplock_linux.c^M

Compiling smbd/notify.c^M

Compiling smbd/notify_inotify.c^M

In file included from /opt/uClinux/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/asm/fcntl.h:11,^M

                 from /opt/uClinux/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/linux/fcntl.h:4,^M

                 from /opt/uClinux/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/linux/inotify.h:11,^M

                 from ../smbd/notify_inotify.c:33:^M

/opt/uClinux/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/asm-generic/fcntl.h:117: error: redefinition of 鈥榮truct flock鈥^M

/opt/uClinux/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/asm-generic/fcntl.h:140: error: redefinition of 鈥榮truct flock64鈥^M

The following command failed:^M

bfin-uclinux-gcc -I. -I/home/test/work/cruise/checkouts/uclinux-dist/user/samba/samba-3.0.25a/source/build/..  -pipe -Wall -g -O2 -mcpu=bf537-0.2 -D_SAMBA_BUILD_=3 -I/home/test/work/cruise/checkouts/uclinux-dist/user/samba/samba-3.0.25a/source/build/../popt -I/home/test/work/cruise/checkouts/uclinux-dist/user/samba/samba-3.0.25a/source/build/../iniparser/src -Iinclude -I../include  -I. -I.. -I../lib/replace -I../lib/talloc -I../tdb/include -I../libaddns -I../librpc -DHAVE_CONFIG_H  -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DEMBED -D__uClinux__ -I/home/test/work/cruise/checkouts/uclinux-dist -mcpu=bf537-0.2    -I/home/test/work/cruise/checkouts/uclinux-dist/user/samba/samba-3.0.25a/source/build/../lib -D_SAMBA_BUILD_=3  -c ../smbd/notify_inotify.c -o smbd/notify_inotify.o^M

make[5]: *** [smbd/notify_inotify.o] Error 1^M

make[5]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user/samba/samba-3.0.25a/source/build'^M

make[4]: *** [all] Error 2^M

make[4]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user/samba/samba-3.0.25a/source'^M

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

make[3]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user/samba'^M

make[2]: *** [samba] Error 2^M

make[2]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user'^M

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

make[1]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user'^M

 

Follow-ups

 

--- Mike Frysinger                                           2008-12-10 15:27:12

should be fixed now by preventing the kernel file headers from defining the same

file structures as the C library

 

--- Mingquan Pan                                             2008-12-29 04:53:21

Yes,fixed,close.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config.smbfs    application/octet-stream    32559    Mingquan Pan

Attachments

    Outcomes