public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Subrata Modak <subrata@linux.vnet.ibm.com>
To: Pradeep K Surisetty <pradeepkumars@in.ibm.com>
Cc: ltp-list <ltp-list@lists.sf.net>
Subject: Re: [LTP] [PATCH] Re::personality test case build fails
Date: Tue, 30 Jun 2009 13:11:18 +0530	[thread overview]
Message-ID: <1246347678.4819.30.camel@subratamodak.linux.ibm.com> (raw)
In-Reply-To: <20090625113420.606.55089.sendpatchset@subratamodak.linux.ibm.com>

On Thu, 2009-06-25 at 17:04 +0530, Subrata Modak wrote: 
> Hi Pradeep,
> 
> >On Tue, 2009-06-23 at 18:39 +0530, Pradeep K Surisetty wrote:
> >Here is the list of platforms on which "personality test case" fails.
> > 
> > Platforms:
> > e326,x366
> > 
> > kernel:
> > 2.6.16.60-0.46.6-smp
> > 
> > Build Failure:
> > 
> > cc -I../../../../include -Wall    personality01.c  -L../../../../lib -lltp
> > -o personality01
> > /tmp/cc2aVCsG.o: In function `main':
> > personality01.c:(.text+0x58): undefined reference to `personality'
> > personality01.c:(.text+0xb6): undefined reference to `personality'
> > personality01.c:(.text+0x1a5): undefined reference to `personality'
> > collect2: ld returned 1 exit status
> > make: *** [personality01] Error 1
> > 
> > Subrata,
> > Can you point me, if any work around exists for this.
> 
> The following patch will probably fix the issue on your system. Please
> test this patch and let me know.
> 
> Signed-off-by: Subrata Modak <subrata@linux.vnet.ibm.com>,

I checked in this.

Regards--
Subrata

> ---
> 
> --- ltp-intermediate-20090622/testcases/kernel/syscalls/personality/personality01.c.orig	2009-06-25 16:45:55.000000000 +0530
> +++ ltp-intermediate-20090622/testcases/kernel/syscalls/personality/personality01.c	2009-06-25 16:59:15.000000000 +0530
> @@ -58,7 +58,7 @@
>  #include "usctest.h"
> 
>  #include <errno.h>
> -#include <linux/personality.h>
> +#include <sys/personality.h>
>  #undef personality
> 
>  extern int personality(unsigned long);
> @@ -75,6 +75,7 @@ int pers[] = { PER_LINUX, PER_LINUX_32BI
>  	PER_IRIX32, PER_IRIXN32, PER_IRIX64
>  };
> 
> +#ifdef __NR_personality
>  int main(int ac, char **av)
>  {
>  	int lc;			/* loop counter */
> @@ -146,6 +147,13 @@ int main(int ac, char **av)
> 
>  	 /*NOTREACHED*/ return 0;
>  }
> +#else
> +int main(int ac, char **av)
> +{
> +	tst_resm(TCONF, "personality() not defined in your system");
> +	tst_exit();
> +}
> +#endif
> 
>  /*
>   * setup() - performs all the ONE TIME setup for this test.
> --- ltp-intermediate-20090622/testcases/kernel/syscalls/personality/personality02.c.orig	2009-06-25 16:46:02.000000000 +0530
> +++ ltp-intermediate-20090622/testcases/kernel/syscalls/personality/personality02.c	2009-06-25 16:59:25.000000000 +0530
> @@ -79,6 +79,7 @@ extern int Tst_count;
> 
>  #define	PER_BAD	0x00dd		/* A non-existent personality type */
> 
> +#ifdef __NR_personality
>  int main(int ac, char **av)
>  {
>  	int lc;			/* loop counter */
> @@ -128,6 +129,14 @@ int main(int ac, char **av)
> 
>  	 /*NOTREACHED*/ return 0;
>  }
> +#else
> +int main(int ac, char **av)
> +{
> +	tst_resm(TCONF, "personality() not defined in your system");
> +	tst_exit();
> +}
> +#endif
> +
> 
>  /*
>   * setup() - performs all the ONE TIME setup for this test.
> 
> ---
> Regards--
> Subrata
> 
> > 
> > -Pradeep
> > 
> > 


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

  reply	other threads:[~2009-06-30  7:46 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-25 11:34 [LTP] [PATCH] Re::personality test case build fails Subrata Modak
2009-06-30  7:41 ` Subrata Modak [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-06-25 12:17 naresh kamboju
2009-06-26 11:33 ` Subrata Modak
2009-06-30  7:41   ` Subrata Modak
2009-06-30  9:50     ` naresh kamboju
2009-06-30 10:04       ` Subrata Modak
2009-06-30 12:59         ` naresh kamboju
2009-06-30 13:18           ` Subrata Modak

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=1246347678.4819.30.camel@subratamodak.linux.ibm.com \
    --to=subrata@linux.vnet.ibm.com \
    --cc=ltp-list@lists.sf.net \
    --cc=pradeepkumars@in.ibm.com \
    /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