public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] Cedric
@ 2015-06-25  2:50 Yuan Sun
  2015-06-25  6:18 ` Wanlong Gao
  0 siblings, 1 reply; 5+ messages in thread
From: Yuan Sun @ 2015-06-25  2:50 UTC (permalink / raw)
  To: ced.hnyda; +Cc: ltp-list

Hi Cedric,
     I encounter the following error in ubuntu14.04. Your patch
"syscall/getrandom: Add tests for getrandom" leads to the error.
     Do I need to install new libraries?
     Could you please check with the issue?
     Thanks.
         Yuan

make[4]: Entering directory 
`/home/s00318865/0625/ltp/testcases/kernel/syscalls/getrandom'
gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -g -O2 
-Wold-style-definition 
-I/home/s00318865/0625/ltp/testcases/kernel/include 
-I../../../../include -I../../../../include   -L../../../../lib 
getrandom01.c   -lltp -o getrandom01
getrandom01.c:34:26: error: 'GRND_RANDOM' undeclared here (not in a 
function)
  static int modes[] = {0, GRND_RANDOM, GRND_NONBLOCK,
                           ^
getrandom01.c:34:39: error: 'GRND_NONBLOCK' undeclared here (not in a 
function)
  static int modes[] = {0, GRND_RANDOM, GRND_NONBLOCK,
                                        ^
In file included from ../../../../include/test.h:46:0,
                  from getrandom01.c:32:
getrandom01.c: In function 'main':
getrandom01.c:51:17: error: 'SYS_getrandom' undeclared (first use in 
this function)
     TEST(syscall(SYS_getrandom, NULL, 100, modes[i]));
                  ^
../../../../include/usctest.h:69:17: note: in definition of macro 'TEST'
    TEST_RETURN = SCALL; \
                  ^
getrandom01.c:51:17: note: each undeclared identifier is reported only 
once for each function it appears in
     TEST(syscall(SYS_getrandom, NULL, 100, modes[i]));
                  ^
../../../../include/usctest.h:69:17: note: in definition of macro 'TEST'
    TEST_RETURN = SCALL; \
                  ^
getrandom01.c:51:4: warning: passing argument 1 of 'syscall' makes 
integer from pointer without a cast [enabled by default]
     TEST(syscall(SYS_getrandom, NULL, 100, modes[i]));
     ^
In file included from ../../../../include/test.h:39:0,
                  from getrandom01.c:32:
/usr/include/unistd.h:1058:17: note: expected 'long int' but argument is 
of type 'int *'
  extern long int syscall (long int __sysno, ...) __THROW;
                  ^
make[4]: *** [getrandom01] Error 1
make[4]: Leaving directory 
`/home/s00318865/0625/ltp/testcases/kernel/syscalls/getrandom'
make[3]: *** [all] Error 2
make[3]: Leaving directory 
`/home/s00318865/0625/ltp/testcases/kernel/syscalls'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/s00318865/0625/ltp/testcases/kernel'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/s00318865/0625/ltp/testcases'
make: *** [testcases-all] Error 2

------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [LTP] Cedric
  2015-06-25  2:50 [LTP] Cedric Yuan Sun
@ 2015-06-25  6:18 ` Wanlong Gao
  2015-06-25  6:32   ` Cédric Hnyda
  2015-06-25  7:22   ` Yuan Sun
  0 siblings, 2 replies; 5+ messages in thread
From: Wanlong Gao @ 2015-06-25  6:18 UTC (permalink / raw)
  To: Yuan Sun; +Cc: ltp-list

On 06/25/2015 10:50 AM, Yuan Sun wrote:
> Hi Cedric,
>      I encounter the following error in ubuntu14.04. Your patch
> "syscall/getrandom: Add tests for getrandom" leads to the error.
>      Do I need to install new libraries?

Try

apt-get install linux-libc-dev

Thanks,
Wanlong Gao


------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [LTP] Cedric
  2015-06-25  6:18 ` Wanlong Gao
@ 2015-06-25  6:32   ` Cédric Hnyda
  2015-06-25  6:41     ` Yuan Sun
  2015-06-25  7:22   ` Yuan Sun
  1 sibling, 1 reply; 5+ messages in thread
From: Cédric Hnyda @ 2015-06-25  6:32 UTC (permalink / raw)
  To: Wanlong Gao; +Cc: ltp-list


[-- Attachment #1.1: Type: text/plain, Size: 452 bytes --]

Hi!

On 06/25/2015 04:50 AM, Yuan Sun wrote:
> Hi Cedric,
>      I encounter the following error in ubuntu14.04. Your patch
> "syscall/getrandom: Add tests for getrandom" leads to the error.
>      Do I need to install new libraries?

getrandom() was introduced in version 3.17 of the Linux kernel.
Ubuntu 14.04 gets shipped with kernel 3.13.

Try to upgrade your kernel to a more recent version to get the syscall.

Best,
Cédric Hnyda

[-- Attachment #1.2: Type: text/html, Size: 642 bytes --]

[-- Attachment #2: Type: text/plain, Size: 408 bytes --]

------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o

[-- Attachment #3: Type: text/plain, Size: 155 bytes --]

_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [LTP] Cedric
  2015-06-25  6:32   ` Cédric Hnyda
@ 2015-06-25  6:41     ` Yuan Sun
  0 siblings, 0 replies; 5+ messages in thread
From: Yuan Sun @ 2015-06-25  6:41 UTC (permalink / raw)
  To: Cédric Hnyda, Wanlong Gao; +Cc: ltp-list


[-- Attachment #1.1: Type: text/plain, Size: 742 bytes --]

Hi Cedric,
     Thanks for your reminding. I understand.
Maybe it is better to add the following in these cases.

if (tst_kvercmp(3, 17, 0) < 0)
         tst_brkm(TCONF, NULL, "getrandom is not supported");

     Regards.
         Yuan

On 2015/6/25 14:32, Cédric Hnyda wrote:
> Hi!
>
> On 06/25/2015 04:50 AM, Yuan Sun wrote:
> > Hi Cedric,
> >      I encounter the following error in ubuntu14.04. Your patch
> > "syscall/getrandom: Add tests for getrandom" leads to the error.
> >      Do I need to install new libraries?
>
> getrandom() was introduced in version 3.17 of the Linux kernel.
> Ubuntu 14.04 gets shipped with kernel 3.13.
>
> Try to upgrade your kernel to a more recent version to get the syscall.
>
> Best,
> Cédric Hnyda


[-- Attachment #1.2: Type: text/html, Size: 1791 bytes --]

[-- Attachment #2: Type: text/plain, Size: 408 bytes --]

------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o

[-- Attachment #3: Type: text/plain, Size: 155 bytes --]

_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [LTP] Cedric
  2015-06-25  6:18 ` Wanlong Gao
  2015-06-25  6:32   ` Cédric Hnyda
@ 2015-06-25  7:22   ` Yuan Sun
  1 sibling, 0 replies; 5+ messages in thread
From: Yuan Sun @ 2015-06-25  7:22 UTC (permalink / raw)
  To: Wanlong Gao; +Cc: ltp-list

Hi Wanlong,
     It works well after install the lib.
     Many thanks.
     Yuan

On 2015/6/25 14:18, Wanlong Gao wrote:
> On 06/25/2015 10:50 AM, Yuan Sun wrote:
>> Hi Cedric,
>>       I encounter the following error in ubuntu14.04. Your patch
>> "syscall/getrandom: Add tests for getrandom" leads to the error.
>>       Do I need to install new libraries?
> Try
>
> apt-get install linux-libc-dev
>
> Thanks,
> Wanlong Gao
>
>
>


------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-06-25  7:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-25  2:50 [LTP] Cedric Yuan Sun
2015-06-25  6:18 ` Wanlong Gao
2015-06-25  6:32   ` Cédric Hnyda
2015-06-25  6:41     ` Yuan Sun
2015-06-25  7:22   ` Yuan Sun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox