public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Xiaoguang Wang <wangxg.fnst@cn.fujitsu.com>
To: Jan Stancek <jstancek@redhat.com>
Cc: LTP <ltp-list@lists.sourceforge.net>
Subject: Re: [LTP] getrandom compilation broken in RHEL5.11GA
Date: Tue, 7 Jul 2015 19:13:45 +0800	[thread overview]
Message-ID: <559BB469.4040903@cn.fujitsu.com> (raw)
In-Reply-To: <1426231157.13472632.1436267584673.JavaMail.zimbra@redhat.com>

On 07/07/2015 07:13 PM, Jan Stancek wrote:
> 
> 
> ----- Original Message -----
>> From: "Xiaoguang Wang" <wangxg.fnst@cn.fujitsu.com>
>> To: "Jan Stancek" <jstancek@redhat.com>, "ced hnyda" <ced.hnyda@gmail.com>
>> Cc: "LTP" <ltp-list@lists.sourceforge.net>
>> Sent: Tuesday, 7 July, 2015 12:43:59 PM
>> Subject: getrandom compilation broken in RHEL5.11GA
>>
>> hello Jan, Cedric,
>>
>> When I compile ltp in RHEL5.11GA, I run into these errors:
>> -----------------------------------------------------------------------------------------------------------
>> [root@RHEL5U11ga_Intel64 getrandom]# make
>> make -C "/root/ltp/testcases/kernel/include" -f
>> "/root/ltp/testcases/kernel/include/Makefile" all
>> make[1]: Entering directory `/root/ltp/testcases/kernel/include'
>> make[1]: Nothing to be done for `all'.
>> make[1]: Leaving directory `/root/ltp/testcases/kernel/include'
>> gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -g -O2
>> -Wold-style-definition -D_FORTIFY_SOURCE=2
>> -I/root/ltp/testcases/kernel/include -I../../../../include
>> -I../../../../include   -L../../../../lib  getrandom01.c   -lltp -o
>> getrandom01
>> In file included from getrandom01.c:29:
>> /usr/include/linux/random.h:38: error: expected specifier-qualifier-list
>> before ‘__u32’
>> /usr/include/linux/random.h:42: error: expected specifier-qualifier-list
>> before ‘__u32’
>> make: *** [getrandom01] Error 1
>> ------------------------------------------------------------------------------------------------------------
>> I tried to add "#include <sys/types.h>" or "#include <linux/types.h>",
>> neither works. There maybe some bugs
>> in RHEL5.11GA's glibc. 
> 
> It's a kernel header.
> 
>> Given that we use ltp_syscall() and have "GRND_RANDOM
>> GRND_NONBLOCK" defined in
>> lapi/getrandom.h, what about we remove "#include <linux/random.h>" form these
>> these 4 test cases, then
>> they will compile correctly in RHEL5.
> 
> We can either rely on lapi/getrandom.h or get back m4 check. The latter
> seems like too much trouble for 2 testcases that need it, so I'd go
> with removing it and rely on lapi header. Can you send a patch to list please?

OK, thanks!

Regards,
Xiaoguang Wang
> 
> Regards,
> Jan
> 
>>
>> Regards,
>> Xiaoguang Wang
>>
> .
> 


------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

      reply	other threads:[~2015-07-07 11:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-07 10:43 [LTP] getrandom compilation broken in RHEL5.11GA Xiaoguang Wang
2015-07-07 11:13 ` Jan Stancek
2015-07-07 11:13   ` Xiaoguang Wang [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=559BB469.4040903@cn.fujitsu.com \
    --to=wangxg.fnst@cn.fujitsu.com \
    --cc=jstancek@redhat.com \
    --cc=ltp-list@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox