[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] test-open: avoid compilation error with -D_FORTIFY_SOURCE=2

From: Eric Blake
Subject: Re: [PATCH] test-open: avoid compilation error with -D_FORTIFY_SOURCE=2
Date: Wed, 04 Dec 2013 10:45:03 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0

On 06/20/2013 09:45 PM, Daiki Ueno wrote:
> I got the following error when compiling test-open.c with
>   $ gcc -DHAVE_CONFIG_H -I.  -DGNULIB_STRICT_CHECKING=1 -I. -I. -I.. -I./.. 
> -I../gllib -I./../gllib   -Wall -O1 -D_FORTIFY_SOURCE=2 -g -MT test-open.o 
> -MD -MP -MF .deps/test-open.Tpo -c -o test-open.o test-open.c
>   In file included from /usr/include/fcntl.h:296:0,
>                    from ../gllib/fcntl.h:61,
>                    from test-open.c:21:
>   test-open.h: In function 'main':
>   /usr/include/bits/fcntl2.h:41:1: error: inlining failed in call to 
> always_inline 'open': indirect function call with a yet undetermined callee
>    open (const char *__path, int __oflag, ...)
>    ^
> It seems that open cannot be directly passed to test_open as a function
> pointer, since it is marked as always_inline.  I'm attaching a patch.

Just noticing this thread, and that no one ever seemed to reply.  Has
this issue been fixed in the meantime by Paul's improvements to inline

Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]