Thanks
MK
On Wed, May 13, 2009 at 10:48 PM, Michael Scherer <mi...@mandriva.org> wrote:
> Hi,
>
> While trying to package skyeye on Mandriva, I have found problem with
> compilation of the file nandflash_smallblock.c :
>
> i586-mandriva-linux-gnu-gcc -DMODET -g -O2 -D_FILE_OFFSET_BITS=64
> -DSTANDALONE -DDEFAULT_INLINE=0 -I. -I.. -I./ -I../arch/arm
> -I../arch/arm/common -I../utils/config -I../utils/main -I../utils/main
> -I../utils -I../device -DLCD -DGTK_LCD -I/usr/include/gtk-2.0
> -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
> -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
> -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
> -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
> -fexceptions -fstack-protector --param=ssp-buffer-size=4
> -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables
> -MT nandflash_smallblock.o -MD -MP -MF .deps/nandflash_smallblock.Tpo -c -o
> nandflash_smallblock.o `test -f 'nandflash/nandflash_smallblock.c' || echo
> './'`nandflash/nandflash_smallblock.c
> In function 'open',
> inlined from 'nandflash_sb_setup' at
> nandflash/nandflash_smallblock.c:519:
> /usr/include/bits/fcntl2.h:51: error: call to '__open_missing_mode' declared
> with attribute error: open with O_CREAT in second argument needs 3 arguments
> make[2]: *** [nandflash_smallblock.o] Error 1
>
>
> Newest gcc enforce the usage of the mode when you use O_CREATE, with some
> option ( -fortify ).
>
> Therefor, here is a patch to fix compilation, against latest released
> tarball.
>
> As the file was not touched in svn since the release, I think the patch
> cleanly apply to latest trunk.
>
>
> --
> Michael Scherer
>
>
>
>
>
>
>